Closed pishguy closed 3 years ago
hi @MahdiPishguy try this
PDF(
onPageChanged: (page, total) {
_pageCount.value = total;
},
onViewCreated: (PDFViewController pdfViewController) async {
_pdfViewController.complete(pdfViewController);
_pageCount.value = await pdfViewController.getPageCount();
},
)
explain the prob pdfViewController was created but pdf file still downloading or get from cache
if this solution worked with you please let me know and close issue
if this solution worked with you please let me know and close issue
Yes, thanks a lot, 🥇
i this code that i used in our application i get zero for getting page count