【问题标题】:PDF File is not opening in Android MobilePDF 文件无法在 Android Mobile 中打开
【发布时间】:2016-04-21 13:30:33
【问题描述】:

PDF 文件未显示

<html>
  <body >
   <div data-role="content">
      <object data="Telugu Calendar 2016.pdf" type="application/pdf" width="500"       height="200">
         <a href="Telugu Calendar 2016.pdf">Brochure</a>
      </object>
   </div>
  </body>
</html>

在安卓手机中我在下面写代码

同样的 Exute 在浏览器中工作正常,但在 android 移动 pdf 中没有显示我是 phonegap 的新手请帮助我

【问题讨论】:

    标签: android html cordova pdf


    【解决方案1】:

    据我所知,Android 不支持在 WebView 中开箱即用地查看 PDF。你必须使用一些 Cordova 插件,如 PDFViewer-PluginDocumentViewer-Plugin 在安卓手机中实现这一点。

    【讨论】:

    • 我安装了 PDFVIewer -Plugin 和 Document Viewer _Plugin 我的问题仍然没有解决
    【解决方案2】:

    Android 提供PdfRenderer 类(在 API 级别 21 中添加)。

    您也可以尝试使用this 来实现它。

    希望对你有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多