如何显示通过Android的网络浏览器PDF无&QUOT

如何显示通过Android的网络浏览器PDF无&QUOT

本文介绍了如何显示通过Android的网络浏览器PDF无"下载"第一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让股票Android浏览器自动打开一个PDF,Word或其他典型的文件,而无需通过下载该文件,然后让用户打开从下载的应用程序文件或进程通知栏?

Is there a way to get the stock Android browser to auto-open a PDF, Word or other typical file without having to go through the process of downloading the file and then getting the user to open the file from the Downloads app or the Notification bar?

我们有一个有很多文件,我们希望有,而不必转换为HTML的Web应用程序,而是让用户下载该文件并手动打开它不容易在培训用户。

We have a web application that has a lot of documents that we'd like to include and not have to convert to HTML, but making the user download the file and manually open it is not easy to train users on.

在iOS上,这些文件在浏览器中所有显示的内联。我想一个办法让浏览器自动启动文件到Acrobat Reader或Quickoffice的或任何程序的用户能够显示它们。

On iOS, these files all display inline in the browser. I'd like a way to get the browser to auto-launch the files into Acrobat Reader or QuickOffice or whatever program the user has to display them.

有谁知道一个办法做到这一点?我知道,谷歌文档有一些浏览PDF的支持,但使用我们的Web应用程序的人可能不具备在所有情况下公共互联网接入,并且可以打本地Web服务器上。

Does anyone know a way to do that? I know that Google Docs has some PDF viewing support, but people using our web app may not have public Internet access in all cases, and may be hitting on a local web server.

推荐答案

您可以通过添加URL打开PDF在谷歌文档查看器:

You can open PDF in Google Docs Viewer by appending URL to:

http://docs.google.com/gview?embedded=true&url=<url of a supported doc>

这将在默认浏览器或web视图中打开PDF文件。

This would open PDF in default browser or a WebView.

支持的格式列表给出这里

这篇关于如何显示通过Android的网络浏览器PDF无&QUOT;下载&QUOT;第一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 15:09