Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextGlyph

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
3b680b1b6fb1 with working tree changes
Modifiers
sealed

Immutable evidence for one encoded PDF glyph in a positioned text span.

Inheritance

  • object
  • PdfTextGlyph

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 1 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 1

Properties

public string Text { get; } #

Decoded text belonging to this glyph; a ligature can contain several Unicode characters.

public int TextStart { get; } #

UTF-16 offset in the owning span's PdfTextSpan.Text.

public int TextLength { get; } #

Number of UTF-16 code units belonging to this glyph.

public double X { get; } #

Glyph origin in page user-space points.

public double Y { get; } #

Glyph origin in page user-space points.

public double Advance { get; } #

Baseline advance in page user-space units, including authored spacing.

public double PaintedAdvance { get; } #

Glyph width in page user-space units before additional character or word spacing.

public IReadOnlyList<byte> EncodedBytes { get; } #

Original encoded PDF character code; callers cannot mutate the reader's bytes.