 |
PdfDocumentAddXmpExtensionSchema Method |
Declares a custom XMP extension schema in the document metadata and writes the values
of its properties.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic void AddXmpExtensionSchema(
string prefix,
string namespaceUri,
string schemaName,
IDictionary<string, string> properties
)
Public Sub AddXmpExtensionSchema (
prefix As String,
namespaceUri As String,
schemaName As String,
properties As IDictionary(Of String, String)
)
Parameters
- prefix String
- The namespace prefix of the schema, for example "fx".
- namespaceUri String
- The namespace URI of the schema.
- schemaName String
- A human-readable name for the schema.
- properties IDictionaryString, String
- The schema property names, mapped to the values written for
this document. Each is declared as an external text property.
Remarks
A PDF/A document may only carry metadata from schemas the standard predefines, unless
the schema itself is described inside the XMP packet. This method writes both halves:
the schema declaration and the property values.
Use it for custom metadata a recipient needs to find in the document. For
ZUGFeRD / Factur-X invoices use
AddZugferdInvoice(Stream, ZugferdProfile, PdfAttachmentRelationship),
which writes the required schema for you.
See Also