PdfRect class
Rectangle in PDF page coordinates.
Please note that PDF page coordinates is different from Flutter's coordinate. PDF page coordinates's origin is at the bottom-left corner and Y-axis is pointing upward; bottom is generally smaller than top. The unit is normally in points (1/72 inch).
- Annotations
Properties
- bottom → double
-
Bottom coordinate (smaller than top).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
Height of the rectangle.
no setter
- isEmpty → bool
-
Determine whether the rectangle is empty.
no setter
- isNotEmpty → bool
-
Determine whether the rectangle is NOT empty.
no setter
- left → double
-
Left coordinate.
final
- right → double
-
Right coordinate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
Top coordinate (bigger than bottom).
final
- width → double
-
Width of the rectangle.
no setter
Methods
-
merge(
PdfRect other) → PdfRect - Merge two rectangles.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
int rotation, PdfPage page) → PdfRect -
toRect(
{required PdfPage page, Size? scaledTo, int? rotation}) → Rect -
Convert to Rect in Flutter coordinate. height specifies the height of the page (original size).
scale
is used to scale the rectangle. -
toRectInPageRect(
{required PdfPage page, required Rect pageRect}) → Rect -
Convert to Rect in Flutter coordinate using
pageRect
as the page's bounding rectangle. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override