Share the post "Go To Specific Page After Loading Another PDF.JS PDF Document"
So you loaded a PDF in PDF.JS and you want to load another one without refreshing the browser and automatically go to a specific page.
Problem is, when you call PDFViewerApplication.open(), it will jump to the last page visited by the previously opened PDF.
To override this, set the initial bookmark like this.
|
1 |
PDFViewerApplication.initialBookmark = "page=YOUR_PAGE_NUMBER"; |
Then call .open();