it.eng.geo.test
Class ExampleSVG2PDF

java.lang.Object
  extended by it.eng.geo.test.ExampleSVG2PDF

public class ExampleSVG2PDF
extends java.lang.Object

This class demonstrates the conversion of an SVG file to PDF using FOP.


Constructor Summary
ExampleSVG2PDF()
           
 
Method Summary
 void convertSVG2PDF(java.io.File svg, java.io.File pdf)
          Converts an FO file to a PDF file using FOP
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleSVG2PDF

public ExampleSVG2PDF()
Method Detail

convertSVG2PDF

public void convertSVG2PDF(java.io.File svg,
                           java.io.File pdf)
                    throws java.io.IOException,
                           org.apache.batik.transcoder.TranscoderException
Converts an FO file to a PDF file using FOP

Parameters:
svg - the SVG file
pdf - the target PDF file
Throws:
java.io.IOException - In case of an I/O problem
org.apache.batik.transcoder.TranscoderException - In case of a transcoding problem

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - command-line arguments