CPDFBackground constructor

const CPDFBackground({
  1. required List<int> pages,
  2. required CPDFBackgroundType type,
  3. Color? color,
  4. String? imagePath,
  5. double opacity = 1,
  6. double scale = 1,
  7. double rotation = 0,
  8. CPDFBackgroundHorizontalAlignment horizontalAlignment = CPDFBackgroundHorizontalAlignment.center,
  9. CPDFBackgroundVerticalAlignment verticalAlignment = CPDFBackgroundVerticalAlignment.center,
  10. double horizontalOffset = 0,
  11. double verticalOffset = 0,
  12. bool allowView = true,
  13. bool allowPrint = true,
})

Implementation

const CPDFBackground({
  required this.pages,
  required this.type,
  this.color,
  this.imagePath,
  this.opacity = 1,
  this.scale = 1,
  this.rotation = 0,
  this.horizontalAlignment = CPDFBackgroundHorizontalAlignment.center,
  this.verticalAlignment = CPDFBackgroundVerticalAlignment.center,
  this.horizontalOffset = 0,
  this.verticalOffset = 0,
  this.allowView = true,
  this.allowPrint = true,
});