-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable toolbar buttons at will? #2611
Comments
Do you want to completely disable a button, or would if suffice if it's not visible? |
Disabling completely |
Looks like your issue is out-of-scope of this project. If you are removing HTML elements from viewer.js, you have to remove code that using them in the viewer.js, e.g. if 'next' button is removed, the line https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L2880 must be removed as well. Closing as invalid |
I would like to removed the button "download" from the PDF JS viewer too. Is there a way to do that instead of just included the |
You can remove the entire HTML element and all associated download code (in |
@timvandermeij, |
Looks fine to me. |
@yurydelendik I applaud, really. The prevalent willingness to work against the open web is scary. |
I have downloaded the example in http://mozilla.github.com/pdf.js/web/viewer.html and all the assets. Everything works fine. But now I'm trying to disable certain buttons to limit the functions a user has. I have tried commenting out individual buttons in the HTML code -even the div.toolbar layer- but the page doesn't load.
What should I do to accomplish that? Thanks!
The text was updated successfully, but these errors were encountered: