SaveAnnotAttachmentToFile

檢視器互動、註解與熱點連結

描述

先選取 APage,再將 FileAttachment 附註所攜帶的內嵌檔案寫入 FileNameAnnotIndex 是頁面上以 1 為起始的附註索引,此呼叫會委派給

GetAnnotEmbeddedFileToFile

語法

Delphi

Function TPDFlibViewer.SaveAnnotAttachmentToFile(APage, AnnotIndex: Integer; Const FileName: WideString): Integer;

參數

APage附註所在的頁面(以 1 為起始)
AnnotIndexAPage 上以 1 為起始的附註索引
FileName內嵌檔案的目標路徑

傳回值

0沒有已開啟的文件、頁面超出範圍,或附註未攜帶檔案
1內嵌檔案已寫入

另請參閱

GetAnnotEmbeddedFileToFile, OnAnnotClick, TPDFlibViewer