Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfUnderstandingLine

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
551365f138da with working tree changes
Modifiers
sealed

One grouped text line.

Inheritance

  • object
  • PdfUnderstandingLine

Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

Usage

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

Accepted by parameters 4

Constructors

public PdfUnderstandingLine(IReadOnlyList<PdfUnderstandingWord> words, double? confidence = null, IEnumerable<PdfInferenceEvidence>? evidence = null) #

Creates a line from words in local reading order.

Parameters

words System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfUnderstandingWord> required
confidence double? = null optional
evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? = null optional

Properties

public IReadOnlyList<PdfUnderstandingWord> Words { get; } #

Words in line order.

public string Text { get; } #

Normalized line text.

public double XStart { get; } #

Left bound.

public double XEnd { get; } #

Right bound.

public double BaselineY { get; } #

Representative baseline.

public double FontSize { get; } #

Largest font size in the line.

public double RotationDegrees { get; } #

Representative baseline rotation.

public double Confidence { get; } #

Normalized line-grouping confidence from 0 to 1.

public IReadOnlyList<PdfInferenceEvidence> Evidence { get; } #

Evidence supporting this line grouping.

public PdfLogicalContentSourceKind SourceKind { get; } #

Whether the line came from native PDF text or accepted OCR geometry.

public int? SourceSequence { get; } #

Original source reading position, when supplied.

public string? BlockId { get; } #

Provider block identifier, when supplied.

public string? ParagraphId { get; } #

Provider paragraph identifier, when supplied.

public string? LineId { get; } #

Provider line identifier, when supplied.

public PdfLogicalVisualBounds? VisualBounds { get; } #

Direct top-left visual bounds, when supplied.