CPDFWatermark constructor

const CPDFWatermark({
  1. required CPDFWatermarkType type,
  2. required List<int> pages,
  3. int index = -1,
  4. String textContent = '',
  5. String imagePath = '',
  6. bool isImageExported = false,
  7. Color textColor = Colors.black,
  8. int fontSize = 24,
  9. double scale = 1.0,
  10. double rotation = 45,
  11. double opacity = 1,
  12. CPDFWatermarkVerticalAlignment verticalAlignment = CPDFWatermarkVerticalAlignment.center,
  13. CPDFWatermarkHorizontalAlignment horizontalAlignment = CPDFWatermarkHorizontalAlignment.center,
  14. double verticalOffset = 0,
  15. double horizontalOffset = 0,
  16. bool isFront = true,
  17. bool isTilePage = false,
  18. double horizontalSpacing = 0,
  19. 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,
});