這個方法會開啟附件中的影像檔案,並將對應於所開啟檔案的頁面加入文件。
HRESULT AddImageFileFromAttachment(
IPDFAttachment* Attachment,
IImagePasswordCallback* Callback,
IPrepareImageMode* PrepareMode,
IIntsCollection* PageIndices
);
void AddImageFileFromAttachment(
IPDFAttachment Attachment,
IImagePasswordCallback Callback,
IPrepareImageMode PrepareMode,
IIntsCollection PageIndices
);
Sub AddImageFileFromAttachment( _
Attachment As IPDFAttachment, _
Callback As IImagePasswordCallback, _
[PrepareMode As IPrepareImageMode = Nothing], _
[PageIndices As IIntsCollection = Nothing] _
)
Attachment
[in] 此參數的型別為 IPDFAttachment,表示要新增的 PDF 附件。此方法使用其格式由 ABBYY FineReader Engine 定義的檔案。
Callback
[in] 此參數指向由使用者實作的 ImagePasswordCallback 型別物件介面,用於處理存取 PDF 格式影像時可能出現的密碼要求。此參數為選用,可為 0;在此情況下,將無法處理受密碼保護的檔案。
PrepareMode
[in] 此參數指向 PrepareImageMode 物件,用於指定影像在開啟期間將如何預先處理。此參數為選用,可為 0;在此情況下,會使用預設參數,或者若已載入 profile,則使用該 profile 所設定的參數。
PageIndices
[in] 此參數指向 IntsCollection 物件,用於指定必須新增至文件的頁面索引。請注意,不允許重複索引。若要將同一頁新增多次,請多次呼叫此方法。
此參數為選用,可為 0;在此情況下,已開啟檔案中的所有頁面都會新增至文件。
此方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值。
這些備註僅適用於 Linux 和 Windows。
FRDocument