Method ExtractTextWithPositions
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
ExtractTextWithPositions(TextExtractionOptions?)
Extracts positioned text runs from every page.
public IReadOnlyList<PdfTextRun> ExtractTextWithPositions(TextExtractionOptions? options = null)
Parameters
optionsTextExtractionOptionsExtraction 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
pageIndexintZero-based page index.
optionsTextExtractionOptionsExtraction options; null for the defaults.
Returns
- IReadOnlyList<PdfTextRun>
The runs, in the order chosen by Order.
Exceptions
- ArgumentOutOfRangeException
pageIndexis outside the document's pages.