THotPDF.HasLoadedMetadata Method
Checks whether the loaded PDF document contains an XMP metadata stream
Declaration
function HasLoadedMetadata: boolean;
Unit
HPDFDoc
Return value
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns a boolean value
Usage notes
- The method only detects the top-level XMP metadata stream in the document catalog; metadata embedded in images or other objects is not detected
- Returning True does not mean the XMP content is complete and valid; it is recommended to use relevant APIs to further read specific fields
- Before calling, it must be ensured that the document has been successfully loaded via LoadFromFile or LoadFromStream