跳轉到主要內容
此方法會對文件中指定的頁面執行前處理、版面分析、識別,以及頁面與文件合成作業。

語法

C++

HRESULT ProcessPages(
  IIntsCollection*           PageIndices,
  IDocumentProcessingParams* DocumentProcessingParams
);

C#

void ProcessPages(
  IIntsCollection           PageIndices,
  IDocumentProcessingParams DocumentProcessingParams
);

Visual Basic .NET

Sub ProcessPages( _
  PageIndices As IIntsCollection, _
  [DocumentProcessingParams As IDocumentProcessingParams = Nothing]
)

參數

PageIndices [in] 指向包含要識別之頁面索引的 IntsCollection 物件。此參數可為 0。在此情況下,將處理文件的所有頁面。 DocumentProcessingParams [in] 指向儲存所有處理參數的 DocumentProcessingParams 物件。此參數可為 0。在此情況下,頁面會使用預設參數進行處理 (所有處理參數皆設為預設值) ;或者,如果已載入 profile,則會使用該設定檔中設定的參數。

回傳值

如果使用者中斷文件處理,此方法會回傳 E_ABORT。它也會回傳 ABBYY FineReader Engine 函式的標準回傳碼

備註

  • 此方法可能會將事件回報給附加到 FRDocument 物件之 IConnectionPointContainer 介面的偵聽器。
  • 在 Linux 和 Windows 上:ABBYY FineReader Engine 可根據 IEngine::MultiProcessingParams 屬性的值,將多頁文件的處理作業分散到各個 CPU 核心。

另請參閱

FRDocument 使用設定檔