Class PSRenderingContext

    • Constructor Detail

      • PSRenderingContext

        public PSRenderingContext​(FOUserAgent userAgent,
                                  org.apache.xmlgraphics.ps.PSGenerator gen,
                                  FontInfo fontInfo)
        Main constructor.
        Parameters:
        userAgent - the user agent
        gen - the PostScript generator
        fontInfo - the font list
      • PSRenderingContext

        public PSRenderingContext​(FOUserAgent userAgent,
                                  org.apache.xmlgraphics.ps.PSGenerator gen,
                                  FontInfo fontInfo,
                                  boolean createForms)
        Special constructor.
        Parameters:
        userAgent - the user agent
        gen - the PostScript generator
        fontInfo - the font list
        createForms - true if form generation mode should be enabled
    • Method Detail

      • getMimeType

        public java.lang.String getMimeType()
        Returns the MIME type associated with the current output format.
        Returns:
        the MIME type (ex. application/pdf)
      • getGenerator

        public org.apache.xmlgraphics.ps.PSGenerator getGenerator()
        Returns the PostScript generator.
        Returns:
        the PostScript generator
      • getFontInfo

        public FontInfo getFontInfo()
        Returns the font list.
        Returns:
        the font list
      • isCreateForms

        public boolean isCreateForms()
        Indicates whether PS forms should be created for the images instead of inline images. Note that not all image handlers will support this!
        Returns:
        true if PS forms shall be created
      • toFormContext

        public PSRenderingContext toFormContext()
        Create a copy of this rendering context and activate form mode.
        Returns:
        the form-enabled rendering context