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.

Then call .open();

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *