android - 在微信浏览器中可以在线预览pdf吗?
巴扎黑
巴扎黑 2017-04-17 17:37:11
0
4
1561

如果可以。用什么方式实现。还有个问题就是怎么解决在微信浏览器中点击网页链接,会打开手机默认浏览器进行下载,这个下载方式可以进行控制吗?如何控制。?QAQ

巴扎黑
巴扎黑

reply all(4)
迷茫

No, the pdf is converted into images on the server side and then displayed.

阿神

pdfjs can be implemented, but I have tested it and it only works on Android. There seems to be a problem with ios

小葫芦

Hello, how do you achieve this?

巴扎黑

ios itself supports direct preview of pdf files, so you can create a page and use js to judge it. If it is ios, directly access the pdf file to preview. If it is android, jump to other pages for processing. I also searched online. In addition to pdfjs, there is also jquery's touchPDF, which relies on pdfjs, but the effect is not very good and cannot be displayed in full screen

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!