简体   繁体   中英

PDF attachment not opening in android

I'm using web-view in an android application. In that application I have to view attached PDF and images. When I click image file it's opening fine, but when I click PDFs it's not opening.

As said you need to use a native pdf renderer like RadaeePDF SDK for example, or you can try ( https://mozilla.github.io/pdf.js/ ) inside the webview.

Rendering using JS should work well on the webview of the versions 4.4 and 5.x, For earlier versions you can check Show PDF file in Android WebView using mozilla pdf.js Android API Level below 19

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM