sathyam1992 sathyam1992 - 1 month ago 15
Javascript Question

How to make PDF undownloadable using pdf.js

I found the pdf.js project, which is very useful. However, I am unable to figure out how to remove the "Download" option.

Answer

Here are the steps:

  1. Add jQuery library to shared folder.
  2. Include jQuery library to viewer.html file
  3. Add this on the header section:

    <script>
    $(function(){
        $('#download').hide();
    });
    </script>
    

Done!

Comments