PdfCoordinateTransformer constructor
PdfCoordinateTransformer({
- required PdfBox box,
- PdfPageRotation rotation = PdfPageRotation.none,
- double userUnit = 1.0,
Creates the transformer for a box, a rotation and a /UserUnit.
The box is normalized on construction, so an inverted input such as
[595 842 0 0] produces the same result as [0 0 595 842].
Implementation
PdfCoordinateTransformer({
required PdfBox box,
this.rotation = PdfPageRotation.none,
this.userUnit = 1.0,
}) : box = box.normalized(),
assert(userUnit > 0, 'The /UserUnit must be positive.');