Simple PDF Text Extraction on Android?

2019-01-19 18:08发布

问题:

Does anyone know of a PDF text extraction library that works for Android? To be clear all I want to do is extract text from an existing PDF. I have no use for extracting images, or creating pdfs. I have tried IText, and found that it generates an error (could not find class com.lowagie.text.pdf.PdfReader). I have also tried DroidText which generates the same error.

回答1:

Many people have problems about reading/extract Text (PDF) on Android.

Did you try to check here ? PDF Library for Android

I think you can find good solutions there. Tell me if you need more information about that.



回答2:

MuPDF exists on Android, and has a text extraction capability. Its GPL. Although its only a viewer on Android, the library clearly can be compiled on Android (its what the viewer uses after all).

www.mupdf.com