THotPDF.SaveLoadedEmbeddedFileToDisk Method

Extracts the embedded attachment with the specified name from the loaded PDF document and saves it to a disk path

Declaration

function SaveLoadedEmbeddedFileToDisk(const AFileName: AnsiString; const ADestPath: AnsiString): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
AFileNameName of the embedded file in the PDF name tree, obtainable via GetLoadedEmbeddedFileNames
ADestPathThe full disk path where the target file is saved, including filename and extension

Return value

Returns True when the named embedded file is found and written to disk successfully

Usage notes

Related APIs