This application can be used to convert SVG images to raster images.
Possible result raster image formats are PNG, JPEG, TIFF, and PDF. The Batik Transcoder API is used to execute the conversion. FOP is needed to be able to transcode to the PDF format
The source has to be list of files or URL (set by the
setSources method).
The destination can be:
- unspecified. In that case, only file sources can be converted and a file in the same directory as the source will be created.
- a directory, set by the setDst method. In that case, the output files are created in that destination directory
- a file. In case there is a single source, the destination can be a single named file (set with the setDst method.
)
There are a number of options which control the way the image is converted to the destination format:
- destinationType: controls the type of conversion which should be done. see the {@link DestinationType} documentation.
- width/height: they control the desired width and height, in user space, for the output image.
- area: controls the specific sub-area of the image which should be rendered.
- backgroundColor: controls the color which is used to fill the background before rendering the image
- quality: relevant only for JPEG destinations, this controls the encoding quality.
- indexed: relevant only for PNG, controls the writting of indexed files.
- mediaType: controls the CSS media, or list of media, for which the image should be rendered.
- alternate: controls the alternate CSS stylesheet to activate, if any.
- language: controls the user language with which the SVG document should be converted.
- userStylesheet: defines the user stylesheet to apply to SVG documents in addition to other stylesheets referenced by or embedded in the SVG documents.
- pixelUnitToMillimeter: defines the size of a pixel in millimeters to use when processing the SVG documents.
@version $Id: SVGConverter.java,v 1.15 2002/06/22 11:52:56 deweese Exp $
@author Henri Ruini
@author
Vincent Hardy