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
AFileNamePDF 名称树中嵌入文件的名称,可通过 GetLoadedEmbeddedFileNames 枚举获取
ADestPathThe full disk path where the target file is saved, including filename and extension

Return value

若找到指定名称的嵌入文件并成功写入磁盘则返回 True,否则返回 False

Usage notes

Related APIs