Reputation: 188
I've been having a problem that's just been wracking my brain. I need to programatically control a PDF's view in a webpage via javascript, that is, to zoom in and out, scroll horizontally and vertically and rotate it. I'm indiferent as to whether the PDF is loaded as an object tag in HTML, via a jquery plugin or whatever.
I snooped around and basically saw that Adobe provides a way to do so with their viewer, but this seems dependant on the user's PDF viewer of choice. I also took a look at Mozilla's pdf.js, but I could not, for the life of me, even load the document on Windows.
So, can anyone confirm me if these are my only options to acheive what I want? If not, what alternatives do I have?
To those wondering why I might need this, I'm implementing control via Kinect on some webpages and need to trigger scrolling and zooming in certain circunstances.
Best Regards, João Fernandes
Upvotes: 1
Views: 669
Reputation: 508
PDF.JS should do what you are after, or try FlexPaper if you need it to work across all devices. Maybe you can specify a bit further what it was that wasn't working when you were using PDF.JS? it should be pretty straight forward to get starting using that library.
Upvotes: 1