Skip to content

How do I open a saved PDF file on my Android device ? #510

Answered by breautek
leonelgregioauler asked this question in Q&A
Discussion options

You must be logged in to vote

PDFs are complex binaries, so a pdf viewer software is necessary.

The proper "android" way is to use an Intent to open the PDF document, which the user can choose a supported application of their choice (e.g. Adobe Acrobat Reader).

Cordova doesn't have an out-of-the-box solution to open intents in a general sense. A cordova plugin will need to expose a way to request for the PDF to be opened using an app capable of reading PDFs.

Alternatively, Mozilla as a PDF reader implementation in pure JS using an HTML canvas (https://mozilla.github.io/pdf.js/). This will likely be not very performant if I were to guess, but it could be good enough for your needs and probably worth looking into. The g…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@leonelgregioauler
Comment options

@leonelgregioauler
Comment options

@breautek
Comment options

@leonelgregioauler
Comment options

Answer selected by leonelgregioauler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants