Skip to content

Document metadata

doc.Metadata(new DocumentMetadata(
Title: "Invoice INV-20260709-001",
Author: "Northwind Studio Ltd",
Subject: "Invoice for June 2026"));

All properties are optional; CreationDate and ModificationDate default to the render time when unset:

new DocumentMetadata(
Title: "…",
Author: "…",
Subject: "…",
CreationDate: DateTimeOffset.UtcNow,
ModificationDate: DateTimeOffset.UtcNow);
Format Written as
PDF XMP metadata packet and the classic Info dictionary (kept consistent - a PDF/A requirement)
DOCX OOXML core document properties
XLSX OOXML core document properties
HTML Title becomes <title>; Author becomes <meta name="author">; Subject becomes <meta name="description">. CreationDate and ModificationDate are not written - HTML has no metadata slot for them.

Consistent XMP is part of what makes Papyra’s output pass veraPDF - see PDF/A output.