Fop

Description

Task to process apache fop, tool that converts XSL Formatting Objects (XSL-FO) files to PDF or other printable formats.

Fop task parameters

Attribute Description Value Required
file The input file yes
tofile The output file yes
config The config file no

Examples


<project name="fop task"> 

  <taskdef name="fop" 
     classname="net.sourceforge.ant4x.taskdefs.xml.FopTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="fop"> 
    <fop file="<file>.fo" tofile="<file>.pdf" config="cfg.xml" />
  </target> 

                    </project>