THotPDF.HasLoadedMetadata Method
Checks whether the loaded PDF document contains an XMP metadata stream
Declaration
function HasLoadedMetadata: boolean;
Unit
HPDFDoc
Return value
Returns True if the Metadata key exists in the Catalog and corresponds to a valid XMP stream object, otherwise returns False
Usage notes
- 该方法仅检测文档目录中的顶层 XMP 元数据流,不检测内嵌于图像或其他对象中的元数据
- 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