Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfDocumentReaderExtensions

OfficeIMO.Reader.Pdf

Namespace
OfficeIMO.Reader.Pdf
Assembly
OfficeIMO.Reader.Pdf
Source revision
273d35d5ba8a with working tree changes
Modifiers
static

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

Inheritance

  • object
  • PdfDocumentReaderExtensions

Methods

ReadDocument 2 overloads
public static OfficeDocumentReadResult ReadDocument(PdfDocumentReadResult document, string sourceName = "document.pdf", ReaderOptions? readerOptions = null, ReaderPdfOptions? pdfOptions = null, CancellationToken cancellationToken = default) #

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) #

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.