|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.apps.FOUserAgent
This is the user agent for FOP. It is the entity through which you can interact with the XSL-FO processing and is used by the processing to obtain user configurable options.
Renderer specific extensions (that do not produce normal areas on
the output) will be done like so:
The extension will create an area, custom if necessary
this area will be added to the user agent with a key
the renderer will know keys for particular extensions
eg. bookmarks will be held in a special hierarchical area representing
the title and bookmark structure
These areas may contain resolvable areas that will be processed
with other resolvable areas
Field Summary | |
protected java.lang.String |
author
Author of the content of the document. |
protected java.util.Date |
creationDate
Creation Date: Override of the date the document was created. |
protected java.lang.String |
creator
Creator: Metadata element for the user that created the document. |
static float |
DEFAULT_TARGET_RESOLUTION
Defines the default target resolution (72dpi) for FOP |
protected java.lang.String |
keywords
Set of keywords applicable to this document. |
protected java.lang.String |
producer
Producer: Metadata element for the system/software that produces the document. |
protected java.lang.String |
title
Title of the document. |
Constructor Summary | |
FOUserAgent()
Deprecated. Provided for compatibility only. Please use the methods from FopFactory to construct FOUserAgent instances! |
|
FOUserAgent(FopFactory factory)
Main constructor. |
Method Summary | |
protected void |
configure(org.apache.avalon.framework.configuration.Configuration cfg)
Configures the FOUserAgent through the factory's configuration. |
java.lang.String |
getAuthor()
Returns the author of the document |
java.lang.String |
getBaseURL()
Returns the base URL. |
java.util.Date |
getCreationDate()
Returns the creation date of the document |
java.lang.String |
getCreator()
Returns the creator of the document |
FopFactory |
getFactory()
|
FOEventHandler |
getFOEventHandlerOverride()
Returns the overriding FOEventHandler instance, if any. |
java.lang.String |
getFontBaseURL()
|
java.lang.String |
getKeywords()
Returns the keywords for the document |
java.io.File |
getOutputFile()
Gets the output File. |
java.lang.String |
getPageHeight()
Gets the default page-height to use as fallback, in case page-height="auto" |
java.lang.String |
getPageWidth()
Gets the default page-width to use as fallback, in case page-width="auto" |
PDFEncryptionParams |
getPDFEncryptionParams()
Deprecated. Use (PDFEncryptionParams)getRendererOptions().get("encryption-params") instead. |
java.lang.String |
getProducer()
Returns the producer of the document |
RendererFactory |
getRendererFactory()
|
java.util.Map |
getRendererOptions()
Returns the renderer options |
Renderer |
getRendererOverride()
Returns the overriding Renderer instance, if any. |
float |
getSourcePixelUnitToMillimeter()
Returns the conversion factor from pixel units to millimeters. |
float |
getSourceResolution()
|
float |
getTargetPixelUnitToMillimeter()
Returns the conversion factor from pixel units to millimeters. |
float |
getTargetResolution()
|
java.lang.String |
getTitle()
Returns the title of the document |
javax.xml.transform.URIResolver |
getURIResolver()
Returns the URI Resolver. |
org.apache.avalon.framework.configuration.Configuration |
getUserRendererConfig(java.lang.String mimeType)
Returns the configuration subtree for a specific renderer. |
XMLHandlerRegistry |
getXMLHandlerRegistry()
|
boolean |
isBreakIndentInheritanceOnReferenceAreaBoundary()
|
javax.xml.transform.Source |
resolveURI(java.lang.String uri)
Attempts to resolve the given URI. |
javax.xml.transform.Source |
resolveURI(java.lang.String uri,
java.lang.String base)
Attempts to resolve the given URI. |
void |
setAuthor(java.lang.String author)
Sets the author of the document. |
void |
setBaseURL(java.lang.String baseURL)
Sets the base URL. |
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of the document. |
void |
setCreator(java.lang.String creator)
Sets the creator of the document. |
void |
setFOEventHandlerOverride(FOEventHandler handler)
Sets an explicit FOEventHandler instance which overrides the one defined by the render type setting. |
void |
setKeywords(java.lang.String keywords)
Sets the keywords for the document. |
void |
setOutputFile(java.io.File f)
Sets the output File. |
void |
setPDFEncryptionParams(PDFEncryptionParams pdfEncryptionParams)
Deprecated. Use getRendererOptions().put("encryption-params", new PDFEncryptionParams(..)) instead or set every parameter separately: getRendererOptions().put("noprint", Boolean.TRUE). |
void |
setProducer(java.lang.String producer)
Sets the producer of the document. |
void |
setRendererOverride(Renderer renderer)
Sets an explicit renderer to use which overrides the one defined by the render type setting. |
void |
setTargetResolution(int dpi)
Sets the target resolution in dpi. |
void |
setTitle(java.lang.String title)
Sets the title of the document. |
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
Sets the URI Resolver. |
boolean |
validateStrictly()
Returns whether FOP is strictly validating input XSL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final float DEFAULT_TARGET_RESOLUTION
protected java.lang.String producer
protected java.lang.String creator
protected java.util.Date creationDate
protected java.lang.String author
protected java.lang.String title
protected java.lang.String keywords
Constructor Detail |
public FOUserAgent()
FopFactory
public FOUserAgent(FopFactory factory)
factory
- the factory that provides environment-level informationFopFactory
Method Detail |
public FopFactory getFactory()
public void setRendererOverride(Renderer renderer)
renderer
- the Renderer instance to usepublic Renderer getRendererOverride()
public void setFOEventHandlerOverride(FOEventHandler handler)
handler
- the FOEventHandler instancepublic FOEventHandler getFOEventHandlerOverride()
public void setProducer(java.lang.String producer)
producer
- source of documentpublic java.lang.String getProducer()
public void setCreator(java.lang.String creator)
creator
- of documentpublic java.lang.String getCreator()
public void setCreationDate(java.util.Date creationDate)
creationDate
- date of documentpublic java.util.Date getCreationDate()
public void setAuthor(java.lang.String author)
author
- of documentpublic java.lang.String getAuthor()
public void setTitle(java.lang.String title)
title
- of documentpublic java.lang.String getTitle()
public void setKeywords(java.lang.String keywords)
keywords
- for the documentpublic java.lang.String getKeywords()
public java.util.Map getRendererOptions()
protected void configure(org.apache.avalon.framework.configuration.Configuration cfg)
cfg
- Avalon Configuration ObjectConfigurable
public org.apache.avalon.framework.configuration.Configuration getUserRendererConfig(java.lang.String mimeType)
mimeType
- MIME type of the renderer
public void setBaseURL(java.lang.String baseURL)
baseURL
- base URLpublic java.lang.String getBaseURL()
public void setURIResolver(javax.xml.transform.URIResolver resolver)
resolver
- the new URI resolverpublic javax.xml.transform.URIResolver getURIResolver()
public PDFEncryptionParams getPDFEncryptionParams()
public void setPDFEncryptionParams(PDFEncryptionParams pdfEncryptionParams)
pdfEncryptionParams
- the PDF encryption parameters, null to
disable PDF encryptionpublic javax.xml.transform.Source resolveURI(java.lang.String uri)
uri
- URI to access
Source
object, or null if the URI
cannot be resolved.FOURIResolver
public javax.xml.transform.Source resolveURI(java.lang.String uri, java.lang.String base)
uri
- URI to accessbase
- the base URI to resolve against
Source
object, or null if the URI
cannot be resolved.FOURIResolver
public void setOutputFile(java.io.File f)
f
- the output Filepublic java.io.File getOutputFile()
public float getTargetPixelUnitToMillimeter()
getTargetResolution()
public float getTargetResolution()
public void setTargetResolution(int dpi)
dpi
- resolution in dpipublic java.lang.String getFontBaseURL()
public float getSourcePixelUnitToMillimeter()
getSourceResolution()
public float getSourceResolution()
public java.lang.String getPageHeight()
FopFactory.getPageHeight()
public java.lang.String getPageWidth()
FopFactory.getPageWidth()
public boolean validateStrictly()
FopFactory.validateStrictly()
public boolean isBreakIndentInheritanceOnReferenceAreaBoundary()
FopFactory.isBreakIndentInheritanceOnReferenceAreaBoundary()
public RendererFactory getRendererFactory()
public XMLHandlerRegistry getXMLHandlerRegistry()
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |