Class PDFSVGHandler

java.lang.Object
org.apache.fop.render.AbstractGenericSVGHandler
org.apache.fop.render.pdf.PDFSVGHandler
All Implemented Interfaces:
PDFRendererContextConstants, RendererContextConstants, XMLHandler

public class PDFSVGHandler extends AbstractGenericSVGHandler implements PDFRendererContextConstants
PDF XML handler for SVG (uses Apache Batik). This handler handles XML for foreign objects when rendering to PDF. It renders SVG to the PDF document using the PDFGraphics2D. The properties from the PDF renderer are subject to change.
  • Constructor Details

    • PDFSVGHandler

      public PDFSVGHandler()
  • Method Details

    • getPDFInfo

      public static PDFSVGHandler.PDFInfo getPDFInfo(RendererContext context)
      Get the pdf information from the render context.
      Parameters:
      context - the renderer context
      Returns:
      the pdf information retrieved from the context
    • 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