Modifier and Type | Method and Description |
---|---|
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.
|
public static void convertFO2PDF(File fo, File pdf, String resourceDir, DocumentModel documentModel) throws TransformerException
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.TransformerException
- In case of a conversion problem.public static void convertFO2PDF(File fo, File pdf, String resourceDir, org.apache.fop.apps.FOUserAgent foUserAgent) throws TransformerException
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.TransformerException
- In case of a conversion problem.public static void convertFO2PDF(File fo, File pdf, String resourceDir) throws TransformerException
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.TransformerException
- In case of a conversion problem.convertFO2PDF(File, File, String, DocumentModel)
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.