xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840833 - in /websites/staging/xmlgraphics/trunk/content: ./ batik/tools/browser.html batik/tools/pretty-printer.html batik/tools/rasterizer.html
Date Wed, 05 Dec 2012 15:40:49 GMT
Author: buildbot
Date: Wed Dec  5 15:40:48 2012
New Revision: 840833

Log:
Staging update by buildbot for xmlgraphics

Modified:
    websites/staging/xmlgraphics/trunk/content/   (props changed)
    websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html
    websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html
    websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html

Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Dec  5 15:40:48 2012
@@ -1 +1 @@
-1417479
+1417491

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/browser.html Wed Dec  5 15:40:48
2012
@@ -192,7 +192,7 @@ java -jar batik-squiggle.jar -font-size 
 starts the browser with the <code>batikLogo.svg</code> file open and uses a small
widget text font size.</p>
 <p>If you are using Mac OS X, and you have generated the Squiggle application bundle,
you can use its icon to start the browser. This is the preferred way to start the browser
under Mac OS X, as it ensures better integration with the operating system (a nicer looking
menu and dock icon).</p>
 <h3 id="starting-the-browser-for-the-source-distribution-wzxhzdk8wzxhzdk9">Starting
the browser for the source distribution <a id="starting-source"></a></h3>
-<p>If you downloaded the <a href="../install.html#distributions">source distribution</a>
of Batik, you should have a zip file called <code>batik-src-1.6.zip</code> (or
similar) that expanded into a directory called <code>xml-batik</code> or <code>batik-</code><em><code>version</code></em><code>.
In that directory, you can find build scripts for the platform you are running on. For example,
there is a</code>build.bat<code>script for users of the Windows platform and there
is a</code>build.sh` script for UNIX users.</p>
+<p>If you downloaded the <a href="../install.html#distributions">source distribution</a>
of Batik, you should have a zip file called <code>batik-src-1.6.zip</code> (or
similar) that expanded into a directory called <code>xml-batik</code> or <code>batik-</code><em><code>version</code></em>.
In that directory, you can find build scripts for the platform you are running on. For example,
there is a <code>build.bat</code> script for users of the Windows platform and
there is a <code>build.sh</code> script for UNIX users.</p>
 <p>To start the browser you should:</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/pretty-printer.html Wed Dec  5
15:40:48 2012
@@ -168,11 +168,11 @@ $(document).ready(function () {
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a
href="/batik/">Batik</a>&nbsp;&raquo&nbsp;<a href="/batik/tools/">Tools</a></div>
-->
       	<div class="section-content"><h1 id="svg-pretty-printer">SVG Pretty Printer</h1>
 <p>This page describes the features of the SVG pretty printer utility that comes with
the Batik distribution. The SVG pretty printer is a utility that can format SVG files. The
tool formats an SVG document according to the arguments passed on the command line.</p>
-<h2 id="downloading-the-pretty-printer-wzxhzdk0wzxhzdk1">Downloading the pretty printer
<a id="downloading"></a></h2>
+<h2 id="downloading-the-pretty-printer-wzxhzdk5wzxhzdk6">Downloading the pretty printer
<a id="downloading"></a></h2>
 <p>Refer to the <a href="../install.html">install page</a> and the <a
href="../download.cgi">download page</a> to find out what to download and how to
download it. Remember that you can get either the source or binary distribution.</p>
-<h2 id="pretty-printing-an-svg-file-wzxhzdk2wzxhzdk3">Pretty printing an SVG file <a
id="using"></a></h2>
+<h2 id="pretty-printing-an-svg-file-wzxhzdk7wzxhzdk8">Pretty printing an SVG file <a
id="using"></a></h2>
 <p>The method for starting the pretty-printer depends on the distribution of Batik
that you chose to download. The following describes how to run the pretty printer for each
distribution.</p>
-<h3 id="using-the-binary-distribution-wzxhzdk4wzxhzdk5">Using the binary distribution
<a id="using-binary"></a></h3>
+<h3 id="using-the-binary-distribution-wzxhzdk9wzxhzdk10">Using the binary distribution
<a id="using-binary"></a></h3>
 <p>If you downloaded the binary distribution of Batik, you should have a file called
<code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar
file called <code>batik-svgpp.jar</code>. To start the pretty printer, open a
console, change to the directory where you expanded the distribution (and where <code>batik-svgpp.jar</code>
is located) and simply type the following at the command prompt:
 java -jar batik-svgpp.jar [OPTIONS] FILES
 For example, if you type:</p>
@@ -203,30 +203,45 @@ specifies the public ID to in the doctyp
 <p><strong>-system-id</strong>  <em>string</em>
 :
 specifies the system ID to in the doctype declaration, when <code>-doctype change</code>
is specified.</p>
-<p>For example:
-java -jar batik-svgpp.jar -tab-width 2 -newline cr-lf src.svg dest.svg
-will format <code>src.svg</code> and write it to <code>dest.svg</code>
using a tabulation width of 2 and Windows-style newlines, and:
-java -jar batik-svgpp.jar -no-format -doctype change -public-id "-//W3C//DTD SVG 1.1//EN"
\
-     -system-id "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" src.svg dest.svg
-will format <code>src.svg</code> and write it to <code>dest.svg</code>
unchanged, except for the doctype public and system IDs, which will be replaced by those specified.</p>
-<h3 id="using-the-source-distribution-wzxhzdk6wzxhzdk7">Using the source distribution
<a id="using-source"></a></h3>
-<p>If you downloaded the source distribution of Batik, you will have a zip or tar file
that expanded into a directory called <code>xml-batik</code> or<code>batik-</code><em><code>version</code></em>.
In that directory, you can find build scripts for the platform you are running on. For example,
there is a <code>build.bat</code> script for users of the Windows platform and
there is a <code>build.sh</code> script for UNIX users.</p>
+<p>For example:</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">svgpp</span><span class="o">.</span><span
class="n">jar</span> <span class="o">-</span><span class="n">tab</span><span
class="o">-</span><span class="n">width</span> <span class="mi">2</span>
<span class="o">-</span><span class="n">newline</span> <span class="n">cr</span><span
class="o">-</span><span class="n">lf</span> <span class="n">src</span><span
class="o">.</span><span class="n">svg</span> <span class="n">dest</span><span
class="o">.</span><span class="n">svg</span>
+</pre></div>
+
+
+<p>will format <code>src.svg</code> and write it to <code>dest.svg</code>
using a tabulation width of 2 and Windows-style newlines, and:</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">svgpp</span><span class="o">.</span><span
class="n">jar</span> <span class="o">-</span><span class="nb">no</span><span
class="o">-</span><span class="nb">format</span> <span class="o">-</span><span
class="n">doctype</span> <span class="n">change</span> <span class="o">-</span><span
class="n">public</span><span class="o">-</span><span class="n">id</span>
<span class="s">&quot;-//W3C//DTD SVG 1.1//EN&quot;</span> <span class="o">\</span>
+     <span class="o">-</span><span class="nb">system</span><span
class="o">-</span><span class="n">id</span> <span class="s">&quot;http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd&quot;</span>
<span class="n">src</span><span class="o">.</span><span class="n">svg</span>
<span class="n">dest</span><span class="o">.</span><span class="n">svg</span>
+</pre></div>
+
+
+<p>will format <code>src.svg</code> and write it to <code>dest.svg</code>
unchanged, except for the doctype public and system IDs, which will be replaced by those specified.</p>
+<h3 id="using-the-source-distribution-wzxhzdk11wzxhzdk12">Using the source distribution
<a id="using-source"></a></h3>
+<p>If you downloaded the source distribution of Batik, you will have a zip or tar file
that expanded into a directory called <code>xml-batik</code> or <code>batik-</code><em><code>version</code></em>.
In that directory, you can find build scripts for the platform you are running on. For example,
there is a <code>build.bat</code> script for users of the Windows platform and
there is a <code>build.sh</code> script for UNIX users.</p>
 <p>To start the pretty printer you should:</p>
 <p>-
 Make sure that your <code>JAVA_HOME</code> environment variable is set to your
JDK installation directory.</p>
 <p>-
 Open a command line window and go to the <code>xml-batik</code> or <code>batik-</code><em><code>version</code></em>
directory where the Batik distribution was expanded.</p>
 <p>-
-For windows, type the following at the command prompt:
-build svgpp
-and for Unix:
-./build.sh svgpp
-This will print out a help message for the pretty printer.</p>
-<p>You can pass options to the rasterizer as follows, for Windows:
-build svgpp [OPTIONS] FILES
-and for Unix:
-./build.sh svgpp [OPTIONS] FILES
-Refer to <a href="#using-binary">“Using the binary distribution”</a>
for an explanation of these options.</p></div>
+For windows, type the following at the command prompt:</p>
+<div class="codehilite"><pre><span class="n">build</span> <span
class="n">svgpp</span>
+<span class="ow">and</span> <span class="k">for</span> <span class="n">Unix:</span>
+<span class="o">./</span><span class="n">build</span><span class="o">.</span><span
class="n">sh</span> <span class="n">svgpp</span>
+</pre></div>
+
+
+<p>This will print out a help message for the pretty printer.</p>
+<p>You can pass options to the rasterizer as follows, for Windows:</p>
+<div class="codehilite"><pre><span class="n">build</span> <span
class="n">svgpp</span> <span class="p">[</span><span class="n">OPTIONS</span><span
class="p">]</span> <span class="n">FILES</span>
+</pre></div>
+
+
+<p>and for Unix:</p>
+<div class="codehilite"><pre><span class="o">./</span><span class="n">build</span><span
class="o">.</span><span class="n">sh</span> <span class="n">svgpp</span>
<span class="p">[</span><span class="n">OPTIONS</span><span class="p">]</span>
<span class="n">FILES</span>
+</pre></div>
+
+
+<p>Refer to <a href="#using-binary">“Using the binary distribution”</a>
for an explanation of these options.</p></div>
       </div>
       
       <div class="clear"></div>

Modified: websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html (original)
+++ websites/staging/xmlgraphics/trunk/content/batik/tools/rasterizer.html Wed Dec  5 15:40:48
2012
@@ -168,92 +168,107 @@ $(document).ready(function () {
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a
href="/batik/">Batik</a>&nbsp;&raquo&nbsp;<a href="/batik/tools/">Tools</a></div>
-->
       	<div class="section-content"><h1 id="svg-rasterizer">SVG Rasterizer</h1>
 <p>This page describes the features of the SVG Rasterizer utility that comes with the
Batik distribution. The SVG Rasterizer is a utility that can convert SVG files to a raster
format. The tool can convert individual files or sets of files, making it easy to convert
entire directories of SVG files. The provided formats are <abbr title="Joint Photography
Expert Group">JPEG</abbr>, <abbr title="Portable Network Graphics">PNG</abbr>
and <abbr title="Tagged Image File Format">TIFF</abbr>, however the design allows
new formats to be added easily. In addition, the rasterizer can (despite its name) transcode
to <abbr title="Portable Document Format">PDF</abbr>.</p>
-<h2 id="downloading-the-rasterizer-wzxhzdk11wzxhzdk12">Downloading the rasterizer <a
id="downloading"></a></h2>
+<h2 id="downloading-the-rasterizer-wzxhzdk20wzxhzdk21">Downloading the rasterizer <a
id="downloading"></a></h2>
 <p>Refer to the <a href="../install.html">install page</a> and the <a
href="../download.cgi">download area</a> to find out what to download and how to
install it. Remember that you can get either the source or binary distribution.</p>
-<h2 id="rasterizing-one-or-several-svg-files-wzxhzdk13wzxhzdk14">Rasterizing one or
several SVG files <a id="using"></a></h2>
+<h2 id="rasterizing-one-or-several-svg-files-wzxhzdk22wzxhzdk23">Rasterizing one or
several SVG files <a id="using"></a></h2>
 <p>The method for starting the rasterizer depends on the distribution of Batik that
you chose to download. The following describes how to start the viewer for each distribution.</p>
-<h3 id="using-the-binary-distribution-wzxhzdk15wzxhzdk16">Using the binary distribution
<a id="using-binary"></a></h3>
+<h3 id="using-the-binary-distribution-wzxhzdk24wzxhzdk25">Using the binary distribution
<a id="using-binary"></a></h3>
 <p>If you downloaded the binary distribution of Batik, you should have a file called
<code>batik-1.6.zip</code> (or similar), and, after expanding that file, a jar
file called <code>batik-rasterizer.jar</code>. To start the rasterizer, open a
console, go to the directory where you expanded the distribution (and where <code>batik-rasterizer.jar</code>
is located) and simply type the following at the command prompt:</p>
-<p>java -jar batik-rasterizer.jar FILES</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">rasterizer</span><span class="o">.</span><span
class="n">jar</span> <span class="n">FILES</span>
+</pre></div>
+
+
 <p>For example, if you type:</p>
-<p>java -jar batik-rasterizer.jar samples/batikFX.svg</p>
-<p>you will see the following printout:
-Converting file: samples/BatikFX.svg to samples/BatikFX.png
-Once the conversion is complete, you will find a <code>batikFX.png</code> file
in the samples directory.</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">rasterizer</span><span class="o">.</span><span
class="n">jar</span> <span class="n">samples</span><span class="o">/</span><span
class="n">batikFX</span><span class="o">.</span><span class="n">svg</span>
+</pre></div>
+
+
+<p>you will see the following printout:</p>
+<div class="codehilite"><pre><span class="n">Converting</span> <span
class="n">file:</span> <span class="n">samples</span><span class="sr">/BatikFX.svg
to samples/</span><span class="n">BatikFX</span><span class="o">.</span><span
class="n">png</span>
+</pre></div>
+
+
+<p>Once the conversion is complete, you will find a <code>batikFX.png</code>
file in the samples directory.</p>
 <p>You can pass options on the command line:</p>
-<p>java -jar batik-rasterizer.jar [OPTIONS] FILES</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">rasterizer</span><span class="o">.</span><span
class="n">jar</span> <span class="p">[</span><span class="n">OPTIONS</span><span
class="p">]</span> <span class="n">FILES</span>
+</pre></div>
+
+
 <p>where, as options:</p>
-<p><strong>-d</strong>  <em>dir|file</em>
+<p><strong><code>-d</code></strong> <em><code>dir|file</code></em>
 :
 specifies the output directory, or the output file if there is only a single input file,</p>
-<p><strong>-m</strong>  <em>mime-type</em>
+<p><strong><code>-m</code></strong> <em><code>mime-type</code></em>
 :
 specifies the output MIME type, which should be one of <code>image/png</code>,
<code>image/jpeg</code>, <code>image/tiff</code> or <code>application/pdf</code>,</p>
-<p><strong>-w</strong>  <em>width</em>
+<p><strong><code>-w</code></strong> <em><code>width</code></em>
 :
 specifies the output width as a floating point value,</p>
-<p><strong>-h</strong>  <em>height</em>
+<p><strong><code>-h</code></strong> <em><code>height</code></em>
 :
 specifies the output height as a floating point value,</p>
-<p><strong>-maxw</strong>  <em>width</em>
+<p><strong><code>-maxw</code></strong> <em><code>width</code></em>
 :
 specifies the maximum output width as a floating point value,</p>
-<p><strong>-maxh</strong>  <em>height</em>
+<p><strong><code>-maxh</code></strong> <em><code>height</code></em>
 :
 specifies the maximum output height as a floating point value,</p>
-<p><strong>-a</strong>  <em>x</em>  <strong>,</strong>
 <em>y</em>  <strong>,</strong>  <em>width</em>  <strong>,</strong>
 <em>height</em>
+<p><strong><code>-a</code></strong> <em><code>x</code></em>
<strong><code>,</code></strong> <em><code>y</code></em>
<strong><code>,</code></strong> <em><code>width</code></em>
<strong><code>,</code></strong> <em><code>height</code></em>
 :
 specifies the area of interest (as floating point values) of the SVG file to rasterize (and
if not specified, will be determined by the <code>width</code> / <code>height</code>
/ <code>viewBox</code> attributes if specified in the document, and be 0,0,400,400
otherwise),</p>
-<p><strong>-bg</strong>  <em>alpha</em>  <strong>.</strong>
 <em>red</em>  <strong>.</strong>  <em>green</em>  <strong>.</strong>
 <em>blue</em>
+<p><strong><code>-bg</code></strong> <em><code>alpha</code></em>
<strong><code>.</code></strong> <em><code>red</code></em>
<strong><code>.</code></strong> <em><code>green</code></em>
<strong><code>.</code></strong> <em><code>blue</code></em>
 :
 specifies the background fill color as an ARGB quadruple, where each component is an integer
in the range 0—255,</p>
-<p><strong>-cssMedia</strong>  <em>media</em>
+<p><strong><code>-cssMedia</code></strong> <em><code>media</code></em>
 :
 specifies the CSS media type used for matching CSS rules,</p>
-<p><strong>-cssAlternate</strong>  <em>file|uri</em>
+<p><strong><code>-cssAlternate</code></strong> <em><code>file|uri</code></em>
 :
 specifies the CSS alternate stylesheet to use,</p>
-<p><strong>-cssUser</strong>  <em>file|uri</em>
+<p><strong><code>-cssUser</code></strong> <em><code>file|uri</code></em>
 :
 specifies the CSS user stylesheet to use in addition to any other referenced or embedded
stylesheets,</p>
-<p><strong>-font-family</strong>  <em>defaultFontFamily</em>
+<p><strong><code>-font-family</code></strong> <em><code>defaultFontFamily</code></em>
 :
 specifies default font family to be used when none is specified,</p>
-<p><strong>-lang</strong>  <em>language-code</em>
+<p><strong><code>-lang</code></strong> <em><code>language-code</code></em>
 :
 specifies the <a href="http://www.faqs.org/rfcs/rfc3066.html">RFC 3066</a> language
code to use,</p>
-<p><strong>-q</strong>  <em>quality</em>
+<p><strong><code>-q</code></strong> <em><code>quality</code></em>
 :
 specifies the quality of the output image, as a floating point number in the range 0 &lt;
<em>quality</em> &lt; 1 when generating JPEG images,</p>
-<p><strong>-indexed</strong>  <em>1|2|4|8</em>
+<p><strong><code>-indexed</code></strong> <em><code>1|2|4|8</code></em>
 :
 specifies the number of bits per pixel of the output image, using an adaptive pallete, resulting
in an indexed image when generating PNG images,</p>
-<p><strong>-dpi</strong>  <em>resolution</em>
+<p><strong><code>-dpi</code></strong> <em><code>resolution</code></em>
 :
 specifies the resolution of the output image in dots per inch,</p>
-<p><strong>-validate</strong>
+<p><strong><code>-validate</code></strong>
 :
 specifies that the source SVG files must be validated against their DTDs,</p>
-<p><strong>-onload</strong>
+<p><strong><code>-onload</code></strong>
 :
 specifies that the SVG files should be rasterized after dispatching the SVG load event,</p>
-<p><strong>-snapshotTime</strong>
+<p><strong><code>-snapshotTime</code></strong>
 :
 specifies the document time that should be seeked to before rasterizing the document, implying
-onload,</p>
-<p><strong>-scriptSecurityOff</strong>
+<p><strong><code>-scriptSecurityOff</code></strong>
 :
 specifies that any security checks on the scripts running as a result of dispatching the
SVG load event will be bypassed,</p>
-<p><strong>-anyScriptOrigin</strong>
+<p><strong><code>-anyScriptOrigin</code></strong>
 :
 specifies that scripts can be loaded from any location, while by default they can only be
loaded from the same location as the document, and</p>
-<p><strong>-scripts</strong>  <em>allowed-script-types</em>
+<p><strong><code>-scripts</code></strong> <em><code>allowed-script-types</code></em>
 :
 specifies a list of script types (i.e., values for the <code>type</code> attribute
on <code>script</code> elements) that should be loaded.</p>
 <p>For example:</p>
-<p>java -jar batik-rasterizer.jar -d myDir -m image/jpeg samples/*.svg</p>
+<div class="codehilite"><pre><span class="n">java</span> <span
class="o">-</span><span class="n">jar</span> <span class="n">batik</span><span
class="o">-</span><span class="n">rasterizer</span><span class="o">.</span><span
class="n">jar</span> <span class="o">-</span><span class="n">d</span>
<span class="n">myDir</span> <span class="o">-</span><span class="n">m</span>
<span class="n">image</span><span class="sr">/jpeg samples/</span><span
class="o">*.</span><span class="n">svg</span>
+</pre></div>
+
+
 <p>will generate JPEG images for all the SVG files found in the samples directory.</p>
-<h3 id="using-the-source-distribution-wzxhzdk17wzxhzdk18">Using the source distribution
<a id="usingSource"></a></h3>
-<p>If you downloaded the source distribution of Batik, you got a zip or tar file that
expanded into a directory called <code>xml-batik</code> or <code>batik-
*version*</code>. In that directory, you can find build scripts for the platform you
are running on. For example, there is a <code>build.bat</code> script for users
of the Windows platform and there is a <code>build.sh</code> script for UNIX users.</p>
+<h3 id="using-the-source-distribution-wzxhzdk26wzxhzdk27">Using the source distribution
<a id="usingSource"></a></h3>
+<p>If you downloaded the source distribution of Batik, you got a zip or tar file that
expanded into a directory called <code>xml-batik</code> or <code>batik-</code><em><code>version</code></em>.
In that directory, you can find build scripts for the platform you are running on. For example,
there is a <code>build.bat</code> script for users of the Windows platform and
there is a <code>build.sh</code> script for UNIX users.</p>
 <p>To start the rasterizer you should:</p>
 <ul>
 <li>
@@ -265,19 +280,31 @@ specifies a list of script types (i.e., 
 </ul>
 <p>-
 For windows, type the following at the command prompt:</p>
-<p>build svgrasterizer</p>
+<div class="codehilite"><pre><span class="n">build</span> <span
class="n">svgrasterizer</span>
+</pre></div>
+
+
 <p>and for Unix:</p>
-<p>./build.sh svgrasterizer</p>
+<div class="codehilite"><pre><span class="o">./</span><span class="n">build</span><span
class="o">.</span><span class="n">sh</span> <span class="n">svgrasterizer</span>
+</pre></div>
+
+
 <p>This will print out a help message for the rasterizer.</p>
 <p>You can pass options to the rasterizer as follows, for Windows:</p>
-<p>build svgrasterizer [OPTIONS] FILES</p>
+<div class="codehilite"><pre><span class="n">build</span> <span
class="n">svgrasterizer</span> <span class="p">[</span><span class="n">OPTIONS</span><span
class="p">]</span> <span class="n">FILES</span>
+</pre></div>
+
+
 <p>and for Unix:</p>
-<p>./build.sh svgrasterizer [OPTIONS] FILES</p>
+<div class="codehilite"><pre><span class="o">./</span><span class="n">build</span><span
class="o">.</span><span class="n">sh</span> <span class="n">svgrasterizer</span>
<span class="p">[</span><span class="n">OPTIONS</span><span class="p">]</span>
<span class="n">FILES</span>
+</pre></div>
+
+
 <p>Refer to <a href="#using-binary">“Using the binary distribution”</a>
for an explanation of the options.</p>
-<h2 id="rasterizer-ant-task-wzxhzdk19wzxhzdk20">Rasterizer Ant task <a id="task"></a></h2>
+<h2 id="rasterizer-ant-task-wzxhzdk28wzxhzdk29">Rasterizer Ant task <a id="task"></a></h2>
 <p>The Rasterizer task is an <a href="http://ant.apache.org/">Ant</a> version
of the rasterizer utility. It fulfills the same basic purpose as the utility but has a different
syntax and a slightly different set of features.</p>
 <p>The task is able to produce four raster formats: <abbr title="Portable Network
Graphics">PNG</abbr>, <abbr title="Joint Photographic Expert Group">JPEG</abbr>,
<abbr title="Tagged Image File Format">TIFF</abbr> and <abbr title="Portable
Document Format">PDF</abbr>.</p>
-<h3 id="using-the-rasterizer-task-wzxhzdk29wzxhzdk30">Using the rasterizer task <a
id="initTask"></a></h3>
+<h3 id="using-the-rasterizer-task-wzxhzdk38wzxhzdk39">Using the rasterizer task <a
id="initTask"></a></h3>
 <p>The first thing to do is to compile rasterizer task classes. Download the source
distribution of Batik and see the <code>README</code> file in the <code>contrib/rasterizertask</code>
directory for more instructions. The build procedure works the same way as when building Batik
itself.</p>
 <p>After building, ensure that the generated <code>batik-rasterizer.jar</code>
and the classes (or jar file) of the rasterizer task are in your <code>CLASSPATH</code>.</p>
 <p>Next you have to define the task in your Ant project. To do this, add the following
line either after the <code>project</code> start tag or after the <code>target</code>
start tag in the target you are using the rasterizer task:</p>
@@ -287,7 +314,7 @@ For windows, type the following at the c
 
 
 <p>Now you can use the rasterizer task in your project. See the <a href="#taskParameters">parameters
section</a> for an explanation of the available parameters or the <a href="#taskExamples">examples
section</a> to see few usage examples.</p>
-<h3 id="parameters-of-the-ant-task-wzxhzdk31wzxhzdk32">Parameters of the Ant task <a
id="taskParameters"></a></h3>
+<h3 id="parameters-of-the-ant-task-wzxhzdk40wzxhzdk41">Parameters of the Ant task <a
id="taskParameters"></a></h3>
 <p>The following table lists the attributes that may be specified on the <code>rasterize</code>
task element.</p>
 <table>
 <thead>
@@ -381,7 +408,7 @@ For windows, type the following at the c
 </tbody>
 </table>
 <p>You can use <code>fileset</code> elements to select input files and
directories. See the <a href="http://ant.apache.org/">Ant</a> documentation to
learn how to use <a href="http://ant.apache.org/manual/CoreTypes/fileset.html">filesets</a>.</p>
-<h3 id="examples-of-using-the-rasterizer-task-wzxhzdk33wzxhzdk34">Examples of using
the rasterizer task <a id="taskExamples"></a></h3>
+<h3 id="examples-of-using-the-rasterizer-task-wzxhzdk42wzxhzdk43">Examples of using
the rasterizer task <a id="taskExamples"></a></h3>
 <p>The following example is the complete Ant project that converts an SVG image (called
<code>input.svg</code>) to a PNG image (called <code>output.png</code>):</p>
 <div class="codehilite"><pre><span class="cp">&lt;?xml version=&quot;1.0&quot;?&gt;</span>
 <span class="nt">&lt;project</span> <span class="na">name=</span><span
class="s">&quot;RasterizerExample&quot;</span> <span class="na">default=</span><span
class="s">&quot;main&quot;</span> <span class="na">basedir=</span><span
class="s">&quot;.&quot;</span><span class="nt">&gt;</span>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message