Hope to see you there!
Hope to see you there!
This is the design for the external interface when Apache™ FOP is to be embedded inside another java application.
Common places where FOP is embedded is in a report production application of a server side application such asCocoon.
Possible meanings for a user agent:
something that makes decisions where the specifiction indicates that the user agent should decide
FOP as the user agent, represented by a class that handles various setup and decision values
an class that handles context for a particular FOP conversion that can be configured/overridden when embedding
The user agent is responsible for supplying user or context specific information. The list of user agent values can be found on theUser Agent page.
logging level
logging messages of various levels
error handling
Logging setup (LogKit, Log4J, JDK14Logging)
various ways to supply FOP with the xsl:fo file, fo, xml+xsl
sax handler
base url
uri resolvers
which implementation of a particular LayoutManager to use
embedding fonts
compression in pdf
image embedding
for the PS renderer (eventually):
PostScript Level
PPD to use
binary/ascii switch
Generate Output statistics from FOP:
Number of pages total
Number of pages of each page-sequence
page-master used for each page (could be used to control the paper bin to get paper from, important for me in conjunction with PS Renderer)
recoverable errors such as overflow
The Driver handles the XML input. The user agent information is through the FOUserAgent. Handle logging through the user agent. Options could also be handled through the user agent, using mime type selection for renderer options.
Render to more than one renderer at once (maybe not from the command line). For example you could generate a PDF for the archive and the PS for the printer in one run. It would probably be faster than converting the PDF to PostScript afterwards. Make the fo tree reuseable. If the fonts are the same then use the same area tree to output to different renderers.
Several code pieces for resolving URLs and/or file locations are scattered all over FOP and Batik. These should be replaced with an URIResolver invocation to unify behaviour and remove redundancies.
Copyright © 2025 The Apache Software Foundation, Licensed undertheApache License, Version 2.0.
Apache, Apache XML Graphics, Apache FOP, Apache Batik, the Apache logo, and theApache XML Graphics logos are trademarks ofThe ApacheSoftware Foundation. All other marks mentioned may be trademarks or registeredtrademarks of their respective owners.