remove method
Removes the specified page.
//Load an exisiting PDF document.
PdfDocument document = PdfDocument.fromBase64String(pdfData);
//Get the first page.
PdfPage page = document.pages[0];
//Remove the first page.
document.pages.remove(page);
//Save and dispose document.
List<int> bytes = await document.save();
document.dispose();
Implementation
void remove(PdfPage page) {
_removePage(page, indexOf(page));
}