Open a pdf file inside a webview.

前端 未结 4 1609
眼角桃花
眼角桃花 2020-11-28 14:16

I have an app where I\'ve button on a webpage that is rendered inside a webview.

Now on click of button , a pdf file gets downloaded , and the same would then need t

4条回答
  •  醉话见心
    2020-11-28 14:26

    I don't think any browser other than Chrome supports rendering PDFs without a plugin or third party tool. It's probably easier to let the user use his own app to open PDFs.

    I used the IText PDF library mentioned in this thread Android : Is there any free PDF library for Android for a sample project. You could try getting using this API to get the PDF page as an image. I am not familiar with every aspect of Itext so it might have better way to do this.

提交回复
热议问题