0

我正在为 android 设备开发 phonegap 应用程序。我想在我的应用程序中查看 pdf,而无需共享或电子邮件选项。只想让用户查看pdf。我知道 inappbrowser 不适用于 android。是否有任何其他可用于 android 的内置插件?请帮帮我。

我试过文件打开器和 pdf 视图插件。还没有帮助。

var options = {
  showButtons: 0, //0: no buttons; 1: ok button, 2: ok and cancel button
  cancel: "Cancel", //text for cancel button
  ok: "OK" //text for ok button
};
PDFViewer.showPDF(decodeURI(devicepath), options, function (result) {
});

其他

window.open(decodeURI(devicepath), '_blank', 'location=yes,EnableViewPortScale=yes');

// openPdfInFileOpener2Plugin(decodeURI(devicepath));

4

0 回答 0