Method ExtractTextWithPositions

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

ExtractTextWithPositions(TextExtractionOptions?)

Extracts positioned text runs from every page.

public IReadOnlyList<PdfTextRun> ExtractTextWithPositions(TextExtractionOptions? options = null)

Parameters

options TextExtractionOptions

Extraction options; null for the defaults.

Returns

IReadOnlyList<PdfTextRun>

The runs of all pages, page by page; see PageIndex.

ExtractTextWithPositions(int, TextExtractionOptions?)

Extracts the text of a page as runs with their positions, font and size.

public IReadOnlyList<PdfTextRun> ExtractTextWithPositions(int pageIndex, TextExtractionOptions? options = null)

Parameters

pageIndex int

Zero-based page index.

options TextExtractionOptions

Extraction options; null for the defaults.

Returns

IReadOnlyList<PdfTextRun>

The runs, in the order chosen by Order.

Exceptions

ArgumentOutOfRangeException

pageIndex is outside the document's pages.