PdfPageContentEditor constructor

PdfPageContentEditor(
  1. PdfPage page, {
  2. PdfBoxType reference = PdfBoxType.crop,
})

Creates the editor for page.

reference picks the box that defines the visible area used to position stamps; the default is the /CropBox, which is what the reader shows.

Implementation

PdfPageContentEditor(
  this.page, {
  this.reference = PdfBoxType.crop,
}) : transformer =
          PdfCoordinateTransformer.forPage(page, reference: reference);