Class
PdfDocumentReaderExtensions
OfficeIMO.Reader.Pdf
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
- Caller-owned native logical result to project.
- sourceName string = "document.pdf"
- Logical source name used in locations; no file is opened at this path.
- readerOptions OfficeIMO.Reader.ReaderOptions? = null
- Reader projection, inspection, and output budget settings. Null uses the full projection.
- pdfOptions OfficeIMO.Reader.Pdf.ReaderPdfOptions? = null
- PDF projection settings, including page selection and chunk grouping.
- cancellationToken System.Threading.CancellationToken = default
- 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
- Caller-owned inspection result, including its original selection outcomes.
- sourceName string = "document.pdf"
- Logical source name; no file is opened at this path.
- readerOptions OfficeIMO.Reader.ReaderOptions? = null
- Projection and output budgets. A null inspection policy uses the default evidence budget.
- pdfOptions OfficeIMO.Reader.Pdf.ReaderPdfOptions? = null
- Projection settings. Select pages when creating the native inspection; reselection here is rejected.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation observed during projection.
Returns
OfficeDocumentReadResult A Reader result with native occurrence identities and located failure evidence.