Class PDFDocumentGraphics2DConfigurator

java.lang.Object
org.apache.fop.svg.PDFDocumentGraphics2DConfigurator

public class PDFDocumentGraphics2DConfigurator extends Object
Configurator class for PDFDocumentGraphics2D.
  • Constructor Details

    • PDFDocumentGraphics2DConfigurator

      public PDFDocumentGraphics2DConfigurator()
  • Method Details

    • configure

      public void configure(PDFDocumentGraphics2D graphics, Configuration cfg, boolean useComplexScriptFeatures) throws ConfigurationException
      Configures a PDFDocumentGraphics2D instance using an Avalon Configuration object.
      Parameters:
      graphics - the PDFDocumentGraphics2D instance
      cfg - the configuration
      useComplexScriptFeatures - true if complex script features enabled
      Throws:
      ConfigurationException - if an error occurs while configuring the object
    • createFontInfo

      public static FontInfo createFontInfo(Configuration cfg, boolean useComplexScriptFeatures) throws FOPException
      Creates the FontInfo instance for the given configuration.
      Parameters:
      cfg - the configuration
      useComplexScriptFeatures - true if complex script features enabled
      Returns:
      the font collection
      Throws:
      FOPException - if an error occurs while setting up the fonts