wkhtmltopdf

Description

Task to process wkhtmltopdf.

Installation

Install binary and setup system PATH.

Typescript task parameters

Attribute Description Value Required
file the file to process yes
tofile the output file yes
options override all previous options no

Examples

/!\ wkhtmltopdf must be installed on the system and set up in the PATH.

<project name="wkhtmltopdf task"> 

  <taskdef name="wkhtmltopdf" 
     classname="net.sourceforge.ant4x.taskdefs.doc.WkhtmltopdfTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="wkhtmltopdf"> 
  <wkhtmltopdf file="index.html" tofile="out.pdf"/>
  </target>
                    </project>