@Component(role=PdfRenderer.class, hint="fo") public class FoPdfRenderer extends AbstractPdfRenderer
doxia, parserModuleManagerROLE| Constructor and Description |
|---|
FoPdfRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
generatePdf(java.io.File inputFile,
java.io.File pdfFile)
Generate a final pdf ouput file from an intermediate format file.
|
void |
render(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
Render an aggregate document from the files found in a Map.
|
void |
render(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel,
DocumentRendererContext context)
Render an aggregate document from the files found in a Map.
|
void |
renderIndividual(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory)
Render documents separately for each file found in a Map.
|
void |
renderIndividual(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
DocumentRendererContext context)
Render documents separately for each file found in a Map.
|
getOutputExtensioncopyDirectory, copyResources, endsWithIgnoreCase, endsWithIgnoreCase, getBaseDir, getExtensions, getFilesToProcess, getFilesToProcess, getOutputName, parse, parse, readDocumentModel, render, render, render, render, render, setBaseDirenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadDocumentModel, render, renderpublic void generatePdf(java.io.File inputFile,
java.io.File pdfFile)
throws DocumentRendererException
inputFile - eg a fo or an itext file.pdfFile - the pdf file to generate.DocumentRendererException - if any.FoUtils.convertFO2PDF(File, File, String)public void render(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
throws DocumentRendererException,
java.io.IOException
render in class AbstractPdfRendererfilesToProcess - the Map of Files to process. The Map should contain as keys the paths of the
source files (relative to baseDir), and the corresponding ParserModule as values.outputDirectory - the output directory where the aggregate document should be generated.documentModel - the document model, containing all the metadata, etc.DocumentRendererException - if anyjava.io.IOException - if anypublic void render(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel,
DocumentRendererContext context)
throws DocumentRendererException,
java.io.IOException
render in class AbstractDocumentRendererfilesToProcess - the Map of Files to process. The Map should contain as keys the paths of the
source files (relative to baseDir), and the corresponding ParserModule as values.outputDirectory - the output directory where the aggregate document should be generated.documentModel - the document model, containing all the metadata, etc.context - the rendering context when processing files.DocumentRendererException - if anyjava.io.IOException - if anypublic void renderIndividual(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory)
throws DocumentRendererException,
java.io.IOException
renderIndividual in class AbstractDocumentRendererfilesToProcess - the Map of Files to process. The Map should contain as keys the paths of the
source files (relative to baseDir), and the corresponding ParserModule as values.outputDirectory - the output directory where the documents should be generated.DocumentRendererException - if anyjava.io.IOException - if anypublic void renderIndividual(java.util.Map<java.lang.String,org.apache.maven.doxia.parser.module.ParserModule> filesToProcess,
java.io.File outputDirectory,
DocumentRendererContext context)
throws DocumentRendererException,
java.io.IOException
renderIndividual in class AbstractDocumentRendererfilesToProcess - the Map of Files to process. The Map should contain as keys the paths of the
source files (relative to baseDir), and the corresponding ParserModule as values.outputDirectory - the output directory where the documents should be generated.context - the rendering context.DocumentRendererException - if anyjava.io.IOException - if any