public class FopFactoryConfigurator extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_BREAK_INDENT_INHERITANCE
Defines if FOP should use an alternative rule to determine text indents
|
static String |
DEFAULT_PAGE_HEIGHT
Defines the default page-height
|
static String |
DEFAULT_PAGE_WIDTH
Defines the default page-width
|
static float |
DEFAULT_SOURCE_RESOLUTION
Defines the default source resolution (72dpi) for FOP
|
static boolean |
DEFAULT_STRICT_FO_VALIDATION
Defines if FOP should use strict validation for FO and user config
|
static boolean |
DEFAULT_STRICT_USERCONFIG_VALIDATION
Defines if FOP should validate the user config strictly
|
static float |
DEFAULT_TARGET_RESOLUTION
Defines the default target resolution (72dpi) for FOP
|
| Constructor and Description |
|---|
FopFactoryConfigurator(FopFactory factory)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(FopFactory factory)
Initializes user agent settings from the user configuration
file, if present: baseURL, resolution, default page size,...
|
org.apache.avalon.framework.configuration.Configuration |
getUserConfig()
Get the avalon user configuration.
|
void |
setUserConfig(org.apache.avalon.framework.configuration.Configuration cfg)
Set the user configuration.
|
void |
setUserConfig(File userConfigFile)
Set the user configuration.
|
void |
setUserConfig(String uri)
Set the user configuration from an URI.
|
public static final boolean DEFAULT_BREAK_INDENT_INHERITANCE
public static final boolean DEFAULT_STRICT_USERCONFIG_VALIDATION
public static final boolean DEFAULT_STRICT_FO_VALIDATION
public static final String DEFAULT_PAGE_WIDTH
public static final String DEFAULT_PAGE_HEIGHT
public static final float DEFAULT_SOURCE_RESOLUTION
public static final float DEFAULT_TARGET_RESOLUTION
public FopFactoryConfigurator(FopFactory factory)
factory - fop factorypublic void configure(FopFactory factory) throws FOPException
factory - fop factoryFOPException - fop exceptionpublic void setUserConfig(File userConfigFile) throws SAXException, IOException
userConfigFile - the configuration fileIOException - if an I/O error occursSAXException - if a parsing error occurspublic void setUserConfig(String uri) throws SAXException, IOException
uri - the URI to the configuration fileIOException - if an I/O error occursSAXException - if a parsing error occurspublic void setUserConfig(org.apache.avalon.framework.configuration.Configuration cfg)
throws FOPException
cfg - avalon configurationFOPException - if a configuration problem occurspublic org.apache.avalon.framework.configuration.Configuration getUserConfig()
Copyright © 2010 - 2020 Adobe. All Rights Reserved