fop 1.0

org.apache.fop.render.pdf
Class PDFRendererConfigurator

java.lang.Object
  extended by org.apache.fop.render.AbstractConfigurator
      extended by org.apache.fop.render.AbstractRendererConfigurator
          extended by org.apache.fop.render.PrintRendererConfigurator
              extended by org.apache.fop.render.pdf.PDFRendererConfigurator
All Implemented Interfaces:
IFDocumentHandlerConfigurator, RendererConfigurator

public class PDFRendererConfigurator
extends PrintRendererConfigurator

PDF renderer configurator.


Field Summary
 
Fields inherited from class org.apache.fop.render.PrintRendererConfigurator
log
 
Fields inherited from class org.apache.fop.render.AbstractConfigurator
userAgent
 
Constructor Summary
PDFRendererConfigurator(FOUserAgent userAgent)
          Default constructor
 
Method Summary
static java.util.Map buildFilterMapFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
          Builds a filter map from an Avalon Configuration object.
 void configure(IFDocumentHandler documentHandler)
          Configures a intermediate format document handler.
 void configure(Renderer renderer)
          Configure the PDF renderer.
 
Methods inherited from class org.apache.fop.render.PrintRendererConfigurator
buildFontList, setupFontInfo
 
Methods inherited from class org.apache.fop.render.AbstractRendererConfigurator
getRendererConfig, getRendererConfig, getType
 
Methods inherited from class org.apache.fop.render.AbstractConfigurator
getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFRendererConfigurator

public PDFRendererConfigurator(FOUserAgent userAgent)
Default constructor

Parameters:
userAgent - user agent
Method Detail

configure

public void configure(Renderer renderer)
               throws FOPException
Configure the PDF renderer. Get the configuration to be used for pdf stream filters, fonts etc.

Specified by:
configure in interface RendererConfigurator
Overrides:
configure in class PrintRendererConfigurator
Parameters:
renderer - pdf renderer
Throws:
FOPException - fop exception

buildFilterMapFromConfiguration

public static java.util.Map buildFilterMapFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
                                                     throws org.apache.avalon.framework.configuration.ConfigurationException
Builds a filter map from an Avalon Configuration object.

Parameters:
cfg - the Configuration object
Returns:
Map the newly built filter map
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if a filter list is defined twice

configure

public void configure(IFDocumentHandler documentHandler)
               throws FOPException
Configures a intermediate format document handler.

Specified by:
configure in interface IFDocumentHandlerConfigurator
Overrides:
configure in class PrintRendererConfigurator
Parameters:
documentHandler - the document handler instance
Throws:
FOPException - if an error occurs while configuring the object

fop 1.0

Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.