Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfUnderstandingWord

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

One decoded word candidate with source-run traceability.

Inheritance

  • Object
  • PdfUnderstandingWord

Usage

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

Constructors

public PdfUnderstandingWord(String text, Double xStart, Double xEnd, Double baselineY, Double fontSize, Double rotationDegrees, IReadOnlyList<PdfTextSpan> sourceRuns, Double confidence = 1, IEnumerable<PdfInferenceEvidence>? evidence = null, Double? advance = null, PdfLogicalVisualBounds? visualBounds = null, Int32? sourceSequence = null) #

Creates a positioned word artifact for a custom grouping stage.

Parameters

text System.String requiredposition: 0
xStart System.Double requiredposition: 1
xEnd System.Double requiredposition: 2
baselineY System.Double requiredposition: 3
fontSize System.Double requiredposition: 4
rotationDegrees System.Double requiredposition: 5
sourceRuns System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfTextSpan> requiredposition: 6
confidence System.Double = 1 optionalposition: 7
evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? = null optionalposition: 8
advance System.Double? = null optionalposition: 9
visualBounds OfficeIMO.Pdf.PdfLogicalVisualBounds? = null optionalposition: 10
sourceSequence System.Int32? = null optionalposition: 11

Properties

public String Text { get; } #

Decoded word text.

public Double XStart { get; } #

Left bound in PDF points.

public Double XEnd { get; } #

Right bound in PDF points.

public Double BaselineY { get; } #

Baseline Y in PDF points.

public Double FontSize { get; } #

Representative font size.

public Double RotationDegrees { get; } #

Baseline rotation in degrees.

public Double? Advance { get; } #

Distance occupied along the baseline, including vertical and rotated baselines, when known.

public PdfLogicalVisualBounds? VisualBounds { get; } #

Direct top-left visual bounds, when supplied by a positioned source such as OCR.

public Int32? SourceSequence { get; } #

Original zero-based source order, when supplied by the decoder or positioned provider.

public IReadOnlyList<PdfTextSpan> SourceRuns { get; } #

Decoded source runs that produced this word.

public Double Confidence { get; } #

Normalized grouping confidence from 0 to 1.

public IReadOnlyList<PdfInferenceEvidence> Evidence { get; } #

Evidence supporting this word grouping.