# PdfReadPage

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfReadPage.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L127)

**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

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## Usage

Explore 3 API references to this type

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

### Returned or exposed by 3

- Method [PdfDocumentPages.GetEnumerator](/api/pdf/officeimo-pdf-pdfdocumentpages/#method-getenumerator)
- Property [PdfDocumentPages.Item](/api/pdf/officeimo-pdf-pdfdocumentpages/#property-item-int32)
- Property [PdfUnderstandingPageContext.Page](/api/pdf/officeimo-pdf-pdfunderstandingpagecontext/#property-page)

Filter members 

Show inherited

## Methods

`public string ExtractText()` [#](#method-extracttext)

[PdfReadPage.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L127)

Extracts plain text from this page without column reordering.

Returns

`string`

`public IReadOnlyList<PdfAnnotation> GetAnnotations()` [#](#method-getannotations)

[PdfReadPage.cs:476](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L476)

Reads generic annotation metadata from this page.

Returns

`IReadOnlyList<PdfAnnotation>`

`public PdfPageGeometry GetGeometry()` [#](#method-getgeometry)

[PdfReadPage.Geometry.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.Geometry.cs#L6)

Reads page boundary boxes and page-level presentation metadata.

Returns

`PdfPageGeometry`

`public IReadOnlyList<PdfImagePlacement> GetImagePlacements()` [#](#method-getimageplacements)

[PdfReadPage.cs:782](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L782)

Extracts image XObject placement invocations from this page.

Returns

`IReadOnlyList<PdfImagePlacement>`

`public IReadOnlyList<PdfExtractedImage> GetImages()` [#](#method-getimages)

[PdfReadPage.cs:653](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L653)

Extracts image XObjects referenced by this page.

Returns

`IReadOnlyList<PdfExtractedImage>`

`public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotations()` [#](#method-getlinkannotations)

[PdfReadPage.cs:406](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L406)

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

Returns

`IReadOnlyList<PdfLinkAnnotation>`

`public IReadOnlyList<PdfPageAction> GetPageActions()` [#](#method-getpageactions)

[PdfReadPage.PageActions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.PageActions.cs#L6)

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

Returns

`IReadOnlyList<PdfPageAction>`

`public ValueTuple<double, double> GetPageSize()` [#](#method-getpagesize)

[PdfReadPage.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L154)

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.

Returns

`ValueTuple<double, double>`

`public int GetRotationDegrees()` [#](#method-getrotationdegrees)

[PdfReadPage.cs:250](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L250)

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

Returns

`int`

`public IReadOnlyList<PdfTextSpan> GetTextSpans()` [#](#method-gettextspans)

[PdfReadPage.cs:266](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L266)

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

Returns

`IReadOnlyList<PdfTextSpan>`

ToDrawing 2 overloads

`public OfficeDrawing ToDrawing()` [#](#method-todrawing)

[PdfReadPage.Visual.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.Visual.cs#L110)

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

Returns

`OfficeDrawing`

`public OfficeDrawing ToDrawing(OfficeFontFaceCollection fonts, IOfficeTextShapingProvider? textShapingProvider = null, string? textShapingLanguage = null, CancellationToken cancellationToken = default)` [#](#method-todrawing-officeimo-drawing-officefontfacecollection-officeimo-drawing-iofficetextshapingprovider-string-threading-cancellationtoken)

[PdfReadPage.Visual.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.Visual.cs#L125)

Projects supported page content using the supplied fonts and shaping profile before checking glyph visibility.

Parameters

**fonts OfficeIMO.Drawing.OfficeFontFaceCollection required**

Fonts to add after embedded fonts, replacing faces with matching family and style.

**textShapingProvider OfficeIMO.Drawing.IOfficeTextShapingProvider? = null optional**

Optional provider used for glyph shaping and visibility measurements.

**textShapingLanguage string? = null optional**

Optional language passed to the shaping provider.

**cancellationToken System.Threading.CancellationToken = default optional**

Token used to cancel page projection.

Returns

`OfficeDrawing` A drawing scene with the supplied profile applied to the page and nested drawings.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int ObjectNumber { get; }` [#](#property-objectnumber)

[PdfReadPage.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Core/PdfReadPage.cs#L124)

Underlying object number for the page.

<!-- PowerForge markdown artifact sha256:AF6699D32F09E0A0077039AC87BFB3A6957852E16852498B4A847B9CFF149541 -->
