From 6677404dfad505ef7052ddee20582a3a6e5605da Mon Sep 17 00:00:00 2001
From: Christian Geisert
- FOP provides an Ant task for integration into the build process.
- FOP Ant task converts xsl-fo documents to PDF/PS/PCL/MIF/RTF output + The FOP Ant task will convert XSL-FO documents to PDF/PS/PCL/MIF/RTF output (see Output formats for available formats).
- FileSets are used to select files to render.
+ To call FOP tasks within Ant, first add a FOP task definition to your Ant build file. + One method of defining the task is as follows: + + ++ Then create FOP tasks within your Ant build file, using the FOP task parameters listed below.
Attribute | Description | @@ -27,16 +43,16 @@|||
---|---|---|---|---|
fofile | XSL-FO file to be rendered | -Only if there's no fileset | +Yes, if no fileset nested element is used | |
outfile | Output filename | -Only when fofile is used (if there's no fileset) | +Yes, when fofile is used. (This attribute is not valid for filesets.) | |
format | -Possible ouput formats: + | Possible output formats:application/pdf application/postscript application/vnd.mif @@ -44,70 +60,78 @@ application/vnd.hp-PCL text/plain text/xml - Defaults to application/pdf
|
- No, default is application/pdf |
+ No, defaults to application/pdf |
outdir | Output directory | -Yes | +Required if a fileset is used to specify the files to render; optional for fofile. (Can alternatively specify the full path in the fofile value.) | |
userconfig | -File with user configuration (same as the "-c" command line option) | +User configuration file (same as the FOP "-c" command line option) | No | |
messagelevel | Logging level - Possible values: error, warn, info, verbose, debug |
- No; defaults to verbose | + Possible values:No, defaults to verbose |
|
logFiles | -Controls whether the names of the files that are processed are logged or not | -No; default is true | +Controls whether the names of the files that are processed are logged
+ (true ) or not (false ) |
+ No, default is true |
+
Attribute | +Description | +Required | +
---|---|---|
fileset | +FileSets + are used to specify multiple XSL-FO files to be rendered. | +Yes, if no fofile attribute is supplied |
- FileSets are used to select files that will be rendered to the - selected output format.
-- Converts one XSL-FO file to PDF: + The following example converts a single XSL-FO file to a PDF document:
-