cordova - How to Display PDF File with in the same App in phonegap -


how show pdf file in same phonegap app. tried inappbrowser,mupdf,pdfjs displaying pdf using other pdf viewer.i open pdf file in same app.can me out.thanks in advance

(excuse poor english) don't know mean "in same app", because inappbrowser, mupdf , pdf.js can that.

in android platform, popular solution send intent , open via other pdf viewers because users can choose there favorite(you can try file opener 2). if don't that, can build activity displaying pdf in app, mupdf viewer. if want open pdf file in cordova/phonegap webview, need mozilla's pdf.js, that's pure-js lib rendering pdf file on html5 canvas, pretty slower using native solution (even build crosswalk), dont suggest that.

it's easier in ios platforms. ios's uiwebview can open pdf files natively, need using inappbrowser plugin. if want more features, there're many plugins (like cordova pdfreader ios) can choose.

hope helps you.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -