Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextMatch

OfficeIMO.Pdf

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

One located text occurrence in PDF user space.

Inheritance

  • object
  • PdfTextMatch

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 3 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.

Returned or exposed by 1

Accepted by parameters 2

Properties

public int PageNumber { get; } #

One-based page number.

public string Text { get; } #

Matched text as searched: whitespace runs and line breaks read as single spaces, and a word hyphenated at a line end reads either joined or with its hyphen.

public double X { get; } #

Left coordinate in page user-space units. PdfTextMatch.X, PdfTextMatch.Y, PdfTextMatch.Width, and PdfTextMatch.Height bound the whole occurrence, including every line of a wrapped occurrence.

public double Y { get; } #

Bottom coordinate in page user-space units.

public double Width { get; } #

Width in page user-space units.

public double Height { get; } #

Height in page user-space units.

public double FontSize { get; } #

Source font size.

public PdfStandardFont SuggestedFont { get; } #

Closest standard PDF font for replacement text.

public string? SourceFont { get; } #

Original PDF base-font name when available.

public OfficeColor Color { get; } #

Source text color.

public double RotationDegrees { get; } #

Source baseline rotation.

public bool IsTextRenderingMode3 { get; } #

True when the occurrence includes OCR-style text painted with rendering mode 3.

public PdfSelectionQuad VisualBounds { get; } #

Axis-aligned occurrence bounds in rendered top-left page coordinates, including the effective page box, page rotation, and user-unit scale.

public IReadOnlyList<PdfSelectionQuad> VisualLineBounds { get; } #

Per-line occurrence bounds in rendered top-left page coordinates, in reading order. An occurrence that wraps across lines has one entry per line segment; a single-line occurrence has one entry equal to PdfTextMatch.VisualBounds.