Class PSSVGHandler

All Implemented Interfaces:
PSRendererContextConstants, RendererContextConstants, XMLHandler

public class PSSVGHandler extends AbstractGenericSVGHandler implements PSRendererContextConstants
PostScript XML handler for SVG. Uses Apache Batik for SVG processing. This handler handles XML for foreign objects when rendering to PostScript. It renders SVG to the PostScript document using the PSGraphics2D. The properties from the PostScript renderer are subject to change.
Version:
$Id: PSSVGHandler.java 1851806 2019-01-22 11:53:31Z ssteiner $
  • Constructor Details

    • PSSVGHandler

      public PSSVGHandler()
      Create a new PostScript XML handler for use by the PostScript renderer.
  • Method Details

    • getPSInfo

      public static PSSVGHandler.PSInfo getPSInfo(RendererContext context)
      Get the pdf information from the render context.
      Parameters:
      context - the renderer context
      Returns:
      the pdf information retrieved from the context
    • renderSVGDocument

      protected void renderSVGDocument(RendererContext context, Document doc)
      Render the svg document.
      Overrides:
      renderSVGDocument in class AbstractGenericSVGHandler
      Parameters:
      context - the renderer context
      doc - the svg document
    • supportsRenderer

      public boolean supportsRenderer(Renderer renderer)
      Checks if this XMLHandler supports handling an XML namespace for a particular renderer.
      Specified by:
      supportsRenderer in interface XMLHandler
      Parameters:
      renderer - the renderer for which to check.
      Returns:
      true if this XML handler supports a particular renderer