Method HasTextOnPage
HasTextOnPage(int, CancellationToken)
Determines whether the specified page contains extractable text.
public bool HasTextOnPage(int pageIndex, CancellationToken cancellationToken = default)
Parameters
pageIndexintZero-based index of the page to check.
cancellationTokenCancellationTokenA token to monitor for cancellation requests. Default: None.
Returns
- bool
trueif text extraction for the specified page returns a non-empty result; otherwise,false.
Remarks
This method is useful for determining whether vision processing (e.g., OCR) is needed for a specific page.
For attachments without page semantics, use pageIndex 0.
- See Also