getPageCount method
Returns the number of pages of the loaded document.
Throws an PdfiumException if the no document is loaded
Implementation
int getPageCount() {
if (_document == nullptr) {
throw PdfiumException(message: 'Document not load');
}
return pdfium.FPDF_GetPageCount(_document!);
}