public class FORendererApacheFOP extends AbstractFORenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
FORendererApacheFOP.FopPlaceholderLookup |
FORenderer.SectionPageInformation
Modifier and Type | Field and Description |
---|---|
protected static FORendererApacheFOP |
instance |
protected static org.slf4j.Logger |
log |
TEXTBOX_POSTPROCESSING_REQUIRED
PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX
Constructor and Description |
---|
FORendererApacheFOP() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.fop.apps.FormattingResults |
calcResults(org.apache.fop.apps.FopFactory fopFactory,
String outputFormat,
Source foDocumentSrc,
PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup)
For first pass of two pass process, invoke org.apache.fop.apps.FormattingResults which can tell us the number of pages
in each page sequence, and in the document as a whole.
|
protected org.apache.fop.apps.Fop |
createFop(String userConfiguration,
String outputFormat,
OutputStream outputStream) |
protected org.apache.fop.apps.FopFactory |
createFopFactory(String userConfig)
Create and configure FopFactory.
|
protected org.apache.fop.apps.FopFactory |
getFopFactory(String userConfig) |
static FORenderer |
getInstance() |
protected void |
render(org.apache.fop.apps.FopFactory fopFactory,
String outputFormat,
Source foDocumentSrc,
PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup,
OutputStream outputStream) |
void |
render(String foDocument,
FOSettings settings,
boolean twoPass,
List<FORenderer.SectionPageInformation> pageNumberInformation,
OutputStream outputStream)
Render the foDocument to the requested format, if needed do a 2 pass conversion.
|
protected static org.slf4j.Logger log
protected static FORendererApacheFOP instance
public void render(String foDocument, FOSettings settings, boolean twoPass, List<FORenderer.SectionPageInformation> pageNumberInformation, OutputStream outputStream) throws Docx4JException
FORenderer
foDocument
- the fo document to be rendered.settings
- the conversion settings passed to the conversion processtwoPass
- a two pass rendering might be needed, i.e. the body of some tags contain placeholder
How the renderer calculates the corresponding values and replaces them is its responsabilitypageNumberInformation
- This list contains an entry for each section in the document. It defines
the IDs of the corresponding placeholders and the number format (as a fo format).outputStream
- The output stream on which the output should be renderedDocx4JException
public static FORenderer getInstance()
protected void render(org.apache.fop.apps.FopFactory fopFactory, String outputFormat, Source foDocumentSrc, PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup, OutputStream outputStream) throws Docx4JException
Docx4JException
protected org.apache.fop.apps.FormattingResults calcResults(org.apache.fop.apps.FopFactory fopFactory, String outputFormat, Source foDocumentSrc, PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup) throws Docx4JException
fopFactory
- outputFormat
- foDocumentSrc
- placeholderLookup
- Docx4JException
protected org.apache.fop.apps.Fop createFop(String userConfiguration, String outputFormat, OutputStream outputStream) throws org.apache.fop.apps.FOPException
org.apache.fop.apps.FOPException
protected org.apache.fop.apps.FopFactory getFopFactory(String userConfig) throws org.apache.fop.apps.FOPException
org.apache.fop.apps.FOPException
protected org.apache.fop.apps.FopFactory createFopFactory(String userConfig) throws org.apache.fop.apps.FOPException
userConfig
- defaultBaseURI
- org.apache.fop.apps.FOPException
Copyright © 2007-2014. All Rights Reserved.