PDFCompressorParams constructor

const PDFCompressorParams({
  1. required String pdfPath,
  2. required int imageQuality,
  3. required double imageScale,
  4. bool unEmbedFonts = false,
})

Create parameters for the pdfCompressor method.

Implementation

const PDFCompressorParams(
    {required this.pdfPath,
    required this.imageQuality,
    required this.imageScale,
    this.unEmbedFonts = false})
    : assert(imageScale > 0 || imageScale <= 5,
          'imageScale should be greater than 0 and less tan or equal to 5'),
      assert(imageQuality > 0 || imageQuality <= 100,
          'imageQuality should be greater than 0 and less tan or equal to 100');