Turning a web page into a PDF report is a common requirement for websites. There are many approaches to this problem, the most common is to convert the HTML and CSS into a PDF. If done well, the results can be quite nice. If done poorly, the resulting PDF's can be ugly and unusable. I will discuss some techniques on how to design a web page's HTML and CSS to be clean and presentable both on the web and as a PDF. I will also present the two most common open source technologies for converting HTML to PDF, [PhantomJS](http://phantomjs.org/)and [WKHTMLTOPDF](https://wkhtmltopdf.org/). I will show how to use them both, compare and contrast their abilities, and discuss when to use one over the other. [157]


Comments are closed.