Package org.apache.fop.render.pdf
Class PDFSVGHandler
java.lang.Object
org.apache.fop.render.AbstractGenericSVGHandler
org.apache.fop.render.pdf.PDFSVGHandler
- All Implemented Interfaces:
PDFRendererContextConstants
,RendererContextConstants
,XMLHandler
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
Modifier and TypeClassDescriptionstatic class
PDF information structure for drawing the XML document. -
Field Summary
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_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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PDFSVGHandler.PDFInfo
getPDFInfo
(RendererContext context) Get the pdf information from the render context.boolean
supportsRenderer
(Renderer renderer) Checks if this XMLHandler supports handling an XML namespace for a particular renderer.Methods inherited from class org.apache.fop.render.AbstractGenericSVGHandler
buildGraphicsNode, createGraphics2DImagePainter, getDocumentURI, getImageSize, getNamespace, handleXML, renderSVGDocument, updateRendererContext
-
Constructor Details
-
PDFSVGHandler
public PDFSVGHandler()
-
-
Method Details
-
getPDFInfo
Get the pdf information from the render context.- Parameters:
context
- the renderer context- Returns:
- the pdf information retrieved from the context
-
supportsRenderer
Checks if this XMLHandler supports handling an XML namespace for a particular renderer.- Specified by:
supportsRenderer
in interfaceXMLHandler
- Parameters:
renderer
- the renderer for which to check.- Returns:
- true if this XML handler supports a particular renderer
-