简体   繁体   中英

Open a PDF located in a local network with a WebView Android

I am trying to open a PDF in a WebView. The problem is that the PDF is located on a server in the local network. Should I first download the PDF to the device and then try and open if from there, or is there a workaround which would not involve me downloading the PDF to the device?

I had to save the PDF on the sd card in the device form the server. Once I did this I was able to launch a PDF viewer from my application.

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