org.foray.graphic.output
Class SvgPdf

java.lang.Object
  extended by org.foray.graphic.output.GraphicOutput4a
      extended by org.foray.graphic.output.GraphicPdf4a
          extended by org.foray.graphic.output.SvgPdf
All Implemented Interfaces:
org.axsl.graphic.output.GraphicOutput, org.axsl.graphic.output.GraphicPdf

public class SvgPdf
extends GraphicPdf4a

Helper class for applications using or embedding SVG in PDF output.


Method Summary
 void drawVectorContent(OutputStream output, org.axsl.graphic.output.GraphicOutputContext outputContext, org.axsl.font.FontConsumer fontConsumer, boolean strokeText, boolean commentsEnabled)
           
 SVGGraphic getGraphic()
           
 PDFGraphics2D getPDFContent4SVG(org.axsl.font.FontConsumer fontConsumer, org.w3c.dom.svg.SVGDocument svgDocument, boolean strokeSVGText, org.axsl.graphic.output.GraphicOutputContext pdfContext, OutputStream outputStream)
          Convert an SVG document to a PDFGraphics2D.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGraphic

public SVGGraphic getGraphic()

drawVectorContent

public void drawVectorContent(OutputStream output,
                              org.axsl.graphic.output.GraphicOutputContext outputContext,
                              org.axsl.font.FontConsumer fontConsumer,
                              boolean strokeText,
                              boolean commentsEnabled)
                       throws org.axsl.graphic.GraphicException
Throws:
org.axsl.graphic.GraphicException

getPDFContent4SVG

public PDFGraphics2D getPDFContent4SVG(org.axsl.font.FontConsumer fontConsumer,
                                       org.w3c.dom.svg.SVGDocument svgDocument,
                                       boolean strokeSVGText,
                                       org.axsl.graphic.output.GraphicOutputContext pdfContext,
                                       OutputStream outputStream)
Convert an SVG document to a PDFGraphics2D.

Parameters:
fontConsumer - The font consumer.
svgDocument - The SVG document.
strokeSVGText - Indicates whether text should be stroked.
pdfContext - The PDF context in which this content is being written.
outputStream - The output stream to which this processor writes its PDF output.
Returns:
The PDFGraphics2D instance for the SVG.


Copyright © 2017. All rights reserved.