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);
參數
| Index | 內嵌檔案的索引,1 到 EmbeddedFileCount |
|---|---|
| FileName | 目的地檔案的路徑與檔名 |
傳回值
| 0 | 索引無效、無法建立目的地,或解碼失敗 |
|---|---|
| 1 | 內容寫出成功,包括一個有效的空內嵌檔案 |
備註
擷取路徑以有界區塊把解碼後的 Flate 內容直接寫到目的地檔案,大型附件不必再多做一份完整解碼副本