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

closed as off-topic by MichaelT, GlenH7, Bart van Ingen Schenau, Kilian Foth, gnat Aug 4 at 11:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – MichaelT, GlenH7, Bart van Ingen Schenau, Kilian Foth, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

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

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