search

Home  >  Q&A  >  body text

android - 在微信浏览器中可以在线预览pdf吗?

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

巴扎黑巴扎黑2828 days ago1604

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-17 17:39:11

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

    reply
    0
  • 阿神

    阿神2017-04-17 17:39:11

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 17:39:11

    Hello, how do you achieve this?

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:39:11

    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

    reply
    0
  • Cancelreply