Hi there pdf.js community,
I recently discovered the pdf.js viewer and I'm hoping for a little help finding some functions.
For my project, I have taken the viewer and modified it a bit to embed it within a surrounding webpage (staging site only). I have found that when I load the page, the window is automatically scrolled to the bottom, cutting off the header of the website. This only happens after a PDF is successfully loaded into the pdf.js viewer. I believe there is something in viewer.js that is trying to bring the PDF up to the top of the window, but I can't pinpoint it. Does anyone know what line of code is causing this?
I've also built a jQuery function that moves the viewer to a new location in the DOM in order to create a full-screen effect. When doing this, the pdf loses it's current page. I noticed that the codebase has the ability to remember the last page the user viewed - does anyone know what function I could call to initiate that after the user goes to full-screen?
Thank you very much - your assistant is very much appreciated!
James McKenzie
Communications Designer
( T
416 598-2233 ext.26 | F
416 598-1676
( Neglia Design Inc | 302 King Street East Toronto, ON Canada M5A 1K6
(
http://www.NegliaDesign.com |
ja...@negliadesign.com