public class Fop extends Object
JAXP is the standard method of embedding FOP in Java programs. Please check our embedding page for samples (these are also available within the distribution in FOP_DIR\examples\embedding)
Methods within FOUserAgent are available to customize portions of the process. For example, a specific Renderer object can be specified, also ElementMappings which determine elements in the FO that can be processed) can be added.
At the moment, it is recommended not to reuse an instance of this class for more than one rendering run.
Modifier and Type | Method and Description |
---|---|
DefaultHandler |
getDefaultHandler()
Returns the DefaultHandler object that will receive the SAX stream containing the
FO document to be rendered.
|
FormattingResults |
getResults()
Returns the results of the rendering process.
|
FOUserAgent |
getUserAgent()
Deprecated.
this getter doesn't need to exist. By virtue of the fact that the client has
an instance of this object, it means they also have the
FOUserAgent since this's
constructor is only used in FOUserAgent |
public FOUserAgent getUserAgent()
FOUserAgent
since this's
constructor is only used in FOUserAgent
public DefaultHandler getDefaultHandler() throws FOPException
FOPException
- if setting up the DefaultHandler failspublic FormattingResults getResults()
Copyright © 2022 Apache Software Foundation. All rights reserved.