PdfMetadata
Document metadata written into the PDF info dictionary. All fields are optional; renderers omit empty values.
Two security/packaging concerns ride alongside the info-dictionary fields so that the existing driver factory signature (create(metadata, …)) keeps carrying everything a backend needs without widening DocumentSpec:
encryption requests standard-security password protection.
attachments embeds files into the document (e.g. a ZUGFeRD invoice XML).
Both are backend-dependent — see their own KDoc for the per-platform support matrix. Backends that cannot honour a request skip it silently rather than failing the render.
Constructors
Properties
Files embedded into the document. Empty (the default) embeds nothing. See PdfAttachment for the platform support matrix.
Optional document encryption. null (the default) produces an unencrypted document. See PdfEncryption for the platform support matrix.
Best-effort PDF/A-2b conformance. false (the default) produces an ordinary PDF. When true the JVM/Desktop backend embeds an XMP metadata packet (pdfaid:part=2, conformance=B), an sRGB output intent, sets the document MarkInfo /Marked true, and aligns the document info with the XMP.