PdfPage constructor
PdfPage(
- PdfDocument pdfDocument, {
- PdfPageFormat pageFormat = PdfPageFormat.standard,
- PdfPageRotation rotate = PdfPageRotation.none,
- int? index,
- int? objser,
- int objgen = 0,
This constructs a Page object, which will hold any contents for this page.
Implementation
PdfPage(
PdfDocument pdfDocument, {
this.pageFormat = PdfPageFormat.standard,
this.rotate = PdfPageRotation.none,
int? index,
int? objser,
int objgen = 0,
}) : super(pdfDocument,
params: PdfDict.values({
'/Type': const PdfName('/Page'),
}),
objser: objser,
objgen: objgen) {
if (index != null) {
pdfDocument.pdfPageList.pages.insert(index, this);
} else {
pdfDocument.pdfPageList.pages.add(this);
}
}