CPDFWatermark constructor
const
CPDFWatermark({
- required CPDFWatermarkType type,
- required List<
int> pages, - int index = -1,
- String textContent = '',
- String imagePath = '',
- bool isImageExported = false,
- Color textColor = Colors.black,
- int fontSize = 24,
- double scale = 1.0,
- double rotation = 45,
- double opacity = 1,
- CPDFWatermarkVerticalAlignment verticalAlignment = CPDFWatermarkVerticalAlignment.center,
- CPDFWatermarkHorizontalAlignment horizontalAlignment = CPDFWatermarkHorizontalAlignment.center,
- double verticalOffset = 0,
- double horizontalOffset = 0,
- bool isFront = true,
- bool isTilePage = false,
- double horizontalSpacing = 0,
- double verticalSpacing = 0,
Implementation
const CPDFWatermark({
required this.type,
required this.pages,
this.index = -1,
this.textContent = '',
this.imagePath = '',
this.isImageExported = false,
this.textColor = Colors.black,
this.fontSize = 24,
this.scale = 1.0,
this.rotation = 45,
this.opacity = 1,
this.verticalAlignment = CPDFWatermarkVerticalAlignment.center,
this.horizontalAlignment = CPDFWatermarkHorizontalAlignment.center,
this.verticalOffset = 0,
this.horizontalOffset = 0,
this.isFront = true,
this.isTilePage = false,
this.horizontalSpacing = 0,
this.verticalSpacing = 0,
});