SetXMPPropertyEx

Document properties, metadata

Description

Sets or replaces a scalar XMP property in a caller-defined namespace without requiring hand-written RDF XML

The XML DOM creates and escapes the property node, and replacement matches the namespace URI and local key rather than the chosen prefix

Prefixes and keys must be conservative XML NCNames, reserved structural prefixes are rejected and the namespace URI must not be empty

Native macOS ARM64 supports this operation with both Delphi and FPC, including namespace-aware replacement and preservation of unrelated metadata

Syntax

Delphi

Function TPDFlib.SetXMPPropertyEx(Const Prefix, NamespaceURI, Key, Value: WideString): Integer;

Parameters

PrefixThe XML prefix used when serializing the property
NamespaceURIThe absolute namespace identifier associated with the prefix
KeyThe local property name
ValueThe scalar text value to store

Return values

0The names or namespace were invalid or the property could not be written
1The property was written and the document metadata stream updated

See also

SetXMPProperty, SetDocumentMetadata, GetDocumentMetadata