No PDFJS.workerSrc specified

前端 未结 5 1226
借酒劲吻你
借酒劲吻你 2021-01-07 23:18

Trying to use PDF JS in a local Apache server and receiving the following error in console:

Uncaught Error: No PDFJS.workerSrc specified

Th

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-08 00:01

    Specify psd.worker.js file path in your page where you want to use the pdf.js file (viewer.html in case you are using viewer.html come with distribution bundle) like this. It work for me.

    
    
                                     
                  
提交回复
热议问题