Search code examples
javareport

Java PDF generating library


Which Java PDF library to use in commercial project? I need to generate a printable (and good if it will be editable, like .xls) report (it contains table, some text and report's total page count - this is because I can't use HTML( I can't calculate page count)). P.S. I can't use iText because it's licence don't allow to use free version of iText in commercial projects.

Thanks.


Solution

  • We are in the same boat at my job, and are moving to pdfbox. For what it's worth, generating real print quality PDFs (like, ones that get printed hardcopy by a print company) for office documents is somewhat non-trivial. In my experience, distiller does the best job. But PDFBox is certainly more straightforward if that will meet your print needs.