Generating PDFs using ColdFusion & WKHTMLTOPDF
Here's a ColdFusion Custom Tag I wrote to generate "pixel perfect" PDFs using WKHTMLTOPDF. It generates PDFs faster and smaller than CFDocument. It uses WebKit to render the HTML. It works well with web fonts so you aren't required to register & install TrueType fonts on the server. You can set the timeout to "0" if you want the PDF to be generated completely in the background without using a ColdFusion thread.
For stylized headers & footers, ensure that you use a full HTML document (including HEADER & BODY elements) for each. I recommend using HTML5.
NOTE: I didn't add all of the WKHTMLTOPDF switches. While adding them, I did notice that there was a certain required order to the parameters. Refer to the offical documentation for more info.
Here's a link since it appears that Tumblr added CSP rules that prevent GISTs from being embedded. (#lame) https://gist.github.com/JamoCA/74e556e7d4f1a715a41d














