NewPage.fromImage constructor
NewPage.fromImage(
- PdfImagePage imagePage, {
- PageSize? pageSize,
- EdgeInsets? margins,
- int? rotation,
- Color? backgroundColor,
New page from image.
imagePage
The PdfImagePage to use for the page.
pageSize
The size of the page. Defaults to A4.
margins
The margins of the page. Defaults to 0.
rotation
The rotation of the page. Defaults to 0.
backgroundColor
The background color of the page. Defaults to white.
Implementation
factory NewPage.fromImage(PdfImagePage imagePage,
{PageSize? pageSize,
EdgeInsets? margins,
int? rotation,
Color? backgroundColor}) {
return NewPage._(
type: 'imagePage',
imagePage: imagePage,
pageSize: pageSize ?? PageSize.a4,
margins: margins,
rotation: rotation,
backgroundColor: backgroundColor);
}