Coldfusion Wrapper for wkhtmltopdf
.
.fromX
methods results the binary content of the PDF file. Options are documented by wkhtmltopdf, there are all supported and must be provided in camelcase.
<cfscript>
wkhtmltopdf = new Wkhtmltopdf();
pdf = wkhtmltopdf.fromString('<h1>Hello world</h1>');
</cfscript>
<cfcontent type="application/pdf" variable="#pdf#">
<cfscript>
wkhtmltopdf = new Wkhtmltopdf();
pdf = wkhtmltopdf.fromURL('http://github.com');
</cfscript>
<cfcontent type="application/pdf" variable="#pdf#">
Default: wkhtmltopdf
Allow you to specify wkhtmltopdf bin.