CPDFBackground constructor
const
CPDFBackground({
- required List<
int> pages, - required CPDFBackgroundType type,
- Color? color,
- String? imagePath,
- double opacity = 1,
- double scale = 1,
- double rotation = 0,
- CPDFBackgroundHorizontalAlignment horizontalAlignment = CPDFBackgroundHorizontalAlignment.center,
- CPDFBackgroundVerticalAlignment verticalAlignment = CPDFBackgroundVerticalAlignment.center,
- double horizontalOffset = 0,
- double verticalOffset = 0,
- bool allowView = true,
- 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,
});