I've seen wkhtmltopdf (a command line tool) being used in a production level application, to generate complex data visualisation reports. It is highly configurable, and with a lot of wrappers present which would enable it to be used with any language of choice; it would be my first bet.