Display pdf in webview of android

安稳与你 提交于 2019-12-31 05:06:05

问题


I'm displaying a pdf in webview using help of google docs, with this url, https://docs.google.com/gview?url=+location of pdf. It's breaking the pages and giving navigation icons on top right. Is there any way to display all the pages in single flow instead of breaking them.

In the image above, instead of showing in 10 different pages, i want the pdf to be displayed in single flow, I don't want to use navigation buttons on top right.

when &overridemobile=true is appended to URL, this image is being showed.


回答1:


You can append &overridemobile=true to the url.

Example:

https://docs.google.com/gview?url=www.example.com/example.pdf&overridemobile=true

This will override the mobile viewer and take you to the desktop version, which has a single flow.



来源:https://stackoverflow.com/questions/17761231/display-pdf-in-webview-of-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!