You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/11/13 15:24:23 UTC
cvs commit: xml-batik/xdocs svgrasterizer.xml
vhardy 01/11/13 06:24:23
Modified: xdocs svgrasterizer.xml
Log:
Added description of the new rasterizer options.
Revision Changes Path
1.8 +27 -13 xml-batik/xdocs/svgrasterizer.xml
Index: svgrasterizer.xml
===================================================================
RCS file: /home/cvs/xml-batik/xdocs/svgrasterizer.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- svgrasterizer.xml 2001/05/18 22:44:49 1.7
+++ svgrasterizer.xml 2001/11/13 14:24:23 1.8
@@ -11,7 +11,7 @@
<!-- ========================================================================= -->
<!-- author vincent.hardy@eng.sun.com -->
-<!-- version $Id: svgrasterizer.xml,v 1.7 2001/05/18 22:44:49 vhardy Exp $ -->
+<!-- version $Id: svgrasterizer.xml,v 1.8 2001/11/13 14:24:23 vhardy Exp $ -->
<!-- ========================================================================= -->
<document>
@@ -73,19 +73,33 @@
<p>For example, if you type:</p>
<p><em>java -jar batik-rasterizer.jar samples/batikFX.svg</em></p>
<p>you will see the following printout:</p>
- <p><em>Converting file:samples/batikFX.svg to ./samples/batikFX.png</em></p>
+ <p><em>Converting file: samples/BatikFX.svg to samples/BatikFX.png</em></p>
<p>Once the conversion is complete, you will find a batikFX.png file in the samples
directory</p>
<p>You can pass options to the command line:</p>
- <p><em>java -jar batik-rasterizer.jar [-d <directory>] [-m <mimeType>] [@files]</em></p>
- <p>Where:</p>
- <ul>
- <li><em>-d <directory></em> lets you select the directory where the raster files will
- be stored.</li>
- <li><em>-m <mimeType></em> lets you select the mime type corresponding to the desired
- raster format for the generated images. Currently, the tool supports <em>image/jpg</em>,
- <em>image/png</em>, and <em>image/tiff</em>. The default value is <em>image/png</em></li>
- </ul>
+ <p><em>java -jar batik-rasterizer.jar [options] [@files]</em></p>
+ <p>Where the options are:</p>
+ <ul>
+ <li><em>-d <dir|file></em>. Output directory. If there is a single input file, this can be a file.</li>
+ <li><em>-m <mimeType></em>. Output mime type, one of image/png, image/jpeg, application/pdf, image/tiff.</li>
+ <li><em>-w <width></em>. Output width. This is a floating point value.</li>
+ <li><em>-h <height></em>. Output height. This is a floating point value.</li>
+ <li><em>-a <area></em>. Output area. The format for <area> is x,y,w,h, where x, y, w and h
+ are floating point values.</li>
+ <li><em>-bg <color></em>. Uuput color. The format for <color> is a.r.g.b, where a, r, g and b
+ are integer values.</li>
+ <li><em>-cssMedia <media></em>.CSS media type for which the source SVG files should be
+ converted.</li>
+ <li><em>-cssAlternate <alternate></em>. CSS alternate stylesheet to use when converting the source
+ SVG files.</li>
+ <li><em>-cssUser <userStylesheet></em>. CSS user stylesheet URI to apply to converted SVG documents
+ in addition to any other referened or embeded stylesheets.</li>
+ <li><em>-lang <userLanguage></em>. User language to use when converting SVG documents.</li>
+ <li><em>-q <quality></em>. Quality for the output image. This is only relevant for the
+ image/jpeg mime type.</li>
+ <li><em>-dpi <resolution></em>. Resolution for the ouptut image.</li>
+ <li><em>-validate</em>. Controls whether the source SVG files should be validated.</li>
+ </ul>
<p>For example:</p>
<ul>
<li><em>java -jar batik-rasterizer.jar -d myDir -m image/jpg samples\*.svg</em> will generate JPEG images
@@ -117,8 +131,8 @@
help message for the rasterizer</li>
</ul>
<p>You can pass options to the rasterizer as follows:</p>
- <p><strong>Windows: </strong><em>build svgrasterizer [-d <directory>] [-m <mimeType>] [@files]</em></p>
- <p><strong>UNIX: </strong><em>build.sh svgrasterizer [-d <directory>] [-m <mimeType>] [@files]</em></p>
+ <p><strong>Windows: </strong><em>build svgrasterizer [options] [@files]</em></p>
+ <p><strong>UNIX: </strong><em>build.sh svgrasterizer [options] [@files]</em></p>
<p>Refer to <link href="#usingBinary">"Using the binary distribution" </link>for an explanation of these
options</p>
</s2>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org