Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I want to extract text from various files. I used Apache POI for parsing Microsoft documents. It's working and now I want to parse PDFs and extract text from them.

Is there a Java API that I could use? I used Apache Tika but it does not provide an API.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The semi-canonical tool to use is pdfbox, It may not do everything you need, but it's an Apache project, so in the long run it's likely to become the most capable library in the bunch.

share|improve this answer
thanks for your answer...i know about it...is there something that provides all in feature? –  chhaya vishwakarma Mar 10 '12 at 19:08
Almost certainly not. The PDF specification is huge - in theory you cold run entire Flash applications in a PDF document - and all projects limit themselves to various approximations of the gold standard. stackoverflow.com/questions/6118635 gives a somewhat more in-depth comparison that is still quite accurate. –  Kilian Foth Mar 10 '12 at 21:11
thanks for your useful response –  chhaya vishwakarma Mar 12 '12 at 9:51
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.