Document Metadata
The <Metadata> section inside <Document> sets PDF information fields
that are embedded in the output file.
Note
Only the six string fields below are currently wired up from Craft
Language XML. <CreationDate>/<ModificationDate>/<Trapped>/
<GtsPdfx>/<AutoKeywords> are silently skipped by the parser today
— they are not parse errors, they simply have no effect. The underlying
DocraftDocumentMetadata C++ type does support dates, trapping, and
GTS-PDFX (see Types & Enums); there is currently no automatic
keyword extraction utility in the codebase at all. If you need any of
these, set them from C++ via DocraftLoomPdfCreator::set_metadata()
(see Getting Started) rather than from the .craft file.
Example
<Document>
<Metadata>
<DocumentTitle>Annual Report 2025</DocumentTitle>
<Author>Docraft Team</Author>
<Subject>Financial summary</Subject>
<Keywords>finance, report, 2025</Keywords>
<Creator>Docraft 1.0</Creator>
<Producer>Docraft/libharu</Producer>
</Metadata>
<Body>
<!-- content -->
</Body>
</Document>
Metadata Fields
Element |
Description |
|---|---|
|
PDF title string. |
|
Author name. |
|
Application that created the content. |
|
Application that produced the PDF. |
|
Document subject. |
|
Comma-separated keyword list. |