SaveAnnotAttachmentToFile
檢視器互動、註解與熱點連結
描述
先選取 APage,再將 FileAttachment 附註所攜帶的內嵌檔案寫入 FileNameAnnotIndex 是頁面上以 1 為起始的附註索引,此呼叫會委派給
語法
Delphi
Function TPDFlibViewer.SaveAnnotAttachmentToFile(APage, AnnotIndex: Integer; Const FileName: WideString): Integer;參數
| APage | 附註所在的頁面(以 1 為起始) |
|---|---|
| AnnotIndex | APage 上以 1 為起始的附註索引 |
| FileName | 內嵌檔案的目標路徑 |
傳回值
| 0 | 沒有已開啟的文件、頁面超出範圍,或附註未攜帶檔案 |
|---|---|
| 1 | 內嵌檔案已寫入 |