Document metadata
Setting metadata
Section titled “Setting 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);Where it ends up
Section titled “Where it ends up”| Format | Written as |
|---|---|
| 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.
© 2026 Stefan Nikolei. Payments are processed by Paddle.com as merchant of record.