android - 在android的webview中显示pdf

标签 android android-webview

我正在使用 google 文档的帮助在 webview 中显示 pdf,使用此 urlhttps://docs.google.com/gview?url=+location of pdf。它打破了页面并在右上角提供了导航图标。有什么方法可以在单一流程中显示所有页面而不是破坏它们。

enter image description here

在上图中,我不想在 10 个不同的页面中显示,我希望 pdf 在单个流中显示,我不想使用右上角的导航按钮。

&overridemobile=true 附加到 URL 时,将显示此图像。 enter image description here

最佳答案

您可以将 &overridemobile=true 附加到 url。

例子:

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

这将覆盖移动查看器并将您带到具有单一流程的桌面版本。

关于android - 在android的webview中显示pdf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17761231/

相关文章:

java - android:创建新项目时可以选择目标sdk吗?

Android 通知超时监听器

android - 在 WebView 中完成 AdBlock

android - 在 WebView 中添加进度条

android - 如何从 webview 上传图片?

android - 智能手机中的 BLE 数据包丢失

java - Android FLAG_ACTIVITY_NEW_TASK 不起作用

java - Firebase 数据库 getInstance 崩溃

android - 使用 WebView 时出现 HoloEverywhere CLassNotFoundException

Android webView : check internet connectivity, 持续,直到加载 HTML