Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails and pdf generation [closed]

any experiences creating pdfs programmatically in Grails using some of the numerous java libs available ? Snippets are welcomed !

Thanks

like image 267
xain Avatar asked Feb 19 '10 13:02

xain


4 Answers

Grails Rendering Plugin is the best option out there.

You just do a GSP (HTML+CSS) and it simply give you a PDF! Simple and fast!

Best regards!

like image 174
Wanderson Santos Avatar answered Oct 13 '22 02:10

Wanderson Santos


you can try the plugins Dynamic Jasper or the jasper plugin. The Dynamic Jasper plugin generates reports of your domain-class pretty simple, allowing customization of the reports. The Jasper plugin has tags to manipulate reports. The links contains snippets and samples.

like image 38
Lucas Avatar answered Oct 13 '22 02:10

Lucas


Another option is using any XSL-FO rendering library like Apache FOP.

like image 42
Stefan Armbruster Avatar answered Oct 13 '22 01:10

Stefan Armbruster


I haven't used this but if your looking to generate a PDF version of your view instead of html look at this plugin. If you want to convert existing HTML into PDF look at this If you want to generate custom PDF documents that arn't closely based on your views or domain classes you can check out IText for the ability to generate complex documents.

like image 34
Jared Avatar answered Oct 13 '22 02:10

Jared