Table of Contents

Method HasTextOnPageAsync

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

HasTextOnPageAsync(int, CancellationToken)

Asynchronously determines whether the specified page contains extractable text.

public Task<bool> HasTextOnPageAsync(int pageIndex, CancellationToken cancellationToken = default)

Parameters

pageIndex int

Zero-based index of the page to check.

cancellationToken CancellationToken

A token to monitor for cancellation requests. Default: None.

Returns

Task<bool>

A task whose result is true if 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