THotPDF.GetLoadedXMPMetadata Method
Extracts the XMP metadata (Metadata) from the currently loaded PDF document and returns it as an XML string.
Declaration
function GetLoadedXMPMetadata(out AXML: AnsiString): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AXML | As an output parameter, used to receive the extracted XMP metadata XML string. |
Return value
Returns True when the XMP metadata was extracted successfully
Usage notes
- Make sure a PDF document has been loaded successfully before calling (via LoadFromFile or LoadFromStream, for example)
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- The returned XML content includes advanced properties of the document (such as author, creation tool, copyright info, etc.), which can be further parsed.