CPDFBackground.image constructor
const
CPDFBackground.image({
- required List<
int> pages, - required 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.image({
required this.pages,
required String 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,
}) : type = CPDFBackgroundType.image,
color = null;