org.apache.fop.render.afp.apps
Class XML2AFP

java.lang.Object
  extended byorg.apache.fop.render.afp.apps.XML2AFP

public class XML2AFP
extends java.lang.Object

This class can be used to test the AFP renderer from the command line. An AFP document can be generated using an existing formatted object (FO) or XML can be supplied with an XSLT file to transform the data into an FO that is then used to generate the AFP document.


Constructor Summary
XML2AFP()
          Default constructor, assumes that input will be valid XSL-FO can can be directly rendered to AFP.
XML2AFP(java.io.File transformFile)
          Constructor taking a xslt transform file.
 
Method Summary
static void main(java.lang.String[] args)
          The main method for the XML2AFP class.
 void process(java.io.File inputFile, java.io.File outputFile)
          Processes the specified input file and places the generated afp document into the specified output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML2AFP

public XML2AFP()
        throws javax.xml.transform.TransformerException
Default constructor, assumes that input will be valid XSL-FO can can be directly rendered to AFP.


XML2AFP

public XML2AFP(java.io.File transformFile)
        throws javax.xml.transform.TransformerException
Constructor taking a xslt transform file. Input will be transformed using the transform file before being rendered to AFP.

Method Detail

main

public static void main(java.lang.String[] args)
The main method for the XML2AFP class.

Parameters:
args - Command line arguments as specified in the USAGE string.

process

public void process(java.io.File inputFile,
                    java.io.File outputFile)
             throws java.io.IOException,
                    javax.xml.transform.TransformerException,
                    org.apache.fop.apps.FOPException
Processes the specified input file and places the generated afp document into the specified output file.

Throws:
java.io.IOException
javax.xml.transform.TransformerException
org.apache.fop.apps.FOPException