How to make PDF undownloadable using pdf.js

前端 未结 7 1274
长发绾君心
长发绾君心 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

提交回复
热议问题