Skip to content

PdfOcrPage class

View as Markdown

Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr

The result for one page. Coordinates are in PDF user space: points, y up, before /Rotate.

public sealed record PdfOcrPage : IEquatable<PdfOcrPage>

Inheritance

object ← PdfOcrPage

Implements

IEquatable<PdfOcrPage>

PdfOcrPage(int, PdfOcrPageStatus, string?, IReadOnlyList<OcrLine>)

Section titled “ PdfOcrPage(int, PdfOcrPageStatus, string?, IReadOnlyList<OcrLine>)”

The result for one page. Coordinates are in PDF user space: points, y up, before /Rotate.

public PdfOcrPage(int Index, PdfOcrPageStatus Status, string? Reason, IReadOnlyList<OcrLine> Lines)

Index int

Zero based page index.

Status PdfOcrPageStatus

What happened.

Reason string?

Why a page was skipped or failed, or null.

Lines IReadOnlyList<OcrLine>

The text found, in reading order.

Zero based page index.

public int Index { get; init; }

int

The text found, in reading order.

public IReadOnlyList<OcrLine> Lines { get; init; }

IReadOnlyList<OcrLine>

How far the text on the scan was found turned clockwise, in degrees, beyond what the page’s /Rotate and the scan’s placement say: 0, 90, 180 or 270. The page was read turned back. See DetectOrientation.

public int Orientation { get; init; }

int

Why a page was skipped or failed, or null.

public string? Reason { get; init; }

string?

What happened.

public PdfOcrPageStatus Status { get; init; }

PdfOcrPageStatus

The page’s text, lines joined with newlines.

public string Text { get; }

string