Android:有没有适用于 Android 的免费 PDF 库
我需要一个 PDF 库来操作 PDF 文档(创建 PDF、将图像转换为 PDF)以及类似的操作,但在 Android 中。
我尝试了 android itext 端口,但将库项目添加到我的项目后会生成编译错误。看起来它仍在使用 AWT 中定义的一些仿射变换类。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
IText 似乎工作正常。
要解决 affineTransform 编译问题,您只需在 iText 中标记“Micro PJAWT.jar”以便在 Eclipse 中导出,以便您的依赖项目可以将其用于编译目的。
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.
看看 MuPDF。
MuPDF占用空间非常小,并且几乎完全支持PDF-1.7的所有功能。它是非常流行的 (Windows) SumatraPDF 查看器的基础,但它也已移植到 Android 和 iOS。
然后还查看本网站上提出的有关 MuPDF 的所有问题。
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.
这可能会帮助您
http://androiddeveloperspot。 blogspot.com/2013/05/android-pdf-reader-open-source-code.html
PDF 库在 Android 中渲染 PDF 文件
您也可以尝试 pdfboxhttp://pdfbox.apache.org/
您可以查看此帖子
http://markmail.org/message/b2xjozidt32rhuyq#query:pdfbox%20android+page:1+mid:ipq7pviignd4cpja+state :结果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 pdfboxhttp://pdfbox.apache.org/
You can chk this post
http://markmail.org/message/b2xjozidt32rhuyq#query:pdfbox%20android+page:1+mid:ipq7pviignd4cpja+state:results似乎没有一个纯 java pdf 库可以与 android 一起使用,因为它们使用 android 不支持的库。我想我读到 iText 有兴趣移植到 Android,但认为谷歌应该支持他们,如果他们这样做的话,但还没有这方面的消息来源。
这是一个在 android 中编写 pdf 的项目: sourceforge.net/projects/apwlibrary
没试过,它说它只能做简单的pdf
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