@Component(role=PdfRenderer.class, hint="itext") public class ITextPdfRenderer extends AbstractPdfRenderer
document
render with the iText
frameworkdoxia, parserModuleManager
ROLE
Constructor and Description |
---|
ITextPdfRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
generatePdf(File inputFile,
File pdfFile)
Generate a final pdf ouput file from an intermediate format file.
|
void |
render(Map<String,ParserModule> filesToProcess,
File outputDirectory,
DocumentModel documentModel)
Render an aggregate document from the files found in a Map.
|
void |
render(Map<String,ParserModule> filesToProcess,
File outputDirectory,
DocumentModel documentModel,
DocumentRendererContext context)
Render an aggregate document from the files found in a Map.
|
void |
renderIndividual(Map<String,ParserModule> filesToProcess,
File outputDirectory)
Render documents separately for each file found in a Map.
|
void |
renderIndividual(Map<String,ParserModule> filesToProcess,
File outputDirectory,
DocumentRendererContext context)
Render documents separately for each file found in a Map.
|
getOutputExtension
copyDirectory, copyResources, endsWithIgnoreCase, endsWithIgnoreCase, getBaseDir, getExtensions, getFilesToProcess, getFilesToProcess, getOutputName, parse, parse, readDocumentModel, render, render, render, render, render, setBaseDir
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readDocumentModel, render, render
public void generatePdf(File inputFile, File pdfFile) throws DocumentRendererException
inputFile
- eg a fo or an itext file.pdfFile
- the pdf file to generate.DocumentRendererException
- if any.public void render(Map<String,ParserModule> filesToProcess, File outputDirectory, DocumentModel documentModel) throws DocumentRendererException, IOException
render
in class AbstractPdfRenderer
filesToProcess
- 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 anyIOException
- if anypublic void render(Map<String,ParserModule> filesToProcess, File outputDirectory, DocumentModel documentModel, DocumentRendererContext context) throws DocumentRendererException, IOException
render
in class AbstractDocumentRenderer
filesToProcess
- 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 anyIOException
- if anypublic void renderIndividual(Map<String,ParserModule> filesToProcess, File outputDirectory) throws DocumentRendererException, IOException
renderIndividual
in class AbstractDocumentRenderer
filesToProcess
- 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 anyIOException
- if anypublic void renderIndividual(Map<String,ParserModule> filesToProcess, File outputDirectory, DocumentRendererContext context) throws DocumentRendererException, IOException
renderIndividual
in class AbstractDocumentRenderer
filesToProcess
- 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 anyIOException
- if anyCopyright © 2005–2019 The Apache Software Foundation. All rights reserved.