org.apache.maven.doxia.docrenderer.pdf.fo
Class FoPdfRenderer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.doxia.docrenderer.AbstractDocumentRenderer
org.apache.maven.doxia.docrenderer.pdf.AbstractPdfRenderer
org.apache.maven.doxia.docrenderer.pdf.fo.FoPdfRenderer
- All Implemented Interfaces:
- DocumentRenderer, org.codehaus.plexus.logging.LogEnabled, PdfRenderer
- public class FoPdfRenderer
- extends AbstractPdfRenderer
PDF renderer that uses Doxia's FO module.
- Since:
- 1.1
- Version:
- $Id: FoPdfRenderer.java 782388 2009-06-07 13:32:11Z vsiveton $
- Author:
- ltheussl
- Plexus component:
- role:
- "org.apache.maven.doxia.docrenderer.pdf.PdfRenderer"
- role-hint:
- "fo"
|
| Fields inherited from interface org.apache.maven.doxia.docrenderer.pdf.PdfRenderer |
ROLE |
|
Method Summary |
void |
generatePdf(File inputFile,
File pdfFile)
Generate a final pdf ouput file from an intermediate format file. |
void |
render(Map filesToProcess,
File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
Render an aggregate document from the files found in a Map. |
void |
renderIndividual(Map filesToProcess,
File outputDirectory)
Render documents separately for each file found in a Map. |
| Methods inherited from class org.apache.maven.doxia.docrenderer.AbstractDocumentRenderer |
copyDirectory, copyResources, getBaseDir, getFilesToProcess, getFilesToProcess, getOutputName, parse, readDocumentModel, render, render, render, render, setBaseDir |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FoPdfRenderer
public FoPdfRenderer()
generatePdf
public void generatePdf(File inputFile,
File pdfFile)
throws DocumentRendererException
- Generate a final pdf ouput file from an intermediate format file.
- Parameters:
inputFile - eg a fo or an itext file.pdfFile - the pdf file to generate.
- Throws:
DocumentRendererException - if any.- See Also:
FoUtils.convertFO2PDF(File, File, String)
render
public void render(Map filesToProcess,
File outputDirectory,
org.apache.maven.doxia.document.DocumentModel documentModel)
throws DocumentRendererException,
IOException
- Render an aggregate document from the files found in a Map.
- Specified by:
render in class AbstractDocumentRenderer
- Parameters:
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 SiteModule as values.outputDirectory - the output directory where the aggregate document should be generated.documentModel - the document model, containing all the metadata, etc.
- Throws:
IOException - if any
DocumentRendererException - if any
renderIndividual
public void renderIndividual(Map filesToProcess,
File outputDirectory)
throws DocumentRendererException,
IOException
- Render documents separately for each file found in a Map.
- Overrides:
renderIndividual in class AbstractDocumentRenderer
- Parameters:
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 SiteModule as values.outputDirectory - the output directory where the documents should be generated.
- Throws:
IOException - if any
DocumentRendererException - if any
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.