views:

78

answers:

3

Hi guys,

I am working on a project, one feature is to generate PDF format of invoices in Java. There seems to be many solutions, but I don't know which one is the best for invoices.

Please advise,

Thanks.

+3  A: 

iText is a really good Java / PDF API. http://itextpdf.com/

Dante617
For open source, this is my hands down favorite.
Dean J
Are there any templates on the web?
leon
They've kind of made it to where the book "iText in Action" is really the place to go, but there are some good example sites out there:http://www.roseindia.net/java/itext/index.shtmlhttp://www.vogella.de/articles/JavaPDF/article.html,http://javaboutique.internet.com/tutorials/iText/,http://tutorials.jenkov.com/java-itext/getting-started.html,http://www.geek-tutorials.com/java/itext/itext_index.phpThey also do have their JavaDoc out there:http://api.itextpdf.com/index.html?overview-summary.html
Dante617
+1  A: 

As Dante617 already mentioned, iText is a good option to generate PDF with Java. But you have to be very careful while creating your PDFs since you do most of the filling and layout by hand.

I suppose your data for an invoice comes from a database or other datasource, so reporting tools/engines would also be a viable possibility.

There are two big, open source reporting engines:

  1. JasperReports: Provides many possibilities and a graphical editor to create your templates, called iReport
  2. BIRT: Also many features and provides especially good integration into an Eclipse based environment.
Johannes Wachter
A: 

If you want to write less code and do more in templates, you might want to look at JODReports and Docmosis.

jowierun