Yep. I made the mistake of overwriting the code that hid those buttons and I’m working though it. Sorry
If you know how to add plugins by uploading them, and you’re willing to test, you can check out the develop version where the print/download button hiding should be fixed: https://github.com/TwisterMc/PDF.js-Viewer-Shortcode/tree/develop
New version is out and hopefully it fixes the download & print button hiding.
Hi Thomas,
thank you for the new version. It works fine.
Unfortunately the name of the PDF file is readable in the source of the page and I would like to prevent the file from being downloaded.
Best regards
Silvio
I don’t think that’s a feature of PDF.js. You’ll need to ask Mozilla about that, we’re just including their library. https://mozilla.github.io/pdf.js/