cf-wkhtmltopdf
cf-wkhtmltopdf copied to clipboard
Coldfusion Wrapper for wkhtmltopdf
cf-wkhtmltopdf
Coldfusion Wrapper for wkhtmltopdf.
Usage
.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.
.fromString(str[, options])
<cfscript>
wkhtmltopdf = new Wkhtmltopdf();
pdf = wkhtmltopdf.fromString('<h1>Hello world</h1>');
</cfscript>
<cfcontent type="application/pdf" variable="#pdf#">
.fromURL(urlStr[, options])
<cfscript>
wkhtmltopdf = new Wkhtmltopdf();
pdf = wkhtmltopdf.fromURL('http://github.com');
</cfscript>
<cfcontent type="application/pdf" variable="#pdf#">
.commandPath
Default: wkhtmltopdf
Allow you to specify wkhtmltopdf bin.