org.apache.maven.doxia.module.fo
Class FoUtils

java.lang.Object
  extended by org.apache.maven.doxia.module.fo.FoUtils

public class FoUtils
extends java.lang.Object

FO Sink utilities.

Since:
1.1
Version:
$Id: FoUtils.java 746987 2009-02-23 12:30:21Z vsiveton $
Author:
ltheussl

Method Summary
static void convertFO2PDF(java.io.File fo, java.io.File pdf, java.lang.String resourceDir)
          Converts an FO file to a PDF file using FOP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertFO2PDF

public static void convertFO2PDF(java.io.File fo,
                                 java.io.File pdf,
                                 java.lang.String resourceDir)
                          throws javax.xml.transform.TransformerException
Converts an FO file to a PDF file using FOP.

Parameters:
fo - the FO file.
pdf - the target PDF file.
resourceDir - The base directory for relative path resolution. If null, defaults to the parent directory of fo.
Throws:
javax.xml.transform.TransformerException - In case of a conversion problem.


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.