modern-pdf-lib / buildXmpMetadata
Function: buildXmpMetadata()
buildXmpMetadata(
meta):string
Defined in: src/metadata/xmpMetadata.ts:89
Build an XMP metadata XML string from document metadata.
The output is a complete XMP packet including:
<?xpacket begin="..." id="..."?>header<x:xmpmeta>root element- RDF description with Dublin Core, XMP, and PDF properties
<?xpacket end="w"?>trailer
Parameters
meta
Document metadata fields.
Returns
string
The complete XMP XML string.