GetEmbeddedFileContentToFile

文件屬性

描述

擷取指定的內嵌檔案,並將內容寫入指定檔案

語法

Delphi

Function TPDFlib.GetEmbeddedFileContentToFile(Index: Integer; Const FileName: WideString): Integer;

ActiveX

Function PDFlib::GetEmbeddedFileContentToFile(Index As Long, FileName As String) As Long

DLL

int DLGetEmbeddedFileContentToFile(int InstanceID, int Index, const wchar_t* FileName);
int DLGetEmbeddedFileContentToFileA(int InstanceID, int Index, const char* FileName);

參數

Index內嵌檔案的索引,1 到 EmbeddedFileCount
FileName目的地檔案的路徑與檔名

傳回值

0索引無效、無法建立目的地,或解碼失敗
1內容寫出成功,包括一個有效的空內嵌檔案

備註

目的地檔案建立之前會先解析內嵌串流;索引無效或串流不存在時,既有的目標檔保持不變,也不會建立新檔案

來源解析器接受 /EF /F,在沒有可用舊式串流時退回 /EF /UF

擷取路徑以有界區塊把解碼後的 Flate 內容直接寫到目的地檔案,大型附件不必再多做一份完整解碼副本