1.官网地址

http://mozilla.github.io/pdf.js/getting_started/

2.下载旧版本

 

 

 3.复制到项目地址中使用<a>标签

 <a href="../content/pdfjs-3.4.120-dist/web/viewer.html?file=xxx.pdf">预览</a>