Table of Contents

Method ExtractPdfText

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

ExtractPdfText(string, string?)

Extracts text from a PDF file, optionally limited to an inclusive page range.

public string ExtractPdfText(string path, string? pageRange = null)

Parameters

path string

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

pageRange string?

An optional single page or range such as 5 or 2-7.

Returns

string

Extracted page text, a scanned/encrypted PDF message, or a truncation notice.