pagesCount property

int pagesCount

Number of pages in the document. This value is not available in a MultiPage body and will be equal to pageNumber. But can be used in Header and Footer.

Implementation

int get pagesCount => document.pdfPageList.pages.length;