closePage method
Closes the page if it was open. Returns a instance of PdfiumWrap
Implementation
PdfiumWrap closePage() {
if (_page != null && _page != nullptr) {
pdfium.FPDF_ClosePage(_page!);
if (bitmap != null && bitmap != nullptr) {
pdfium.FPDFBitmap_Destroy(bitmap!);
}
}
return this;
}