Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfScanPreview

OfficeIMO.Pdf.Ocr

Namespace
OfficeIMO.Pdf.Ocr
Assembly
OfficeIMO.Pdf.Ocr
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Source and prepared page appearances for explicit scan review.

Inheritance

  • object
  • PdfScanPreview

Usage

Explore 2 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.

Methods

public PdfDocument CreateImagePdf(CancellationToken cancellationToken = default) #

Creates a single-page raster PDF of the reviewed appearance. Interactive content and native text are not copied.

Parameters

cancellationToken System.Threading.CancellationToken = default optional

Returns

PdfDocument
public byte[] GetPreparedPng() #

Independent prepared page PNG.

Returns

byte[]
public byte[] GetSourcePng() #

Independent original page PNG.

Returns

byte[]

Properties

public int PageNumber { get; } #

One-based source page.

public double Width { get; } #

Prepared width in points at the requested sampling density.

public double Height { get; } #

Prepared height in points at the requested sampling density.

public int PixelWidth { get; } #

Prepared width in pixels.

public int PixelHeight { get; } #

Prepared height in pixels.

public OfficeScanProcessingReport? ScanProcessing { get; } #

Geometry and tone decisions from optional affine processing.

public IReadOnlyList<string> Diagnostics { get; } #

Rendering and preparation limits or decisions.