sathyam1992 sathyam1992 - 11 months ago 107
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 Source

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!