(later with data of the database)
It´s the first time, I combine a Java-Lib with groovy.
It seems, that iText is state of the the art for producing PDFs.
I found only few combination at google: Groovy and iText.
This link lead to empty pages (but the contents looked good)
This one was a great help.
Before the information is lost, I copy it to here.
It was very easy, strait forward. Copy th download of iText to groovy/lib
and the imports will the solved. Some magic with Java for the newbee,
but it realy works.
goovy pdf.groovy and the PDF-File is created
GroovyI followed some Groovy talks during Devoxx 2011 and I was impressed by the language, but I haven’t been able to test it out, up until now. As with Jython, it was pretty easy to install and to import iText into a project. It’s actually the same process as you would import a jar into a Java project. Assuming that you’re able to do that without instructions, so here’s the Hello World code for Groovy:
As you can see, the code is straightforward and simple and it looks pretty much like Jython. I prefer Groovy over Jython because it’s much faster and actually feels like a JVM language and not like a port of another language. Still a lot of love for Python though.