# PdfUnderstandingPageContext

Page and option context shared by understanding stages.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfUnderstandingContracts.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L70)

**Modifiers**

sealed

Page and option context shared by understanding stages.

## Inheritance

- object
- PdfUnderstandingPageContext

## 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 8 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.

### Accepted by parameters 8

- Method [IPdfGlyphDecodingStage.Decode](/api/pdf/officeimo-pdf-ipdfglyphdecodingstage/#method-decode-officeimo-pdf-pdfunderstandingpagecontext) parameter `context`
- Method [IPdfImageRegionDetectionStage.Detect](/api/pdf/officeimo-pdf-ipdfimageregiondetectionstage/#method-detect-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingsemanticelement) parameter `context`
- Method [IPdfLineGroupingStage.GroupLines](/api/pdf/officeimo-pdf-ipdflinegroupingstage/#method-grouplines-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingword) parameter `context`
- Method [IPdfPageSegmentationStage.Segment](/api/pdf/officeimo-pdf-ipdfpagesegmentationstage/#method-segment-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingline) parameter `context`
- Method [IPdfReadingOrderStage.Order](/api/pdf/officeimo-pdf-ipdfreadingorderstage/#method-order-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion) parameter `context`
- Method [IPdfSemanticClassificationStage.Classify](/api/pdf/officeimo-pdf-ipdfsemanticclassificationstage/#method-classify-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion) parameter `context`
- Method [IPdfTableDetectionStage.DetectTables](/api/pdf/officeimo-pdf-ipdftabledetectionstage/#method-detecttables-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingline) parameter `context`
- Method [IPdfWordGroupingStage.GroupWords](/api/pdf/officeimo-pdf-ipdfwordgroupingstage/#method-groupwords-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdftextspan) parameter `context`

Filter members 

Show inherited

## Methods

`public void ConsumeWork(long units = 1)` [#](#method-consumework-int64)

[PdfUnderstandingContracts.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L70)

Charges comparison or traversal work and observes cancellation.

Parameters

**units long = 1 optional**

`public void ThrowIfCancellationRequested()` [#](#method-throwifcancellationrequested)

[PdfUnderstandingContracts.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L72)

Throws when semantic reconstruction has been cancelled.

## 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 PdfReadPage Page { get; }` [#](#property-page)

[PdfUnderstandingContracts.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L46)

Parsed source page.

`public int PageNumber { get; }` [#](#property-pagenumber)

[PdfUnderstandingContracts.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L48)

One-based source page number.

`public double Width { get; private set; }` [#](#property-width)

[PdfUnderstandingContracts.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L50)

Page width in page user-space units.

`public double Height { get; private set; }` [#](#property-height)

[PdfUnderstandingContracts.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L52)

Page height in page user-space units.

`public PdfTextLayoutOptions LayoutOptions { get; }` [#](#property-layoutoptions)

[PdfUnderstandingContracts.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L54)

Layout options supplied to the pipeline.

`public int MaxTextCharactersPerPage { get; }` [#](#property-maxtextcharactersperpage)

[PdfUnderstandingContracts.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L56)

Maximum decoded text characters accepted for this page.

`public int MaxWordsPerPage { get; }` [#](#property-maxwordsperpage)

[PdfUnderstandingContracts.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L58)

Maximum word artifacts accepted for this page.

`public int MaxTableCandidatesPerPage { get; internal set; }` [#](#property-maxtablecandidatesperpage)

[PdfUnderstandingContracts.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L60)

Maximum table candidates accepted for this page.

`public int MaxImageCaptionCandidatesPerPage { get; internal set; }` [#](#property-maximagecaptioncandidatesperpage)

[PdfUnderstandingContracts.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L62)

Maximum viable image-caption association edges retained before deterministic matching.

`public CancellationToken CancellationToken { get; }` [#](#property-cancellationtoken)

[PdfUnderstandingContracts.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L64)

Cancellation token observed by built-in and cooperative custom stages.

`public long MaxWorkUnitsPerPage { get; }` [#](#property-maxworkunitsperpage)

[PdfUnderstandingContracts.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L66)

Maximum comparison and traversal work units available to this page.

`public long WorkUnitsConsumed { get; }` [#](#property-workunitsconsumed)

[PdfUnderstandingContracts.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L68)

Work units consumed so far by semantic reconstruction for this page.

`public IReadOnlyList<PdfUnderstandingTableCandidate> TableCandidates { get; internal set; }` [#](#property-tablecandidates)

[PdfUnderstandingContracts.cs:106](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L106)

Table candidates available to page segmentation and later stages.

`public IReadOnlyList<PdfImagePlacement> ImagePlacements { get; internal set; }` [#](#property-imageplacements)

[PdfUnderstandingContracts.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L108)

Image placement invocations available to semantic stages in stable paint order.

<!-- PowerForge markdown artifact sha256:44620AD9E60C2DFF8CAE08FB213E730AB09E4171A38A309C12C6F69D964E5D32 -->
