LoicMahieu / cf-wkhtmltopdf

Coldfusion Wrapper for wkhtmltopdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Coldfusion Wrapper for wkhtmltopdf


Languages

Language:ColdFusion 100.0%