Table of Contents

Method SearchPdfText

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

SearchPdfText(string, string, int, int)

Searches extractable PDF text and returns bounded, page-numbered snippets with pagination.

public string SearchPdfText(string path, string query, int offset = 1, int limit = 20)

Parameters

path string

The relative, agent-facing, or host PDF path the active workspace allows reading.

query string

The literal text to find, matched without case sensitivity.

offset int

The one-based matching-page index where the result page starts.

limit int

The maximum number of matching pages to return.

Returns

string

PDF page metadata and a bounded page of matching snippets.