PdfTextBlock class final
One block of text: words the segmentation joined into lines and the block's bbox, role and reading-order position.
sourceLineIndexes preserves provenance: which of the page's source lines (the extraction's own line list) the block's text came from, so a block never silently rewrites the canonical text.
Constructors
-
PdfTextBlock({required int index, required String text, required double x, required double y, required double width, required double height, required PdfBlockRole role, required List<
int> sourceLineIndexes}) -
Creates a block.
const
Properties
- bottom → double
-
Bottom edge in points.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height in points.
final
- index → int
-
The block's position in the page's reading order.
final
- right → double
-
Right edge in points.
no setter
- role → PdfBlockRole
-
The editorial role the block plays.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceLineIndexes
→ List<
int> -
The source line indexes the block's lines came from, in the
block's own order.
final
- text → String
-
The block's text: its lines joined with
\n.final - width → double
-
Width in points.
final
- x → double
-
Left edge in top-left page points.
final
- y → double
-
Top edge in top-left page points.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited