Add metadata to PDF (author, title, date)
This commit is contained in:
parent
6ec9365e55
commit
de9bfcb3f3
11
main.typ
11
main.typ
@ -10,8 +10,15 @@
|
|||||||
#let targetFull = placeholder("Ellingson Mineral Corporation")
|
#let targetFull = placeholder("Ellingson Mineral Corporation")
|
||||||
#let targetInSentence = placeholder("Ellingston Mineral")
|
#let targetInSentence = placeholder("Ellingston Mineral")
|
||||||
#let reportType = placeholder("Penetration Test Report")
|
#let reportType = placeholder("Penetration Test Report")
|
||||||
|
#let creationDate = datetime.today()
|
||||||
|
|
||||||
// Styling setup
|
// Document setup
|
||||||
|
#set document(
|
||||||
|
title: [#reportType #targetFull],
|
||||||
|
author: if type(author) == str { author } else { () },
|
||||||
|
date: creationDate
|
||||||
|
)
|
||||||
|
// Page & styling setup
|
||||||
#set text(font: "Helvetica Neue")
|
#set text(font: "Helvetica Neue")
|
||||||
#show heading: it => {
|
#show heading: it => {
|
||||||
v(1em)
|
v(1em)
|
||||||
@ -37,7 +44,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
// ----- Cover & Legal disclaimer(s) -----
|
// ----- Cover & Legal disclaimer(s) -----
|
||||||
#pages.cover.render(targetFull, place, author, reportType,
|
#pages.cover.render(targetFull, place, author, creationDate, reportType,
|
||||||
confidential: false, // set to true for a "CONFIDENTIAL" mark on the cover
|
confidential: false, // set to true for a "CONFIDENTIAL" mark on the cover
|
||||||
tlp: "amber+strict", // set to one of "RED", "AMBER+STRICT", "AMBER", "GREEN", "CLEAR", or none. See https://www.first.org/tlp/
|
tlp: "amber+strict", // set to one of "RED", "AMBER+STRICT", "AMBER", "GREEN", "CLEAR", or none. See https://www.first.org/tlp/
|
||||||
draft: true // set to true for a "DRAFT" mark on the cover
|
draft: true // set to true for a "DRAFT" mark on the cover
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#import "marks.typ"
|
#import "marks.typ"
|
||||||
|
|
||||||
#let render(title, place, author, reportType, confidential: false, tlp: none, draft: false) = {
|
#let render(title, place, author, date, reportType, confidential: false, tlp: none, draft: false) = {
|
||||||
// Define page
|
// Define page
|
||||||
set page(
|
set page(
|
||||||
background: [
|
background: [
|
||||||
@ -21,7 +21,7 @@
|
|||||||
v(0.25pt)
|
v(0.25pt)
|
||||||
|
|
||||||
text(size: 16pt, [
|
text(size: 16pt, [
|
||||||
#place, #datetime.today().display("[day].[month].[year]")
|
#place, #date.display("[day].[month].[year]")
|
||||||
|
|
||||||
#author
|
#author
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user