THotPDF.ExtractEmbeddedFileBytes Method

Extracts embedded file stream bytes by filename from the currently loaded PDF document. Use it to retrieve Factur-X XML, supporting attachments, or other embedded payloads found in the name tree

Declaration

function ExtractEmbeddedFileBytes(const AFileName: AnsiString; out ABytes: TBytes): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
AFileNameEmbedded file name as stored in the loaded document name tree
ABytesReceives the embedded file stream bytes when the method returns True

Return value

Returns True when the requested embedded file bytes are found and copied

Usage notes

Related APIs