Android - Load PDF inside webview

前端 未结 5 1094
暖寄归人
暖寄归人 2020-12-28 11:11

I have this webview code and I want to make it possible to have the PDF files opened when a user clicks on a PDF link. Here is the code, can you tell me what I have to put

5条回答
  •  执念已碎
    2020-12-28 11:59

    FWIW, mozilla has a PDF-reader-entirely-in-JavaScript that's apache licensed. Might be worth looking into if you don't mind the extra size. That way you can do everything in-browser and won't have to rely on a 3rd party PDF reader.

提交回复
热议问题