Method HasTextOnPageAsync
HasTextOnPageAsync(int, CancellationToken)
Asynchronously determines whether the specified page contains extractable text.
public Task<bool> HasTextOnPageAsync(int pageIndex, CancellationToken cancellationToken = default)
Parameters
pageIndexintZero-based index of the page to check.
cancellationTokenCancellationTokenA token to monitor for cancellation requests. Default: None.
Returns
- Task<bool>
A task whose result is
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