Class PDFDocumentGraphics2DConfigurator


  • public class PDFDocumentGraphics2DConfigurator
    extends java.lang.Object
    Configurator class for PDFDocumentGraphics2D.
    • Constructor Detail

      • PDFDocumentGraphics2DConfigurator

        public PDFDocumentGraphics2DConfigurator()
    • Method Detail

      • 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