PDFBox on Android

你。 提交于 2020-01-11 09:27:07

问题


I'm trying to read PDF and show the content on Android using PDFbox. I can only read PDF and show it in Android webview. Can anybody tell me how to show the PDF in another way? Or maybe PDFBox is not compatible with Android?


回答1:


PDFBox (lastest release, 1.5) is not compatible with Android.

-- update --

Correct, like @Gili said, because of AWT dependencies. Android has no AWT nor Swing related classes in its Runtime.




回答2:


I recently did a port of PDFBox to Android. This is only for text extraction from PDF documents. You can find it here - https://github.com/RatheeshRavindran/PDFBoxLight Please note it is still a 'Beta' release.




回答3:


PDFs cannot be created using PDFbox in Android



来源:https://stackoverflow.com/questions/5813217/pdfbox-on-android

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