add method
Adds a new page.
Implementation
PdfPage add() {
PdfPage page;
if (PdfDocumentHelper.getHelper(_helper.document!).isLoadedDocument) {
page = insert(count);
PdfPageHelper.getHelper(page).document = _helper.document;
} else {
page = PdfPage();
PdfPageHelper.getHelper(page).isNewPage = true;
_helper.addPage(page);
PdfPageHelper.getHelper(page).isNewPage = false;
}
return page;
}