Detailed description of issue
can we integrate a side layout of all pdf pages on outside of the viewer. On click of each page, the pdf page inside the viewer should also change. Thanks.
First you’ll want to get the document object every time a new document is loaded using the getDocument API.
Then with that document, you’ll want to get how many pages it has. You can use the getPageCount API for that.
Then you’ll want to loop over each page and use loadThumbnailAsync to get a thumbnail for each page. It resolves with a canvas that you can insert directly into the DOM.
When a thumbnail is clicked in your UI, you can use the setCurrentPage API to scroll to the desired page.