GetPageTextStatistics

Text, extraction

描述

以目前擷取選項擷取所選頁面,並統計字元數、以空白分隔的單字數與文字區塊數

語法

Delphi

Function GetPageTextStatistics(Page: Integer; Out CharCount, WordCount, BlockCount: Integer): Integer;

參數

Page1-based page number
CharCount, WordCount, BlockCountReceive the counts

Return value

成功傳回 1;若頁面超出範圍或擷取失敗則傳回 0

備註

以目前作用的擷取選項為準,因此選項 19(跳過隱形文字)會改變含 OCR 文字圖層頁面的統計數字

另見

GetPageText, ExtractPageTextBlocks