0

I'm developing phonegap application for android devices. I want view the pdf inside my app without having sharing or email options. Just want user to view the pdf. I know the inappbrowser will not work for android. Is any other in-build plugin available for android.? Please help me out.

I've tried file opener and pdf view plugin. not yet helped.

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) {
});

Others

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

// openPdfInFileOpener2Plugin(decodeURI(devicepath));

J. Murray
  • 1,460
  • 11
  • 19
  • which plugin you are using currently? – Swayangjit Oct 13 '19 at 18:45
  • https://stackoverflow.com/questions/58245953/i-am-trying-this-code-to-share-pdf-fromasset-of-app-but-its-showing-error/58246526?noredirect=1#comment102970943_58246526 you can take help from this, i had posted the answer here – rachna Oct 14 '19 at 06:57
  • Thank you for your response. I'm looking for like iOS inappbrowser plug functionality. I mean, need open my local/online PDF file to view the use without share or download option. – Guru Jayaprasanth Oct 20 '19 at 04:50

0 Answers0