tags:

views:

355

answers:

5

Does anyone know a good pdf library for Java ? My specific requirement is to find co-ordinates of the text in pdf file. If anyone knows, some pointers will be helpful.

+6  A: 

iText PDF - http://itextpdf.com/

Apache FOP - http://xmlgraphics.apache.org/fop/

PDFBox - http://pdfbox.apache.org/

PDF Renderer - https://pdf-renderer.dev.java.net/

thelost
FOP does not parse PDF's
Thorbjørn Ravn Andersen
+4  A: 

Check out any of these:

(credit/see also: Free java library for converting existing pdf to a pdf/a)

Mark E
+3  A: 

I've just started looking into Apache's PdfBox for exactly this purpose. It looks like one of their examples, PrintTextLocations.java, is a good starting point for what you're after.

torak
This is what I wanted. Thanks for your input. Will check it out.
yogsma
+1  A: 

I would say that iText is the one most wildly used

KingInk
I haven't used it , but does it give the locations of text in pdf file?
yogsma
+1  A: 

Have you tried Big Faceless - http://big.faceless.org/products/pdf/

Daniel