Android : Is there any free PDF library for Android [closed]

为君一笑 提交于 2019-11-26 12:10:48

问题


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.


回答1:


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




回答2:


This might help you

http://androiddeveloperspot.blogspot.com/2013/05/android-pdf-reader-open-source-code.html

PDF Library to rendering the PDF files in Android

You can also try pdfbox

http://pdfbox.apache.org/

You can chk this post

http://markmail.org/message/b2xjozidt32rhuyq#query:pdfbox%20android+page:1+mid:ipq7pviignd4cpja+state:results




回答3:


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.




回答4:


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.



来源:https://stackoverflow.com/questions/3530780/android-is-there-any-free-pdf-library-for-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!