PdfConfiguration constructor

PdfConfiguration({
  1. PdfAttributes? attributes,
  2. PageSize pageSize = PageSize.A4,
  3. PageDirection pageDirection = PageDirection.PORTRAIT,
  4. PageFit pageFit = PageFit.FIT_IN,
  5. int dpi = 72,
  6. int jpegQuality = 80,
  7. ResamplingMethod resamplingMethod = ResamplingMethod.NONE,
  8. ParametricFilter? binarizationFilter,
})

Implementation

PdfConfiguration({
  PdfAttributes? attributes,
  this.pageSize = PageSize.A4,
  this.pageDirection = PageDirection.PORTRAIT,
  this.pageFit = PageFit.FIT_IN,
  this.dpi = 72,
  this.jpegQuality = 80,
  this.resamplingMethod = ResamplingMethod.NONE,
  ParametricFilter? binarizationFilter,
})  : attributes = attributes ?? PdfAttributes(),
      binarizationFilter = binarizationFilter ?? null;