PdfOcrPage class
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
Implements
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Zero based page index.
public int Index { get; init; }Property Value
Section titled “Property Value”The text found, in reading order.
public IReadOnlyList<OcrLine> Lines { get; init; }Property Value
Section titled “Property Value”Orientation
Section titled “ Orientation”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; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”Why a page was skipped or failed, or null.
public string? Reason { get; init; }Property Value
Section titled “Property Value”Status
Section titled “ Status”What happened.
public PdfOcrPageStatus Status { get; init; }Property Value
Section titled “Property Value”The page’s text, lines joined with newlines.
public string Text { get; }