public class PDFSVGHandler extends AbstractGenericSVGHandler implements PDFRendererContextConstants
Modifier and Type | Class and Description |
---|---|
static class |
PDFSVGHandler.PDFInfo
PDF information structure for drawing the XML document.
|
PDF_CONTEXT, PDF_DOCUMENT, PDF_FONT_INFO, PDF_FONT_NAME, PDF_FONT_SIZE, PDF_PAGE, PDF_STREAM
FOREIGN_ATTRIBUTES, HANDLER_CONFIGURATION, HEIGHT, OUTPUT_STREAM, PAGE_VIEWPORT, WIDTH, XPOS, YPOS
HANDLE_ALL
Constructor and Description |
---|
PDFSVGHandler() |
Modifier and Type | Method and Description |
---|---|
static PDFSVGHandler.PDFInfo |
getPDFInfo(RendererContext context)
Get the pdf information from the render context.
|
protected void |
renderSVGDocument(RendererContext context,
org.w3c.dom.Document doc)
Render the SVG document.
|
boolean |
supportsRenderer(Renderer renderer)
Checks if this XMLHandler supports handling an XML namespace for a particular renderer.
|
buildGraphicsNode, createGraphics2DImagePainter, getDocumentURI, getImageSize, getNamespace, handleXML, updateRendererContext
public static PDFSVGHandler.PDFInfo getPDFInfo(RendererContext context)
context
- the renderer contextprotected void renderSVGDocument(RendererContext context, org.w3c.dom.Document doc)
renderSVGDocument
in class AbstractGenericSVGHandler
context
- the renderer contextdoc
- the SVG documentpublic boolean supportsRenderer(Renderer renderer)
supportsRenderer
in interface XMLHandler
renderer
- the renderer for which to check.Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.