Getting Started

  1. Install AFP Renderer
  2. Run XML2AFP
  3. View Results

Install AFP Renderer

Download the AFP Renderer zip and extract the contents. If you are going to run the command line utility XML2AFP, you should add the install directory to the path.

Run XML2AFP

The AFP Renderer is distributed with a utility called XML2AFP, which will process an xml file producing a corresponding AFP document. Start a shell or command prompt and cd into the afp-renderer directory.

The examples directory contains a number of input files which can be used to test the AFP Renderer. Try the following command:

XML2AFP examples/example01/simple.fo

This create a file called examples/example01/simple.fo.afp

If you already have a sample XSL-FO file, run the following command:

XML2AFP <inputfile>

Replace <inputfile> with the name of the XSL-FO file. The generated AFP document will have the same name as the input file, but with an ".afp" appended. For more information on this utility, refer to the documentation on Running the AFP Renderer.

View Results

View the generated AFP file using one of AFP Viewers. Alternatively, submit the document to an AFP printer.