CPDFWatermarkConfig constructor
const
CPDFWatermarkConfig({
- bool saveAsNewFile = true,
- Color? outsideBackgroundColor,
- List<
CPDFWatermarkType> types = const [CPDFWatermarkType.text, CPDFWatermarkType.image], - String text = "Watermark",
- String image = "",
- int textSize = 30,
- Color textColor = Colors.black,
- double scale = 1.5,
- int rotation = -45,
- int opacity = 255,
- bool isFront = false,
- 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
});