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
Syntax
Delphi
Function TPDFlib.SetXMPPropertyEx(Const Prefix, NamespaceURI, Key, Value: WideString): Integer;Parameters
| Prefix | The XML prefix used when serialising the property |
|---|---|
| NamespaceURI | The absolute namespace identifier associated with the prefix |
| Key | The local property name |
| Value | The scalar text value to store |
Return values
| 0 | The names or namespace were invalid or the property could not be written |
|---|---|
| 1 | The property was written and the document metadata stream updated |