Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Question about SVGConverter from org.apache.batik.apps.rasterizer

Thread Tools

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

Posts: n/a
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
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,
The Netherlands

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM