pdf.js with local pdf file

后端 未结 1 1099
感情败类
感情败类 2021-01-01 15:21

I\'m trying out the pdf.js library and just want to display a local pdf file on my server instead of the pdf file provided by the example.


<         


        
相关标签:
1条回答
  • 2021-01-01 15:58

    modify pdfjs/web/viewer.js file and change the

    var DEFAULT_URL = '<file path on your server>'
    

    This worked when I tried to implement the demo at http://mozilla.github.com/pdf.js/web/viewer.html on my local system

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