]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Doh committed wrong file
authorChristian Geisert <chrisg@apache.org>
Tue, 11 Mar 2003 09:03:51 +0000 (09:03 +0000)
committerChristian Geisert <chrisg@apache.org>
Tue, 11 Mar 2003 09:03:51 +0000 (09:03 +0000)
(I blame forrest because when running as webapp you have to edit the files in build ;-)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196059 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/anttask.xml

index ba2b2a25c837706a2a3d3aed0e8e838761bc4a29..84a71ee6f7b1c39a4028608ad2ff8b1a12a1dae9 100644 (file)
   </header>
   <body>
     <p>
-    FOP has also an ANT task for integration into your build process.
-    </p>  
-    <section><title>Parameter</title>
+    FOP provides an Ant task for integration into the build process.</p>
+    <section><title>Description</title>
+    <p>
+    FOP Ant task converts xsl-fo documents to PDF/PS/PCL/MIF/RTF output
+    (see <link href="output.html">Output formats</link> for available formats).</p>
+    <p>
+    FileSets are used to select files to render.</p>
+    </section>
+    <!-- TODO: Installation/Configuration -->
+    <section><title>Parameters</title>
+     <table><caption>parameters for FOP Ant task</caption> 
+      <tr> 
+       <th>Attribute</th> 
+       <th>Description</th> 
+       <th>Required</th> 
+      </tr> 
+      <tr> 
+       <td>fofile</td> 
+       <td>XSL-FO file to be rendered</td> 
+       <td>Only if there's no fileset</td> 
+      </tr> 
+      <tr> 
+       <td>outfile</td> 
+       <td>Output filename</td> 
+       <td>Only when fofile is used (if there's no fileset)</td> 
+      </tr> 
+      <tr> 
+       <td>format</td> 
+       <td>Possible ouput formats:<br/>
+         <code>application/pdf</code><br/>
+         <code>application/postscript</code><br/>
+         <code>application/vnd.mif</code><br/>
+         <code>application/rtf</code><br/>
+         <code>application/vnd.hp-PCL</code><br/>
+         <code>text/plain</code><br/>
+         <code>text/xml</code><br/>
+         Defaults to <code>application/pdf</code>
+       </td> 
+       <td>No, default is <code>application/pdf</code></td> 
+      </tr> 
+      <tr> 
+       <td>outdir</td> 
+       <td>Output directory</td> 
+       <td>Yes</td> 
+      </tr> 
+      <tr> 
+       <td>basedir</td> 
+       <td>Directory to work from</td> 
+       <td>Yes</td> 
+      </tr> 
+      <tr> 
+       <td>userconfig</td> 
+       <td>File with user configuration (same as the "-c" command line option)</td> 
+       <td>No</td> 
+      </tr> 
+      <tr> 
+       <td>messagelevel</td> 
+       <td>Logging level<br/>
+       Possible values: error, warn, info, verbose, debug</td> 
+       <td>No; defaults to verbose</td> 
+      </tr> 
+      <tr> 
+       <td>logFiles</td> 
+       <td>Controls whether the names of the files that are processed are logged or not</td> 
+       <td>No; default is true</td> 
+      </tr> 
+     </table> 
+     <section><title>Parameters specified as nested elements</title>
+      <section><title>fileset</title>
+      <p>
+      FileSets are used to select files that will be rendered to the
+      selected output format.</p>
+      </section>
+     </section>
     </section>
     <section>
     <title>Examples</title>
     <p>
-    
+    Converts one XSL-FO file to PDF:
     </p>
     <source><![CDATA[
-  <target name="examples" depends="package" description="Generates example PDF files">
-    <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
-             classpathref="libs-run-classpath"/>
-    <mkdir dir="${build.examples.dir}"/>
-    <fop format="${build.property.examples.mime.type}" outdir="${build.examples.dir}"
-         messagelevel="debug" basedir="${fo.examples.dir}">
-      <fileset dir="${fo.examples.dir}">
-        <include name="**/*.fo"/>
-      </fileset>
-    </fop>
-  </target>
-  ]]></source>
-      <p>
-      See the full text of the <link
-      href="http://archives.apache.org/eyebrowse/ReadMsg?listName=fop-dev@xml.apache.org&amp;msgNo=4509">announcement</link>.
-      </p>
+<target name="generate-pdf" depends="init" description="Generates PDF file">
+
+  <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
+           classpathref="libs-run-classpath"/>
+
+  <fop fofile="examples/fo/basic/extensive.fo" outfile="${build.dir}/extensive.pdf"/>
+
+</target>
+    ]]></source>
+    <p>
+    Converts a whole directory of XSL-FO files to PostScript:
+    </p>
+    <source><![CDATA[
+<fop format="application/postscript" outdir="${build.dir}"
+     messagelevel="debug" basedir="${fo.examples.dir}">
+  <fileset dir="${fo.examples.dir}">
+    <include name="**/*.fo"/>
+  </fileset>
+</fop>
+    ]]></source>
     </section>
     </body>
 </document>