|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.doxia.module.fo.FoUtils
public class FoUtils
FO Sink
utilities.
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. |
static void |
convertFO2PDF(java.io.File fo,
java.io.File pdf,
java.lang.String resourceDir,
DocumentModel documentModel)
Converts an FO file to a PDF file using FOP. |
static void |
convertFO2PDF(java.io.File fo,
java.io.File pdf,
java.lang.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 |
---|
public static void convertFO2PDF(java.io.File fo, java.io.File pdf, java.lang.String resourceDir, DocumentModel documentModel) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
- In case of a conversion problem.public static void convertFO2PDF(java.io.File fo, java.io.File pdf, java.lang.String resourceDir, org.apache.fop.apps.FOUserAgent foUserAgent) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
- In case of a conversion problem.public static void convertFO2PDF(java.io.File fo, java.io.File pdf, java.lang.String resourceDir) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
- In case of a conversion problem.convertFO2PDF(File, File, String, DocumentModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |