Question about SVGConverter from org.apache.batik.apps.rasterizer

D

Dobedani

Dear All,

I am writing a servlet that will convert some SVG files to JPEG format.
A colleague of mine already figured out how to do this from the command
line:
java -jar C:\Usr\Lib\batik\batik-rasterizer.jar
-d pathOfOutputJpg
-m image/jpg
-w 750
-h 562
-q 0.99
-dpi 72
pathToInputSvg > pathToLogfile

All the given parameters are supposed to fit on one line!

In my Java code I want to use the SVGConverter class to do the
conversion. Now my question: I do not see how I can tell the
SVGConverter how many DotsPerInch it should use. I suspect that I need
to use the option PixelUnitToMillimeter for this. I suspect that I have
to convert the dpi - in my case equal to 72 - to something else. Can
anybody explain? TIA

Kind regards,
Dobedani
Wageningen
The Netherlands
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top