PdfLayoutFormat constructor
PdfLayoutFormat({
- PdfLayoutType? layoutType,
- PdfLayoutBreakType? breakType,
- Rect? paginateBounds,
Initializes a new instance of the PdfLayoutFormat class.
Implementation
PdfLayoutFormat(
{PdfLayoutType? layoutType,
PdfLayoutBreakType? breakType,
Rect? paginateBounds}) {
this.breakType = breakType ?? PdfLayoutBreakType.fitPage;
this.layoutType = layoutType ?? PdfLayoutType.paginate;
if (paginateBounds != null) {
_paginateBounds = PdfRectangle.fromRect(paginateBounds);
_boundsSet = true;
} else {
_paginateBounds = PdfRectangle.empty;
_boundsSet = false;
}
}