# PdfDocumentReaderExtensions

Projects an already loaded native PDF result into the normalized Reader model.

Class 

`OfficeIMO.Reader.Pdf`

**Namespace**

`OfficeIMO.Reader.Pdf`

**Assembly**

`OfficeIMO.Reader.Pdf`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[PdfDocumentReaderExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Pdf/PdfDocumentReaderExtensions.cs#L22)

**Modifiers**

static

Projects an already loaded native PDF result into the normalized Reader model.

## Inheritance

- object
- PdfDocumentReaderExtensions

Filter members 

Show inherited

## Methods

ReadDocument 2 overloads

`public static OfficeDocumentReadResult ReadDocument(PdfDocumentReadResult document, string sourceName = "document.pdf", ReaderOptions? readerOptions = null, ReaderPdfOptions? pdfOptions = null, CancellationToken cancellationToken = default)` [#](#method-readdocument-officeimo-pdf-pdfdocumentreadresult-string-officeimo-reader-readeroptions-officeimo-reader-pdf-readerpdfoptions-threading-cancellationtoken)

[PdfDocumentReaderExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Pdf/PdfDocumentReaderExtensions.cs#L22)

Reads the supplied logical pages without reopening, parsing, or rendering the PDF.

Parameters

**document OfficeIMO.Pdf.PdfDocumentReadResult required**

Caller-owned native logical result to project.

**sourceName string = "document.pdf" optional**

Logical source name used in locations; no file is opened at this path.

**readerOptions OfficeIMO.Reader.ReaderOptions? = null optional**

Reader projection, inspection, and output budget settings. Null uses the full projection.

**pdfOptions OfficeIMO.Reader.Pdf.ReaderPdfOptions? = null optional**

PDF projection settings, including page selection and chunk grouping.

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

Cancellation observed during projection.

Returns

`OfficeDocumentReadResult` A normalized Reader result for the supplied logical source.

`public static OfficeDocumentReadResult ReadDocument(PdfInspectionReadResult inspection, string sourceName = "document.pdf", ReaderOptions? readerOptions = null, ReaderPdfOptions? pdfOptions = null, CancellationToken cancellationToken = default)` [#](#method-readdocument-officeimo-pdf-pdfinspectionreadresult-string-officeimo-reader-readeroptions-officeimo-reader-pdf-readerpdfoptions-threading-cancellationtoken)

[PdfDocumentReaderExtensions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Pdf/PdfDocumentReaderExtensions.cs#L46)

Projects a completed native inspection while preserving every selected page occurrence and failure.

Parameters

**inspection OfficeIMO.Pdf.PdfInspectionReadResult required**

Caller-owned inspection result, including its original selection outcomes.

**sourceName string = "document.pdf" optional**

Logical source name; no file is opened at this path.

**readerOptions OfficeIMO.Reader.ReaderOptions? = null optional**

Projection and output budgets. A null inspection policy uses the default evidence budget.

**pdfOptions OfficeIMO.Reader.Pdf.ReaderPdfOptions? = null optional**

Projection settings. Select pages when creating the native inspection; reselection here is rejected.

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

Cancellation observed during projection.

Returns

`OfficeDocumentReadResult` A Reader result with native occurrence identities and located failure evidence.

## 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?`

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