API Reference
PdfReadPage
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
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property PdfReadDocument.Pages
- Property PdfUnderstandingPageContext.Page
Accepted by parameters
- Method PdfImageExportExtensions.ExportImage
- Method PdfImageExportExtensions.ToImage
- Method PdfImageExportExtensions.ToImage
- Extension method PdfReadPage.ExportImage
- Extension method PdfReadPage.ExtractStructured
- Extension method PdfReadPage.ExtractTextWithColumns
- Extension method PdfReadPage.ToImage
- Extension method PdfReadPage.ToImage
- Method PdfReadPageExtensions.ExtractStructured
- Method PdfReadPageExtensions.ExtractTextWithColumns
Methods
public String ExtractText() #StringExtracts plain text from this page without column reordering.
public IReadOnlyList<PdfAnnotation> GetAnnotations() #IReadOnlyList<PdfAnnotation>Reads generic annotation metadata from this page.
public PdfPageGeometry GetGeometry() #PdfPageGeometryReads page boundary boxes and page-level presentation metadata.
public IReadOnlyList<PdfImagePlacement> GetImagePlacements() #IReadOnlyList<PdfImagePlacement>Extracts image XObject placement invocations from this page.
public IReadOnlyList<PdfExtractedImage> GetImages() #IReadOnlyList<PdfExtractedImage>Extracts image XObjects referenced by this page.
public IReadOnlyList<PdfLinkAnnotation> GetLinkAnnotations() #IReadOnlyList<PdfLinkAnnotation>Reads simple URI, named-destination, direct-destination, named-action, and remote GoTo link annotations from this page.
public IReadOnlyList<PdfPageAction> GetPageActions() #IReadOnlyList<PdfPageAction>Reads page-level additional action metadata from this page dictionary.
public ValueTuple<Double, Double> GetPageSize() #ValueTuple<Double, Double>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.
public Int32 GetRotationDegrees() #Int32Gets inherited page rotation in degrees normalized to 0, 90, 180, or 270.
public IReadOnlyList<PdfTextSpan> GetTextSpans() #IReadOnlyList<PdfTextSpan>Gets text spans (text with position and font info) from this page.
public OfficeDrawing ToDrawing() #OfficeDrawingProjects supported page drawing operators, text spans, and image placements into a dependency-free drawing scene.
Inherited Methods
Properties
public Int32 ObjectNumber { get; } #Underlying object number for the page.
Extension Methods
public static OfficeImageExportResult ExportImage(PdfReadPage page, OfficeImageExportFormat format, PdfImageExportOptions options = null) #OfficeImageExportResultExports one loaded PDF page using the shared five-format result contract.
Parameters
- page OfficeIMO.Pdf.PdfReadPage
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.Pdf.PdfImageExportOptions = null
public static StructuredPage ExtractStructured(PdfReadPage page, PdfTextLayoutOptions options = null) #StructuredPageExtracts a simple structured model (lines, TOC entries, list items) for this page.
Parameters
- page OfficeIMO.Pdf.PdfReadPage
- Source page.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options.
public static String ExtractTextWithColumns(PdfReadPage page, PdfTextLayoutOptions options = null) #StringExtracts text from a page with simple two-column detection when present.
Parameters
- page OfficeIMO.Pdf.PdfReadPage
- Source page.
- options OfficeIMO.Pdf.PdfTextLayoutOptions = null
- Optional layout options controlling column detection, margins and trimming.
Returns
Plain text for this page in inferred reading order.
public static PdfPageImageExportBuilder ToImage(PdfReadPage page) #PdfPageImageExportBuilderStarts fluent image export for one loaded PDF page.
Parameters
- page OfficeIMO.Pdf.PdfReadPage
public static PdfPageImageExportBuilder ToImage(PdfReadPage page, PdfImageExportOptions options) #PdfPageImageExportBuilderStarts fluent image export for one loaded PDF page using a cloned options snapshot.
Parameters
- page OfficeIMO.Pdf.PdfReadPage
- options OfficeIMO.Pdf.PdfImageExportOptions