跳轉到主要內容
此方法會開啟受密碼保護的影像檔案,並將所開啟檔案對應的頁面加入文件中。 此方法可能會將事件回報給附加至 FRDocument 物件 IConnectionPointContainer 介面的事件接聽程式。

語法

C++

HRESULT AddImageFileWithPassword(
  BSTR               ImageFileName, 
  BSTR               Password,  
  IPrepareImageMode* PrepareMode,
  IIntsCollection*   PageIndices 
);

C#

void AddImageFileWithPassword(
  string           ImageFileName, 
  string           Password,  
  IPrepareImageMode PrepareMode,
  IIntsCollection   PageIndices 
);

Visual Basic .NET

Sub AddImageFileWithPassword( _
  ImageFileName As String, _
  Password As String, _
  [PrepareMode As IPrepareImageMode = Nothing], _
  [PageIndices As IIntsCollection = Nothing] _
)

參數

ImageFileName [in] 此變數包含要開啟的影像檔案完整路徑。 Password [in] 此變數包含用於存取 PDF 格式影像的密碼。 PrepareMode [in] 此參數是指 PrepareImageMode 物件,該物件指定影像在開啟時要如何進行預處理。 PageIndices [in] 此參數是指 IntsCollection 物件,該物件指定要新增至文件的頁面索引。請注意,不允許重複索引。若要將同一頁面新增多次,請多次呼叫此方法。
此參數為選用,且可為 0;在此情況下,已開啟檔案中的所有頁面都會新增至文件。

回傳值

此方法沒有特定回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

備註

  • 使用此方法開啟 PDF Portfolio 檔案時,其封面一律會包含在輸出檔案中。
  • 在 Linux 和 Windows 上:

另請參閱

FRDocument AddImageFileWithPasswordCallback AddImageFile 影像處理