1

I'm looking for a Java library to display pdf files and annotations contained in these pdf files. I tried pdfrenderer and icepdf, but none of the two display annotations (icepdf manages to display highlighted text at least).

Any hint is appreciated.

Cheers, Max

Max
  • 157
  • 2
  • 11
  • See http://stackoverflow.com/questions/4983730/java-pdf-renderer – prunge Nov 14 '11 at 05:04
  • Have a look [here](http://stackoverflow.com/questions/1082327/java-library-for-pdf-rendering) – mprabhat Nov 14 '11 at 05:18
  • I read this post, but I couldn't find anything about annotations, so I wasn't sure which library would be suitable. – Max Nov 14 '11 at 05:19

2 Answers2

1

Did you try out iText and Jasper Reports?

Franklin
  • 1,790
  • 2
  • 14
  • 17
  • iText doesn't render as far as I know (it's used to create pdf files). Jasper, I have used for similar things as iText (pdf generation), but not for displaying pdfs. – Max Nov 14 '11 at 05:04
  • Also check out http://pdfbox.apache.org/ - I have not used it, but have seen friends. – yati sagade Nov 14 '11 at 05:06
  • "This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents." - from http://pdfbox.apache.org/. Again, it doesn't seem to render pdf files. – Max Nov 14 '11 at 05:09
  • So assuming this is a desktop based application, cant you try to spit out the PDF as a stream(to one of the components that support HTML) as if you were rendering a webpage? – Franklin Nov 14 '11 at 05:21
  • The idea is to jump to certain positions within the pdf file and show the text, so converting it to HTML isn't really an option... – Max Nov 14 '11 at 05:26
1

The OS version of JPedal is free and does annotations http://www.jpedal.org/open_source_pdf_viewer_download.php

mark stephens
  • 3,205
  • 16
  • 19