THotPDF.GetLoadedDocumentMetadataBytes Method
Copies the XMP metadata packet bytes from the currently loaded PDF document. Use it to inspect imported metadata or to validate PDF/A and e-invoice declarations without rewriting the document
Declaration
function GetLoadedDocumentMetadataBytes(out ABytes: TBytes): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ABytes | Receives the metadata stream bytes when the method returns True |
Return value
Returns True when XMP metadata bytes are available
Usage notes
- Call this method after LoadFromFile or LoadFromStream
- The method returns raw XMP bytes and does not require an XML DOM parser
- DetectFacturXInvoice uses this metadata to read hybrid invoice XMP fields