API Reference

Class

PdfReadPage

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Represents a single page parsed from the PDF. Provides access to plain text and basic text spans based on content stream operators.

Inheritance

  • Object
  • PdfReadPage

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Methods

public String ExtractText() #
Returns: String

Extracts plain text from this page without column reordering.

public IReadOnlyList<PdfAnnotation> GetAnnotations() #
Returns: IReadOnlyList<PdfAnnotation>

Reads generic annotation metadata from this page.

public PdfPageGeometry GetGeometry() #
Returns: PdfPageGeometry

Reads page boundary boxes and page-level presentation metadata.

public IReadOnlyList<PdfImagePlacement> GetImagePlacements() #
Returns: IReadOnlyList<PdfImagePlacement>

Extracts image XObject placement invocations from this page.

public IReadOnlyList<PdfExtractedImage> GetImages() #
Returns: IReadOnlyList<PdfExtractedImage>

Extracts image XObjects referenced by this page.

public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotations() #
Returns: IReadOnlyList<PdfLinkAnnotation>

Reads simple URI, named-destination, direct-destination, named-action, and remote GoTo link annotations from this page.

public IReadOnlyList<PdfPageAction> GetPageActions() #
Returns: IReadOnlyList<PdfPageAction>

Reads page-level additional action metadata from this page dictionary.

public ValueTuple<Double, Double> GetPageSize() #
Returns: ValueTuple<Double, Double>

Attempts to read page size from CropBox (or MediaBox) and returns width/height in points. Falls back to 612x792 (US Letter) when not present or malformed.

public Int32 GetRotationDegrees() #
Returns: Int32

Gets inherited page rotation in degrees normalized to 0, 90, 180, or 270.

public IReadOnlyList<PdfTextSpan> GetTextSpans() #
Returns: IReadOnlyList<PdfTextSpan>

Gets text spans (text with position and font info) from this page.

public OfficeDrawing ToDrawing() #
Returns: OfficeDrawing

Projects supported page drawing operators, text spans, and image placements into a dependency-free drawing scene.

Properties

public Int32 ObjectNumber { get; } #

Underlying object number for the page.

Extension Methods

public static OfficeImageExportResult ExportImage(PdfReadPage page, OfficeImageExportFormat format, PdfImageExportOptions options = null) #
Returns: OfficeImageExportResult

Exports one loaded PDF page using the shared five-format result contract.

Parameters

page OfficeIMO.Pdf.PdfReadPage requiredposition: 0
format OfficeIMO.Drawing.OfficeImageExportFormat requiredposition: 1
options OfficeIMO.Pdf.PdfImageExportOptions = null optionalposition: 2
public static StructuredPage ExtractStructured(PdfReadPage page, PdfTextLayoutOptions options = null) #
Returns: StructuredPage

Extracts a simple structured model (lines, TOC entries, list items) for this page.

Parameters

page OfficeIMO.Pdf.PdfReadPage requiredposition: 0
Source page.
options OfficeIMO.Pdf.PdfTextLayoutOptions = null optionalposition: 1
Optional layout options.
public static String ExtractTextWithColumns(PdfReadPage page, PdfTextLayoutOptions options = null) #
Returns: String

Extracts text from a page with simple two-column detection when present.

Parameters

page OfficeIMO.Pdf.PdfReadPage requiredposition: 0
Source page.
options OfficeIMO.Pdf.PdfTextLayoutOptions = null optionalposition: 1
Optional layout options controlling column detection, margins and trimming.

Returns

Plain text for this page in inferred reading order.

ToImage 2 overloads
public static PdfPageImageExportBuilder ToImage(PdfReadPage page) #
Returns: PdfPageImageExportBuilder

Starts fluent image export for one loaded PDF page.

Parameters

page OfficeIMO.Pdf.PdfReadPage requiredposition: 0
public static PdfPageImageExportBuilder ToImage(PdfReadPage page, PdfImageExportOptions options) #
Returns: PdfPageImageExportBuilder

Starts fluent image export for one loaded PDF page using a cloned options snapshot.

Parameters

page OfficeIMO.Pdf.PdfReadPage requiredposition: 0
options OfficeIMO.Pdf.PdfImageExportOptions requiredposition: 1