Android PDF Widget

I have to provide the functionality of showing PDF documents in an application without using an external PDF viewer. I know that Android does not have this kind of widgets, and WebView cannot load a PDF document.

So, I want to know if there is any widget that can be used to display PDF documents in Activity (for example, WebView is used to display web pages)?

+8
android pdf widget viewer
source share
3 answers

As I already know, there is no such “ready-made” solution for Android yet. You can, of course, download any third-party code for viewing PDF files and modify it according to your needs. Some of the open source PDF readers:

+6
source share

This is already described at https://stackoverflow.com/questions/4665957/pdf-parsing-library-for-android

+1
source share

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

pdf.js website and demo

0
source share

All Articles