GetAnnotEmbeddedFileToFile
註解與熱點連結
描述
把註解物件內的內嵌檔案存到磁碟上指定的檔案
語法
Delphi
Function TPDFlib.GetAnnotEmbeddedFileToFile(Index, Options: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::GetAnnotEmbeddedFileToFile(Index As Long, Options As Long, FileName As String) As Long
DLL
int DLGetAnnotEmbeddedFileToFile(int InstanceID, int Index, int Options, const wchar_t* FileName);
int DLGetAnnotEmbeddedFileToFileA(int InstanceID, int Index, int Options, const char* FileName);
參數
| Index | 所選頁面上以 1 起算的註解索引 |
|---|---|
| Options | 保留;請傳 0 |
| FileName | 目的地檔案路徑 |
傳回值
| 1 | 附件已成功寫出,包括有效的空附件 |
|---|---|
| 0 | 註解沒有內嵌串流、索引無效,或檔案建立、解碼或寫入失敗 |
備註
內嵌串流會在建立目的地之前解析;索引無效或串流缺失時,既有的目標資料不會變動
匯出直接寫出解碼後的串流資料,而不是先組出完整的解碼字串;受支援的 Flate 串流以有界區塊處理,寫入不完整會讓匯出失敗