API Reference
PdfReadDocumentExtensions
Convenience APIs for column-aware text extraction at the document level.
Inheritance
- Object
- PdfReadDocumentExtensions
Methods
public static IReadOnlyList<StructuredHeadingPage> ExtractHeadingsByPage(PdfReadDocument doc, PdfTextLayoutOptions options = null) #IReadOnlyList<StructuredHeadingPage>Extracts detected headings grouped by page while preserving heading geometry.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static IReadOnlyList<StructuredListItemPage> ExtractListItemsByPage(PdfReadDocument doc, PdfTextLayoutOptions options = null) #IReadOnlyList<StructuredListItemPage>Extracts detected list items grouped by page while preserving marker and nesting hints.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static IReadOnlyList<StructuredParagraphPage> ExtractParagraphsByPage(PdfReadDocument doc, PdfTextLayoutOptions options = null) #IReadOnlyList<StructuredParagraphPage>Extracts detected paragraphs grouped by page while preserving paragraph geometry.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static ValueTuple<List<String>, List<ValueTuple<String, Int32>>, List<String>, List<String[]>> ExtractStructured(PdfReadDocument doc, PdfTextLayoutOptions options = null) #ValueTuple<List<String>, List<ValueTuple<String, Int32>>, List<String>, List<String[]>>Extracts simple structured content (lines, TOC rows, list items, leader rows) for the whole document.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static IReadOnlyList<StructuredPage> ExtractStructuredPages(PdfReadDocument doc, PdfTextLayoutOptions options = null) #IReadOnlyList<StructuredPage>Extracts structured content for each page while preserving page boundaries and detailed table geometry.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static IReadOnlyList<StructuredTablePage> ExtractTablesByPage(PdfReadDocument doc, PdfTextLayoutOptions options = null) #IReadOnlyList<StructuredTablePage>Extracts detected tables grouped by page while preserving table geometry.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static String ExtractTextWithColumns(PdfReadDocument doc, PdfTextLayoutOptions options = null) #StringExtracts text for all pages using simple two-column detection per page, separating pages with a blank line.
Parameters
- doc OfficeIMO.Pdf.PdfReadDocument
- Source document.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options controlling column detection, margins and trimming.
Returns
Concatenated plain text for all pages with inferred reading order.