6

I have to provide the functionality of showing PDF docs in my app without using any external PDF viewer. I know Android doesn't have such kind of widget and WebView can't load a PDF doc.

So I want to know, is there any widget available which can be used to show the PDF docs in Activity (like WebView is used to show web pages)?

Mudassir
  • 13,031
  • 8
  • 59
  • 87

3 Answers3

3

As I know, there is no such 'off-the-shelf' solution available for Android yet. You can of course download any third party PDF viewer's code and modify it as per your needs. Some of the Open source PDF viewers:

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Chromium
  • 1,073
  • 1
  • 9
  • 25
1

This has already been covered at https://stackoverflow.com/questions/4665957/pdf-parsing-library-for-android

Community
  • 1
  • 1
Al Sutton
  • 3,904
  • 1
  • 22
  • 17
0

Another solution would be to use a WebView, but then use the pdf.js library to display a given pdf file. I doubt this would look very nice on a small mobile device since it's designed for desktop browsers, but its worth a try.

pdf.js website and demo

timrs2998
  • 1,612
  • 18
  • 14