Creating PDF in Android using PDFBox

强颜欢笑 提交于 2019-12-24 03:25:57

问题


I am trying to create PDF through my Android app using PDFBox api, but getting the following error:

java.lang.NoClassDefFoundError: org.apache.pdfbox.pdmodel.PDDocument

I have already included the following jar files in the classpath of the project:-

  • pdfbox-1.8.4
  • fontbox-1.8.4

In some posts I read that it is not possible to use pdfbox to create PDFs in Android since it uses awt and swing components which are not available in Android.

If PDFBox is not right choice for creating PDFs through Android application then are there any other open source libraries available for performing the same task.Any help would be greatly appreciated.

Thanks in advance.

来源:https://stackoverflow.com/questions/23290698/creating-pdf-in-android-using-pdfbox

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