How to make PDF undownloadable using pdf.js

前端 未结 7 1272
长发绾君心
长发绾君心 2021-02-04 12:50

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

相关标签:
7条回答
  • 2021-02-04 13:52

    Add this to viewer.css:

    To hide download icon:

    .toolbarButton.download {
        display: none;
    }
    

    To hide printer icon...

    .toolbarButton.download {
        display: none;
    }
    

    For both...

    .toolbarButton.download, .toolbarButton.print {
        display: none;
    }
    

    -- Ravi Jayagopal

    Wordpress S3 Plugin

    0 讨论(0)
提交回复
热议问题