How to make PDF undownloadable using pdf.js
just add this in viewer.css
.download
{
display:none !important;
}
.print
{
display:none !important;
}
Just deleting the buttons breaks pdf.js. You need to add a "hidden" class to them (https://github.com/mozilla/pdf.js/issues/2611)