Files
StudyDiary/20-我的收藏夹/21-浏览器收藏/开发网站/pdf.js/(34条消息) PDF.JS 解决跨域, 传值,本地路径,IE兼容性 问题_pdf.js ie8_沐风Cc的博客-CSDN博客.md
CrazyJasonwell fb40c9b109 add all
2025-10-25 20:35:10 +08:00

17 lines
817 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
raindrop_id: 670472363
created: 2025-08-30T11:44
updated: 2025-09-22T13:26
---
# Metadata
Source URL:: https://blog.csdn.net/mufeng633/article/details/82983234
---
# (34条消息) PDF.JS 解决跨域, 传值,本地路径,IE兼容性 问题_pdf.js ie8_沐风Cc的博客-CSDN博客
文章浏览阅读1.1w次,点赞6次,收藏26次。最近公司要求实现在线预览PDF功能,于是百度查了一些资料,借鉴了一些大佬好的想法,特总结下来,供参考。去官网http://mozilla.github.io/pdf.js/ 下载 pdfjs类库导入项目的 WebRoot 下:之后更改Viewer.js中 默认引入pdf路径,请自行百度。第一种:在本项目中预览PDF这种方式是最简单的,因为不涉及跨域操作以及本机pdf文件操作。代码如下`..._pdf.js ie8
## Highlights