PdfTextItem class

A run of extracted text with the position it was drawn at.

Constructors

PdfTextItem({required String text, required PdfRect bounds, required PdfPoint origin, required double fontSize, required double renderedFontSize, String? fontName, String? baseFont, bool fullyMapped = true, int formDepth = 0, int renderMode = 0})
Creates a text item.
const

Properties

baseFont → String?
/BaseFont of the font, when the resource could be resolved.
final
bounds → PdfRect
Approximate rectangle occupied by the run, in user space.
final
fontName → String?
Font resource name (/F1), when there was a Tf.
final
fontSize → double
Size requested by Tf, before the matrices.
final
formDepth → int
Zero when the text is directly on the page; higher inside a form XObject.
final
fullyMapped → bool
false when some code could not be mapped to text.
final
hashCode → int
The hash code for this object.
no setterinherited
origin → PdfPoint
Origin of the baseline, in user space.
final
renderedFontSize → double
Effective size after Tm and the CTM — the size visible on the page.
final
renderMode → int
Current rendering mode (Tr). Mode 3 is invisible text — common in OCR layers — and is still extracted.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
Text of the run.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited