CPDFWatermarkConfig constructor

const CPDFWatermarkConfig({
  1. bool saveAsNewFile = true,
  2. Color? outsideBackgroundColor,
  3. List<CPDFWatermarkType> types = const [CPDFWatermarkType.text, CPDFWatermarkType.image],
  4. String text = "Watermark",
  5. String image = "",
  6. int textSize = 30,
  7. Color textColor = Colors.black,
  8. double scale = 1.5,
  9. int rotation = -45,
  10. int opacity = 255,
  11. bool isFront = false,
  12. bool isTilePage = false,
})

Implementation

const CPDFWatermarkConfig({
  this.saveAsNewFile = true,
  this.outsideBackgroundColor,
  this.types = const [CPDFWatermarkType.text, CPDFWatermarkType.image],
  this.text = "Watermark",
  this.image = "",
  this.textSize = 30,
  this.textColor = Colors.black,
  this.scale = 1.5,
  this.rotation = -45,
  this.opacity = 255,
  this.isFront = false,
  this.isTilePage = false
});