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

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

public class FoUtils
extends Object

FO Sink utilities.

Since:
1.1
Version:
$Id: FoUtils.java 785531 2009-06-17 09:47:59Z ltheussl $
Author:
ltheussl

Method Summary
static void convertFO2PDF(File fo, File pdf, String resourceDir)
          Converts an FO file to a PDF file using FOP.
static void convertFO2PDF(File fo, File pdf, String resourceDir, DocumentModel documentModel)
          Converts an FO file to a PDF file using FOP.
static void convertFO2PDF(File fo, File pdf, String resourceDir, org.apache.fop.apps.FOUserAgent foUserAgent)
          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(File fo,
                                 File pdf,
                                 String resourceDir,
                                 DocumentModel documentModel)
                          throws TransformerException
Converts an FO file to a PDF file using FOP.

Parameters:
fo - the FO file, not null.
pdf - the target PDF file, not null.
resourceDir - The base directory for relative path resolution, could be null. If null, defaults to the parent directory of fo.
documentModel - the document model to add PDF metadatas like author, title and keywords, could be null.
Throws:
TransformerException - In case of a conversion problem.
Since:
1.1.1

convertFO2PDF

public static void convertFO2PDF(File fo,
                                 File pdf,
                                 String resourceDir,
                                 org.apache.fop.apps.FOUserAgent foUserAgent)
                          throws TransformerException
Converts an FO file to a PDF file using FOP.

Parameters:
fo - the FO file, not null.
pdf - the target PDF file, not null.
resourceDir - The base directory for relative path resolution, could be null. If null, defaults to the parent directory of fo.
foUserAgent - the FOUserAgent to use. May be null, in which case a default user agent will be used.
Throws:
TransformerException - In case of a conversion problem.
Since:
1.1.1

convertFO2PDF

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

Parameters:
fo - the FO file, not null.
pdf - the target PDF file, not null.
resourceDir - The base directory for relative path resolution, could be null. If null, defaults to the parent directory of fo.
Throws:
TransformerException - In case of a conversion problem.
See Also:
convertFO2PDF(File, File, String, DocumentModel)


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