GetPageTextStatistics
Text, extraction
Description
Extracts the selected page with the current extraction options and counts characters, whitespace-separated words and text blocks
Syntax
Delphi
Function GetPageTextStatistics(Page: Integer; Out CharCount, WordCount, BlockCount: Integer): Integer;Parameters
| Page | 1-based page number |
|---|---|
| CharCount, WordCount, BlockCount | Receive the counts |
Return value
1 on success, or 0 when the page is out of range or extraction fails
Remarks
The active extraction options apply, so option 19 (skip invisible text) changes the counts for OCR-layered pages