PdfTextMatch
OfficeIMO.Pdf
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
- Method PdfDocumentTextEditor.Find
Accepted by parameters 2
- Method PdfDocumentTextEditor.Move
- Method PdfDocumentTextEditor.Replace
Inherited Methods
Properties
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 PdfStandardFont SuggestedFont { get; } #Closest standard PDF font for replacement text.
public string? SourceFont { get; } #Original PDF base-font name when available.
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.