在Android中使用PhoneGap打开PDF [英] Open PDF with PhoneGap in Android

查看:79
本文介绍了在Android中使用PhoneGap打开PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打开URL中的PDF文件.我需要使用PDF Viewer打开它...

I need open an PDF file that is in an url. I need open it with an PDF Viewer...

有可能吗?

谢谢大家.

最诚挚的问候.

推荐答案

我建议使用 ChildBrowser插件和使用Google的查看器实际打开PDF(因为Android没有默认的PDF查看器).

I suggest using the ChildBrowser plugin and using Google's viewer to actualy open the PDF (since Android doesn't have a default PDF viewer).

因此您可以打开这样的PDF:

So you can open a PDF like this:

onclick='window.plugins.childBrowser.showWebPage(encodeURI("http://docs.google.com/viewer?url=' + pdfLink + '"));

这篇关于在Android中使用PhoneGap打开PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆