public class FORendererApacheFOP extends AbstractFORenderer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FORendererApacheFOP.FopPlaceholderLookup |
FORenderer.SectionPageInformation| Modifier and Type | Field and Description |
|---|---|
static String |
FOP_FACTORY |
protected static FORendererApacheFOP |
instance |
protected static org.slf4j.Logger |
log |
TEXTBOX_POSTPROCESSING_REQUIREDPLACEHOLDER_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.
|
static org.apache.fop.apps.FopFactoryBuilder |
getFopFactoryBuilder(FOSettings settings)
Get a FopFactoryBuilder, automagically preconfigured with font info.
|
static org.apache.fop.apps.FopFactoryBuilder |
getFopFactoryBuilder(FOSettings settings,
org.apache.xmlgraphics.io.ResourceResolver resourceResolver)
Get a FopFactoryBuilder, automagically preconfigured with font info.
|
static org.apache.fop.apps.FOUserAgent |
getFOUserAgent(FOSettings settings,
org.apache.fop.apps.FopFactory fopFactory)
Allow user access to FOUserAgent, so they can setAccessibility(true).
|
static FORenderer |
getInstance() |
protected void |
render(org.apache.fop.apps.FopFactory fopFactory,
org.apache.fop.apps.FOUserAgent foUserAgent,
String outputFormat,
Source foDocumentSrc,
PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup,
OutputStream outputStream) |
void |
render(String foDocument,
FOSettings settings,
boolean twoPass,
List<FORenderer.SectionPageInformation> pageNumberInformation,
OutputStream outputStream) |
protected static org.slf4j.Logger log
protected static FORendererApacheFOP instance
public static final String FOP_FACTORY
public void render(String foDocument, FOSettings settings, boolean twoPass, List<FORenderer.SectionPageInformation> pageNumberInformation, OutputStream outputStream) throws Docx4JException
Docx4JExceptionpublic static FORenderer getInstance()
protected void render(org.apache.fop.apps.FopFactory fopFactory,
org.apache.fop.apps.FOUserAgent foUserAgent,
String outputFormat,
Source foDocumentSrc,
PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup,
OutputStream outputStream)
throws Docx4JException
Docx4JExceptionprotected 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 - Docx4JExceptionpublic static org.apache.fop.apps.FOUserAgent getFOUserAgent(FOSettings settings, org.apache.fop.apps.FopFactory fopFactory) throws Docx4JException, org.apache.fop.apps.FOPException
wmlPackage - org.apache.fop.apps.FOPExceptionDocx4JExceptionpublic static org.apache.fop.apps.FopFactoryBuilder getFopFactoryBuilder(FOSettings settings) throws org.apache.fop.apps.FOPException
settings - org.apache.fop.apps.FOPExceptionpublic static org.apache.fop.apps.FopFactoryBuilder getFopFactoryBuilder(FOSettings settings, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) throws org.apache.fop.apps.FOPException
settings - resourceResolver - your custom resourceResolverorg.apache.fop.apps.FOPExceptionCopyright © 2007-2022. All Rights Reserved.