1

For PDF files ios platform has UIDocumentInteractionController controller and UIDocumentInteractionControllerDelegate to open PDF documents in another application like evernote, dropbox, google drive etc. Is there a way like this for android platform? I found a sample for IOS in here but could not find a sample for Android.

Thanks.

KaSSeRiaN
  • 11
  • 1
  • Have a look at this http://rajeshandroiddeveloper.blogspot.in/2013/05/android-view-pdf-in-webview.html – Jigar Pandya Mar 12 '14 at 12:48
  • Even this one - http://asmncl.blogspot.in/2012/06/android-open-pdf-file-in-webview.html – Jigar Pandya Mar 12 '14 at 12:49
  • 1
    possible duplicate of [Android open pdf file](http://stackoverflow.com/questions/17453105/android-open-pdf-file) – CommonsWare Mar 12 '14 at 12:50
  • thank you but this is not the solution i'm looking for. because i have dropbox and evernote installed on my device to use with pdf documents but this solution does not care about them. with this way it just show open pdf document with acrobat reader and polaris office. i want more options like open in evernote, open in dropbox etc. – KaSSeRiaN Mar 13 '14 at 16:03
  • i tried to use Intent.ACTION_SEND instead of ACTION_VIEW. And get the result nearly what i want. but this time adobe acrobat reader and polaris office options disappeared. is there a way for both lists available? i mean evernote, dropbox, drive, acrobat, polaris etc. i can open document or send document. acrobat reader android application has share option is working with evernote, dropbox and drive. Thanks. – KaSSeRiaN Mar 14 '14 at 13:11

2 Answers2

1

I strongly recomend you look at MuPDF. This is open source project so you are free to integrate mupdf with your project, as well modify and distribute it. Developer say that muPdf is small, fast, and yet complete. And it's completly true!

But integrate MuPDF with existing android project is not easy. Here a few useful links:

Official docs

also look here

how to use with existing android project

Hope it help you

validcat
  • 6,158
  • 2
  • 29
  • 38
  • But if u use MuPDF in your projects, you must release your project in opensource form also or violate license otherways. Comercial license for MuPDF is pretty expensive. – Alexey Kruchenok Oct 22 '14 at 11:47
0

Not used this but you can try it ..

https://github.com/JoanZapata/android-pdfview

Akash Yadav
  • 861
  • 7
  • 11