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
如果成功提取到 XMP 元数据,则返回 True;如果文档中不包含 XMP 元数据或提取失败,则返回 False。
Usage notes
- 调用此方法前,必须确保已经成功加载了一个 PDF 文档(例如通过
LoadFromFile或LoadFromStream)。 - The returned XML content includes advanced properties of the document (such as author, creation tool, copyright info, etc.), which can be further parsed.