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...