Java convert html with css+js to pdf

converters, html, java, javascript, pdf

Solution

better to use wkhtmltopdf tool to convert your HTML to pdf

Problem

I am developing a JSF project and I have a doubt about reporting. The idea is to offer the users reports in both HTML and PDF formats. This should work developing the reports in HTML+CSS+JS and whenever a user needs a PDF report just convert the HMTL+CSS+JS to PDF. Does somebody know a free Java library for converting the HTML to PDF? This should be blind to the user. Other proposals are accepted. Thanks in advance.

Original source