PdfCoordinateTransformer.forPage constructor
PdfCoordinateTransformer.forPage(
- PdfPage page, {
- PdfBoxType reference = PdfBoxType.crop,
Creates the transformer of a page, new or loaded.
reference picks the reference box; the default is PdfBoxType.crop,
which is what the reader shows. When the requested box does not exist, it
falls back to the /CropBox and, finally, to the /MediaBox.
Implementation
factory PdfCoordinateTransformer.forPage(
PdfPage page, {
PdfBoxType reference = PdfBoxType.crop,
}) {
return PdfCoordinateTransformer(
box: pageBox(page, reference),
rotation: page.rotate,
userUnit: pageUserUnit(page),
);
}