跳轉到主要內容
此方法對文件中指定的頁面執行文件合成。

語法

C++

HRESULT SynthesizePages(
  IIntsCollection*             PageIndices,
  ISynthesisParamsForDocument* SynthesisParamsForDocument
);

C#

void SynthesizePages(
  IIntsCollection             PageIndices,
  ISynthesisParamsForDocument SynthesisParamsForDocument
);

Visual Basic .NET

Sub SynthesizePages( _
  PageIndices As IIntsCollection, _
  [SynthesisParamsForDocument As ISynthesisParamsForDocument = Nothing] _
)

參數

PageIndices [in] 此參數是指包含要進行合成之頁面索引的 IntsCollection 物件。 SynthesisParamsForDocument [in] SynthesisParamsForDocument 物件,用於儲存文件合成參數。此參數可為 0。在此情況下,頁面會以預設參數進行合成;如果已載入 profile,則會使用該設定檔中設定的參數。

回傳值

如果使用者中斷合成作業,此方法會回傳 E_ABORT。它也會回傳 ABBYY FineReader Engine 函式的標準回傳碼

備註

  • 在以下情況下,您可以省略文件合成階段:
    • 若您打算將已辨識文字匯出為 TXT 格式。匯出至此格式時,不會使用合成資訊。
    • 若您打算將文件匯出為 PDF ImageOnly 格式。此模式下不會使用已辨識文字和 Layout 資訊。
在所有其他情況下,必須執行文件合成。省略文件合成將導致錯誤。

另請參閱

FRDocument Synthesize 設定檔的使用方式