Table of Contents

Method HasTextOnPage

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

HasTextOnPage(int, CancellationToken)

Determines whether the specified page contains extractable text.

public bool HasTextOnPage(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

bool

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