Skip to content

LoicMahieu/cf-wkhtmltopdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •