PDF.js Express Version
7.3.2
Detailed description of issue
Hi guys, I am launching a WebViewer instance, and wonder if it contains the total number of pages of the document the instance loads.
Expected behaviour
I found a getPageCount() method but on the “DocumentViewer” class… wondering if there is something similar I could call when I create an instance of the Web viewer:
WebViewer(
{
etc
},
viewer.current,
).then((instance) => {
--> I need to get the loaded doc's total page count in here
Does your issue happen with every document, or just one?
Any document.
Link to document
Not applicable.
Code snippet
WebViewer(
{
etc
},
viewer.current,
).then((instance) => {
→ I need to get the loaded doc’s total page count in here
Thanks!