PDFBox on Android

2019-02-23 12:29发布

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?

3条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-02-23 12:50

PDFs cannot be created using PDFbox in Android

查看更多
欢心
3楼-- · 2019-02-23 12:56

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.

查看更多
该账号已被封号
4楼-- · 2019-02-23 13:13

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.

查看更多
登录 后发表回答