webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 419 forks source link

Custom buttons #62

Open adamprocter opened 10 years ago

adamprocter commented 10 years ago

Can I create my own buttons for previous and next on the page to control PDF in iframe ? I dont want to use the overlay ?

adityab commented 10 years ago

Hi, this week we plan to make a new release of ViewerJS.

The new behavior will be to show the overlays only on a small mobile device. On a desktop the bottom toolbar will have regular navigation buttons. Will that solve your issue?

If you want to replace the overlays with your own buttons... hmm, you'll need to patch the viewer code for that. We're planning to write a viewer control API that should let you control the viewer externally, but no concrete steps in that direction yet.

adamprocter commented 10 years ago

I need to be able to make my own buttons or control the next and forward via JavaScript so I can control the PDF from another browser window in fact.

Thanks Adam

On 23 Jun 2014, at 14:26, Aditya Bhatt notifications@github.com wrote:

Hi, this week we plan to make a new release of ViewerJS.

The new behavior will be to show the overlays only on a small mobile device. On a desktop the bottom toolbar will have regular navigation buttons. Will that solve your issue?

If you want to replace the overlays with your own buttons... hmm, you'll need to patch the viewer code for that. We're planning to write a viewer control API that should let you control the viewer externally, but no concrete steps in that direction yet.

— Reply to this email directly or view it on GitHub.

adityab commented 10 years ago

Ok, so that needs a Viewer API, something we don't have yet. Open to contributions!

Or email viewerjs-support@kogmbh.com. ;-)