org.apache.fop.render.pdf

Class PDFSVGHandler

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.

Nested Class Summary

static class
PDFSVGHandler.PDFInfo
PDF information structure for drawing the XML document.

Fields inherited from interface org.apache.fop.render.pdf.PDFRendererContextConstants

PDF_CONTEXT, PDF_DOCUMENT, PDF_FONT_INFO, PDF_FONT_NAME, PDF_FONT_SIZE, PDF_PAGE, PDF_STATE, PDF_STREAM

Fields inherited from interface org.apache.fop.render.RendererContextConstants

FOREIGN_ATTRIBUTES, HANDLER_CONFIGURATION, HEIGHT, OUTPUT_STREAM, PAGE_VIEWPORT, WIDTH, XPOS, YPOS

Fields inherited from interface org.apache.fop.render.XMLHandler

HANDLE_ALL

Method Summary

static PDFSVGHandler.PDFInfo
getPDFInfo(RendererContext context)
Get the pdf information from the render context.
protected void
renderSVGDocument(RendererContext context, Document doc)
boolean
supportsRenderer(Renderer renderer)

Methods inherited from class org.apache.fop.render.AbstractGenericSVGHandler

getNamespace, handleXML, renderSVGDocument, updateRendererContext

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

renderSVGDocument

protected void renderSVGDocument(RendererContext context,
                                 Document doc)
Overrides:
renderSVGDocument in interface AbstractGenericSVGHandler

supportsRenderer

public boolean supportsRenderer(Renderer renderer)
Specified by:
supportsRenderer in interface XMLHandler

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.