Skip to main content

Metadata

The metadata object sets PDF document properties that appear in the file's properties panel and are used by search engines, document management systems, and screen readers.

All metadata fields are optional.

Properties​

PropertyTypeDescription
namestringThe name other documents place this one by when it is a component: the name a use writes. Up to 200 characters
titlestringDocument title displayed in the PDF viewer title bar. Required, with non-space text, by an accessibility claim
authorstringDocument author name
subjectstringBrief description of the document's subject
keywordsstringComma-separated keywords for search and classification
versionstringRevision: up to three numbers ("1", "1.2", "1.2.0"), default "1.0"; a use can pin a component's version. Free text such as "v1.2-beta" is refused
langstringThe document's language, as a tag such as "en", "en-CA" or "de-DE" (up to 64 characters): how a screen reader pronounces it. Required by an accessibility claim
conformanceobjectThe standards the document claims: PDF/A (archival, on by default), PDF/UA (accessibility) and the DOCX class. See Conformance
pdfVersionstring"1.7" or "2.0": pins the PDF version. Absent, 1.7, unless a claim defined over 2.0 (a-4, ua-2, a WTPDF level) asks for 2.0: nothing else changes the version. A pin that a claim contradicts (ua-1 or a-2b on 2.0, a-4 or ua-2 on 1.7) is refused. See Output formats
objectStreamsbooleanPDF only: true stores the file's objects in compressed object streams, a fifth or more smaller when the document is heavily tagged; false or absent writes the classic cross-reference table. See Output formats
viewerPreferencesobjectHow a PDF viewer opens the document: its page layout, panel, window, print dialogue and the view it opens on. See Links and navigation

Example​

{
"document": {
"metadata": {
"title": "Q1 2026 Shipping Report",
"author": "ShipForge Operations",
"subject": "Quarterly performance metrics for North America corridor",
"keywords": "shipping, logistics, Q1, 2026, North America",
"version": "1.2"
},
"content": [
{ "p": "Report content goes here." }
]
}
}

Where metadata appears​

title, author, subject and keywords are written to the PDF's document information and XMP metadata, and to the DOCX's core properties. name, and version when it is not "1.0", go to the XMP and the core properties; lang is the PDF's document language and the DOCX's language property.

  • PDF viewer title bar -- The title field is shown in the browser tab or PDF reader window title.
  • Document properties dialog -- All fields are visible when viewing file properties (File > Properties in most PDF readers).
  • Search indexing -- The keywords and subject fields help document management systems categorize and locate files.

Best practices​

  • Always set title and lang for documents that will be shared or archived; an accessibility claim requires both (Conformance).
  • Use keywords to improve discoverability in document management systems.
  • Use version when generating multiple revisions of the same template to track which version produced a given PDF.