Android : Is there any free PDF library for Android

AndroidPdfMupdf

Android Problem Overview


I need a PDF library for manipulating a PDF documents, (creating PDF, image convertinng to PDF) and things like that but in Android.

I tried the android itext port but the library project generates compile errors after I added it to my Project. Looks like it is still using some affinetransformation classes that are defined in AWT.

Android Solutions


Solution 1 - Android

It seems that no one of the pure java pdf libraries will work with android because they use libraries that aren't supported by android. I think I read that iText is interested in doing a port to android but thinks that google should support them if they did, haven't got a source on that though.

Here is a project in work for writing pdfs in android: sourceforge.net/projects/apwlibrary Haven't tried it and it says that it only does simple pdfs

Solution 2 - Android

Solution 3 - Android

Have a look at MuPDF.

MuPDF uses a very small footprint and has nearly-complete support for all features of PDF-1.7. It is the base for the quite popular (Windows) SumatraPDF viewer, but it has been ported to Android and iOS too.

Then also have a look at all the questions that have been asked on this website concerning MuPDF.

Solution 4 - Android

IText seems to work fine.

To fix the affineTransform compilation issue you simply need to mark the "Micro PJAWT.jar" in iText for export in Eclipse so that your dependent project can use it for compilation purposes.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNezirView Question on Stackoverflow
Solution 1 - AndroidsoftarnView Answer on Stackoverflow
Solution 2 - AndroidDeRaganView Answer on Stackoverflow
Solution 3 - AndroidKurt PfeifleView Answer on Stackoverflow
Solution 4 - AndroidDanny D'AmoursView Answer on Stackoverflow