Move to Groovy. Use wkhtmltopdf for document creation.