xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840735 [8/19] - in /websites/staging/xmlgraphics/trunk/content: ./ batik/ batik/dev/ batik/tools/ batik/using/ batik/using/scripting/ commons/ fop/ fop/0.95/ fop/1.0/ fop/1.1/ fop/trunk/
Date Tue, 04 Dec 2012 15:59:44 GMT
Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/output.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/output.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/output.html Tue Dec  4 15:59:34 2012
@@ -354,19 +354,19 @@ $(document).ready(function () {
 <p>Produce an IF file: <code>fop -fo myfile.fo -at application/pdf myfile.at.xml</code> <br></br>Specifying "application/pdf" for the "-at" parameter causes FOP to use FOP's own font subsystem (which is used by the PDF renderer). Note that no PDF file is created in this step.</p>
 </li>
 <li>
-<p>Render to a PDF file: <code>fop -atin myfile.at.xml -pdf myfile.pdf</code> </p>
+<p>Render to a PDF file: <code>fop -atin myfile.at.xml -pdf myfile.pdf</code></p>
 </li>
 <li>
 <p>Render to a Java2D-based renderer:</p>
 </li>
 <li>
-<p><code>fop -atin myfile.at.xml -print</code> </p>
+<p><code>fop -atin myfile.at.xml -print</code></p>
 </li>
 <li>
-<p><code>fop -atin myfile.at.xml -awt</code> </p>
+<p><code>fop -atin myfile.at.xml -awt</code></p>
 </li>
 <li>
-<p><code>fop -atin myfile.at.xml -tiff myfile.tiff</code> </p>
+<p><code>fop -atin myfile.at.xml -tiff myfile.tiff</code></p>
 </li>
 </ol>
 <h3 id="output-to-a-printer-or-other-device-wzxhzdk31wzxhzdk32">Output to a Printer or Other Device <a id="general-direct-output"></a></h3>
@@ -381,53 +381,53 @@ Set the output MIME type to "application
 <p>PDF is the best supported output format. It is also the most accurate with text and layout. This creates a PDF document that is streamed out as each page is rendered. This means that the internal page index information is stored near the end of the document. The PDF version supported is 1.4. PDF versions are forwards/backwards compatible.</p>
 <p>Note that FOP does not currently support "tagged PDF" or PDF/A-1a. Support for <a href="pdfa.html">PDF/A-1b</a> and <a href="pdfx.html">PDF/X</a> has recently been added, however.</p>
 <h3 id="fonts-wzxhzdk35wzxhzdk36">Fonts <a id="pdf-fonts"></a></h3>
-<p>PDF has a set of fonts that are always available to all PDF viewers; to quote from the PDF Specification: <em>"PDF prescribes a set of 14 standard fonts that can be used without prior definition. These include four faces each of three Latin text typefaces (Courier, Helvetica, and Times), as well as two symbolic fonts (Symbol and ITC Zapf Dingbats). These fonts, or suitable substitute fonts with the same metrics, are guaranteed to be available in all PDF viewer applications."</em> </p>
+<p>PDF has a set of fonts that are always available to all PDF viewers; to quote from the PDF Specification: <em>"PDF prescribes a set of 14 standard fonts that can be used without prior definition. These include four faces each of three Latin text typefaces (Courier, Helvetica, and Times), as well as two symbolic fonts (Symbol and ITC Zapf Dingbats). These fonts, or suitable substitute fonts with the same metrics, are guaranteed to be available in all PDF viewer applications."</em></p>
 <h3 id="post-processing-wzxhzdk37wzxhzdk38">Post-processing <a id="pdf-postprocess"></a></h3>
 <p>FOP does not currently support several desirable PDF features: watermarks and signatures. One workaround is to use Adobe Acrobat (the full version, not the Reader) to process the file manually or with scripting that it supports.</p>
 <p>Another popular post-processing tool is <a href="http://www.lowagie.com/iText">iText</a> , which has tools for adding security features, document properties, watermarks, and many other features to PDF files.
 <warning>Caveat: iText may swallow PDF bookmarks. But <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=37589">Jens Stavnstrup tells us</a> that this doesn't happen if you use iText's PDFStamper.</warning>
 Here is some sample code that uses iText to encrypt a FOP-generated PDF. (Note that FOP now supports <a href="pdfencryption.html">PDF encryption</a> . However the principles for using iText for other PDF features are similar.)</p>
-<div class="codehilite"><pre><span class="n">public</span> <span class="n">static</span> <span class="n">void</span> <span class="n">main</span><span class="p">(</span><span class="n">String</span> <span class="n">args</span><span class="o">[]</span><span class="p">)</span> <span class="p">{</span>
-  <span class="n">try</span> <span class="p">{</span>
-    <span class="n">ByteArrayOutputStream</span> <span class="n">fopout</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ByteArrayOutputStream</span><span class="p">();</span>
-    <span class="n">FileOutputStream</span> <span class="n">outfile</span> <span class="o">=</span> <span class="k">new</span> <span class="n">FileOutputStream</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span>
-    <span class="n">FopFactory</span> <span class="n">fopFactory</span> <span class="o">=</span> <span class="n">FopFactory</span><span class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
-    <span class="n">Fop</span> <span class="n">fop</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">newFop</span><span class="p">(</span><span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">,</span> <span class="n">fopout</span><span class="p">);</span>
-
-    <span class="n">Transformer</span> <span class="n">transformer</span> <span class="o">=</span> <span class="n">TransformerFactory</span><span class="o">.</span><span class="n">newInstance</span><span class="p">()</span><span class="o">.</span><span class="n">newTransformer</span><span class="p">(</span>
-        <span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="k">new</span> <span class="n">File</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="mi">1</span><span class="p">])));</span>
-    <span class="n">transformer</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="k">new</span> <span class="n">File</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">])),</span>
-        <span class="k">new</span> <span class="n">SAXResult</span><span class="p">(</span><span class="n">fop</span><span class="o">.</span><span class="n">getDefaultHandler</span><span class="p">()));</span>
-    <span class="n">PdfReader</span> <span class="n">reader</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PdfReader</span><span class="p">(</span><span class="n">fopout</span><span class="o">.</span><span class="n">toByteArray</span><span class="p">());</span>
-    <span class="nb">int</span> <span class="n">n</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="n">getNumberOfPages</span><span class="p">();</span>
-    <span class="n">Document</span> <span class="n">document</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Document</span><span class="p">(</span><span class="n">reader</span><span class="o">.</span><span class="n">getPageSizeWithRotation</span><span class="p">(</span><span class="mi">1</span><span class="p">));</span>
-    <span class="n">PdfWriter</span> <span class="n">writer</span> <span class="o">=</span> <span class="n">PdfWriter</span><span class="o">.</span><span class="n">getInstance</span><span class="p">(</span><span class="n">document</span><span class="p">,</span> <span class="n">outfile</span><span class="p">);</span>
-    <span class="n">writer</span><span class="o">.</span><span class="n">setEncryption</span><span class="p">(</span><span class="n">PdfWriter</span><span class="o">.</span><span class="n">STRENGTH40BITS</span><span class="p">,</span> <span class="s">&quot;pdf&quot;</span><span class="p">,</span> <span class="n">null</span><span class="p">,</span>
-      <span class="n">PdfWriter</span><span class="o">.</span><span class="n">AllowCopy</span><span class="p">);</span>
-    <span class="n">document</span><span class="o">.</span><span class="nb">open</span><span class="p">();</span>
-    <span class="n">PdfContentByte</span> <span class="n">cb</span> <span class="o">=</span> <span class="n">writer</span><span class="o">.</span><span class="n">getDirectContent</span><span class="p">();</span>
-    <span class="n">PdfImportedPage</span> <span class="n">page</span><span class="p">;</span>
-    <span class="nb">int</span> <span class="n">rotation</span><span class="p">;</span>
-    <span class="nb">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
-    <span class="k">while</span> <span class="p">(</span><span class="n">i</span> <span class="o">&lt;</span> <span class="n">n</span><span class="p">)</span> <span class="p">{</span>
-      <span class="n">i</span><span class="o">++</span><span class="p">;</span>
-      <span class="n">document</span><span class="o">.</span><span class="n">setPageSize</span><span class="p">(</span><span class="n">reader</span><span class="o">.</span><span class="n">getPageSizeWithRotation</span><span class="p">(</span><span class="n">i</span><span class="p">));</span>
-      <span class="n">document</span><span class="o">.</span><span class="n">newPage</span><span class="p">();</span>
-      <span class="n">page</span> <span class="o">=</span> <span class="n">writer</span><span class="o">.</span><span class="n">getImportedPage</span><span class="p">(</span><span class="n">reader</span><span class="p">,</span> <span class="n">i</span><span class="p">);</span>
-      <span class="n">rotation</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="n">getPageRotation</span><span class="p">(</span><span class="n">i</span><span class="p">);</span>
-      <span class="k">if</span> <span class="p">(</span><span class="n">rotation</span> <span class="o">==</span> <span class="mi">90</span> <span class="o">||</span> <span class="n">rotation</span> <span class="o">==</span> <span class="mi">270</span><span class="p">)</span> <span class="p">{</span>
-        <span class="n">cb</span><span class="o">.</span><span class="n">addTemplate</span><span class="p">(</span><span class="n">page</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="n">f</span><span class="p">,</span> <span class="mi">1</span><span class="n">f</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span>
-        <span class="n">reader</span><span class="o">.</span><span class="n">getPageSizeWithRotation</span><span class="p">(</span><span class="n">i</span><span class="p">)</span><span class="o">.</span><span class="n">height</span><span class="p">());</span>
-      <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
-        <span class="n">cb</span><span class="o">.</span><span class="n">addTemplate</span><span class="p">(</span><span class="n">page</span><span class="p">,</span> <span class="mi">1</span><span class="n">f</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="n">f</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
-      <span class="p">}</span>
-      <span class="n">System</span><span class="o">.</span><span class="n">out</span><span class="o">.</span><span class="n">println</span><span class="p">(</span><span class="s">&quot;Processed page &quot;</span> <span class="o">+</span> <span class="n">i</span><span class="p">);</span>
-    <span class="p">}</span>
-    <span class="n">document</span><span class="o">.</span><span class="nb">close</span><span class="p">();</span>
-  <span class="p">}</span> <span class="n">catch</span><span class="p">(</span> <span class="n">Exception</span> <span class="n">e</span><span class="p">)</span> <span class="p">{</span>
-    <span class="n">e</span><span class="o">.</span><span class="n">printStackTrace</span><span class="p">();</span>
-  <span class="p">}</span>
-<span class="p">}</span>
+<div class="codehilite"><pre><span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span> <span class="n">args</span><span class="o">[])</span> <span class="o">{</span>
+  <span class="k">try</span> <span class="o">{</span>
+    <span class="n">ByteArrayOutputStream</span> <span class="n">fopout</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ByteArrayOutputStream</span><span class="o">();</span>
+    <span class="n">FileOutputStream</span> <span class="n">outfile</span> <span class="o">=</span> <span class="k">new</span> <span class="n">FileOutputStream</span><span class="o">(</span><span class="n">args</span><span class="o">[</span><span class="mi">2</span><span class="o">]);</span>
+    <span class="n">FopFactory</span> <span class="n">fopFactory</span> <span class="o">=</span> <span class="n">FopFactory</span><span class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
+    <span class="n">Fop</span> <span class="n">fop</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="na">newFop</span><span class="o">(</span><span class="n">MimeConstants</span><span class="o">.</span><span class="na">MIME_PDF</span><span class="o">,</span> <span class="n">fopout</span><span class="o">);</span>
+
+    <span class="n">Transformer</span> <span class="n">transformer</span> <span class="o">=</span> <span class="n">TransformerFactory</span><span class="o">.</span><span class="na">newInstance</span><span class="o">().</span><span class="na">newTransformer</span><span class="o">(</span>
+        <span class="k">new</span> <span class="nf">StreamSource</span><span class="o">(</span><span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="n">args</span><span class="o">[</span><span class="mi">1</span><span class="o">])));</span>
+    <span class="n">transformer</span><span class="o">.</span><span class="na">transform</span><span class="o">(</span><span class="k">new</span> <span class="n">StreamSource</span><span class="o">(</span><span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="n">args</span><span class="o">[</span><span class="mi">0</span><span class="o">])),</span>
+        <span class="k">new</span> <span class="nf">SAXResult</span><span class="o">(</span><span class="n">fop</span><span class="o">.</span><span class="na">getDefaultHandler</span><span class="o">()));</span>
+    <span class="n">PdfReader</span> <span class="n">reader</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PdfReader</span><span class="o">(</span><span class="n">fopout</span><span class="o">.</span><span class="na">toByteArray</span><span class="o">());</span>
+    <span class="kt">int</span> <span class="n">n</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="na">getNumberOfPages</span><span class="o">();</span>
+    <span class="n">Document</span> <span class="n">document</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Document</span><span class="o">(</span><span class="n">reader</span><span class="o">.</span><span class="na">getPageSizeWithRotation</span><span class="o">(</span><span class="mi">1</span><span class="o">));</span>
+    <span class="n">PdfWriter</span> <span class="n">writer</span> <span class="o">=</span> <span class="n">PdfWriter</span><span class="o">.</span><span class="na">getInstance</span><span class="o">(</span><span class="n">document</span><span class="o">,</span> <span class="n">outfile</span><span class="o">);</span>
+    <span class="n">writer</span><span class="o">.</span><span class="na">setEncryption</span><span class="o">(</span><span class="n">PdfWriter</span><span class="o">.</span><span class="na">STRENGTH40BITS</span><span class="o">,</span> <span class="s">&quot;pdf&quot;</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span>
+      <span class="n">PdfWriter</span><span class="o">.</span><span class="na">AllowCopy</span><span class="o">);</span>
+    <span class="n">document</span><span class="o">.</span><span class="na">open</span><span class="o">();</span>
+    <span class="n">PdfContentByte</span> <span class="n">cb</span> <span class="o">=</span> <span class="n">writer</span><span class="o">.</span><span class="na">getDirectContent</span><span class="o">();</span>
+    <span class="n">PdfImportedPage</span> <span class="n">page</span><span class="o">;</span>
+    <span class="kt">int</span> <span class="n">rotation</span><span class="o">;</span>
+    <span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span>
+    <span class="k">while</span> <span class="o">(</span><span class="n">i</span> <span class="o">&lt;</span> <span class="n">n</span><span class="o">)</span> <span class="o">{</span>
+      <span class="n">i</span><span class="o">++;</span>
+      <span class="n">document</span><span class="o">.</span><span class="na">setPageSize</span><span class="o">(</span><span class="n">reader</span><span class="o">.</span><span class="na">getPageSizeWithRotation</span><span class="o">(</span><span class="n">i</span><span class="o">));</span>
+      <span class="n">document</span><span class="o">.</span><span class="na">newPage</span><span class="o">();</span>
+      <span class="n">page</span> <span class="o">=</span> <span class="n">writer</span><span class="o">.</span><span class="na">getImportedPage</span><span class="o">(</span><span class="n">reader</span><span class="o">,</span> <span class="n">i</span><span class="o">);</span>
+      <span class="n">rotation</span> <span class="o">=</span> <span class="n">reader</span><span class="o">.</span><span class="na">getPageRotation</span><span class="o">(</span><span class="n">i</span><span class="o">);</span>
+      <span class="k">if</span> <span class="o">(</span><span class="n">rotation</span> <span class="o">==</span> <span class="mi">90</span> <span class="o">||</span> <span class="n">rotation</span> <span class="o">==</span> <span class="mi">270</span><span class="o">)</span> <span class="o">{</span>
+        <span class="n">cb</span><span class="o">.</span><span class="na">addTemplate</span><span class="o">(</span><span class="n">page</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="o">-</span><span class="mi">1</span><span class="n">f</span><span class="o">,</span> <span class="mi">1</span><span class="n">f</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span>
+        <span class="n">reader</span><span class="o">.</span><span class="na">getPageSizeWithRotation</span><span class="o">(</span><span class="n">i</span><span class="o">).</span><span class="na">height</span><span class="o">());</span>
+      <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
+        <span class="n">cb</span><span class="o">.</span><span class="na">addTemplate</span><span class="o">(</span><span class="n">page</span><span class="o">,</span> <span class="mi">1</span><span class="n">f</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="mi">1</span><span class="n">f</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="mi">0</span><span class="o">);</span>
+      <span class="o">}</span>
+      <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">&quot;Processed page &quot;</span> <span class="o">+</span> <span class="n">i</span><span class="o">);</span>
+    <span class="o">}</span>
+    <span class="n">document</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
+  <span class="o">}</span> <span class="k">catch</span><span class="o">(</span> <span class="n">Exception</span> <span class="n">e</span><span class="o">)</span> <span class="o">{</span>
+    <span class="n">e</span><span class="o">.</span><span class="na">printStackTrace</span><span class="o">();</span>
+  <span class="o">}</span>
+<span class="o">}</span>
 </pre></div>
 
 
@@ -482,10 +482,10 @@ Here is some sample code that uses iText
 <h3 id="references-wzxhzdk51wzxhzdk52">References <a id="pcl-references"></a></h3>
 <ul>
 <li>
-<p><a href="http://en.wikipedia.org/wiki/Printer_Control_Language">WikiPedia entry on PCL</a> </p>
+<p><a href="http://en.wikipedia.org/wiki/Printer_Control_Language">WikiPedia entry on PCL</a></p>
 </li>
 <li>
-<p><a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568">Technical reference documents on PCL from Hewlett-Packard</a> </p>
+<p><a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568">Technical reference documents on PCL from Hewlett-Packard</a></p>
 </li>
 </ul>
 <h3 id="limitations-wzxhzdk53wzxhzdk54">Limitations <a id="pcl-limitations"></a></h3>
@@ -531,18 +531,18 @@ Here is some sample code that uses iText
 <p>You can control the output resolution for the PCL using the "target resolution" setting on the FOUserAgent. The actual value will be rounded up to the next supported PCL resolution. Currently, only 300 and 600 dpi are supported which should be enough for most use cases. Note that this setting directly affects the size of the output file and the print quality.</p>
 <h3 id="extensions-wzxhzdk57wzxhzdk58">Extensions <a id="pcl-extensions"></a></h3>
 <p>The PCL Renderer supports some PCL specific extensions which can be embedded into the input FO document. To use the extensions the appropriate namespace must be declared in the fo:root element like this:</p>
-<div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
-           <span class="n">xmlns:pcl</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/pcl&quot;</span><span class="o">&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
+         <span class="na">xmlns:pcl=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/pcl&quot;</span><span class="nt">&gt;</span>
 </pre></div>
 
 
 <h4 id="page-source-tray-selectionwzxhzdk59wzxhzdk60">Page Source (Tray selection)<a id="pcl-page-source"></a></h4>
 <p>The page-source extension attribute on fo:simple-page-master allows to select the paper tray the sheet for a particular simple-page-master is to be taken from. Example:</p>
-<div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
-    <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span> <span class="na">pcl:paper-source=</span><span class="s">&quot;2&quot;</span><span class="nt">&gt;</span>
-      ...
-    <span class="nt">&lt;/fo:simple-page-master&gt;</span>
-  <span class="nt">&lt;/fo:layout-master-set&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;fo:layout-master-set&gt;</span>
+  <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span> <span class="na">pcl:paper-source=</span><span class="s">&quot;2&quot;</span><span class="nt">&gt;</span>
+    ...
+  <span class="nt">&lt;/fo:simple-page-master&gt;</span>
+<span class="nt">&lt;/fo:layout-master-set&gt;</span>
 </pre></div>
 
 
@@ -553,10 +553,10 @@ The FOP AFP Renderer deals with creating
 <h3 id="references-wzxhzdk65wzxhzdk66">References <a id="afp-references"></a></h3>
 <ul>
 <li>
-<p><a href="http://en.wikipedia.org/wiki/Advanced_Function_Presentation">AFP (Advanced Function Presentation)</a> </p>
+<p><a href="http://en.wikipedia.org/wiki/Advanced_Function_Presentation">AFP (Advanced Function Presentation)</a></p>
 </li>
 <li>
-<p><a href="http://wiki.apache.org/xmlgraphics-fop/AFPResources">AFP Resources on the FOP WIKI</a> </p>
+<p><a href="http://wiki.apache.org/xmlgraphics-fop/AFPResources">AFP Resources on the FOP WIKI</a></p>
 </li>
 </ul>
 <h3 id="limitations-wzxhzdk67wzxhzdk68">Limitations <a id="afp-limitations"></a></h3>
@@ -592,48 +592,48 @@ The FOP AFP Renderer deals with creating
 </li>
 </ol>
 <p>A typical raster font configuration looks like:</p>
-<div class="codehilite"><pre>  <span class="o">&lt;!--</span> <span class="n">This</span> <span class="n">is</span> <span class="n">an</span> <span class="n">example</span> <span class="n">of</span> <span class="n">mapping</span> <span class="n">actual</span> <span class="n">IBM</span> <span class="n">raster</span> <span class="n">fonts</span> <span class="o">/</span> <span class="n">code</span> <span class="n">pages</span> <span class="n">to</span> <span class="n">a</span> <span class="n">FOP</span> <span class="n">font</span> <span class="o">--&gt;</span>
-    <span class="sr">&lt;font&gt;</span>
-    <span class="o">&lt;!--</span> <span class="n">The</span> <span class="n">afp</span><span class="o">-</span><span class="n">font</span> <span class="n">element</span> <span class="n">defines</span> <span class="n">the</span> <span class="n">IBM</span> <span class="n">code</span> <span class="n">page</span><span class="p">,</span> <span class="n">the</span> <span class="n">matching</span> <span class="n">Java</span> <span class="n">encoding</span> <span class="ow">and</span> <span class="n">the</span>
-         <span class="n">path</span> <span class="n">to</span> <span class="n">the</span> <span class="n">font</span> <span class="o">--&gt;</span>
-    <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">font</span> <span class="n">type</span><span class="o">=</span><span class="s">&quot;raster&quot;</span> <span class="n">codepage</span><span class="o">=</span><span class="s">&quot;T1V10500&quot;</span> <span class="n">encoding</span><span class="o">=</span><span class="s">&quot;Cp500&quot;</span> <span class="n">path</span><span class="o">=</span><span class="s">&quot;fonts/ibm&quot;</span><span class="o">&gt;</span>
-      <span class="o">&lt;!--</span> <span class="n">For</span> <span class="n">a</span> <span class="n">raster</span> <span class="n">font</span> <span class="n">a</span> <span class="n">separate</span> <span class="n">element</span> <span class="k">for</span> <span class="nb">each</span> <span class="n">font</span> <span class="n">size</span> <span class="n">is</span> <span class="n">required</span> <span class="n">providing</span>
-           <span class="n">the</span> <span class="n">font</span> <span class="n">size</span> <span class="ow">and</span> <span class="n">the</span> <span class="n">corresponding</span> <span class="n">IBM</span> <span class="n">Character</span> <span class="n">set</span> <span class="n">name</span> <span class="o">--&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;7&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N20070&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;8&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N20080&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;10&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N20000&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;11&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200A0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;12&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200B0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;14&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200D0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;16&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200F0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;18&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200H0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;20&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200J0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;24&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200N0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;30&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200T0&quot;</span><span class="o">/&gt;</span>
-      <span class="o">&lt;</span><span class="n">afp</span><span class="o">-</span><span class="n">raster</span><span class="o">-</span><span class="n">font</span> <span class="n">size</span><span class="o">=</span><span class="s">&quot;36&quot;</span> <span class="n">characterset</span><span class="o">=</span><span class="s">&quot;C0N200Z0&quot;</span><span class="o">/&gt;</span>
-    <span class="sr">&lt;/afp-font&gt;</span>
-    <span class="o">&lt;!--</span> <span class="n">These</span> <span class="n">are</span> <span class="n">the</span> <span class="n">usual</span> <span class="n">FOP</span> <span class="n">font</span> <span class="n">triplets</span> <span class="n">as</span> <span class="n">they</span> <span class="n">apply</span> <span class="n">to</span> <span class="n">this</span> <span class="n">font</span> <span class="o">--&gt;</span>
-    <span class="o">&lt;</span><span class="n">font</span><span class="o">-</span><span class="n">triplet</span> <span class="n">name</span><span class="o">=</span><span class="s">&quot;serif&quot;</span> <span class="n">style</span><span class="o">=</span><span class="s">&quot;normal&quot;</span> <span class="n">weight</span><span class="o">=</span><span class="s">&quot;normal&quot;</span><span class="o">/&gt;</span>
-    <span class="o">&lt;</span><span class="n">font</span><span class="o">-</span><span class="n">triplet</span> <span class="n">name</span><span class="o">=</span><span class="s">&quot;Times&quot;</span> <span class="n">style</span><span class="o">=</span><span class="s">&quot;normal&quot;</span> <span class="n">weight</span><span class="o">=</span><span class="s">&quot;normal&quot;</span><span class="o">/&gt;</span>
-    <span class="o">&lt;</span><span class="n">font</span><span class="o">-</span><span class="n">triplet</span> <span class="n">name</span><span class="o">=</span><span class="s">&quot;Times-Roman&quot;</span> <span class="n">style</span><span class="o">=</span><span class="s">&quot;normal&quot;</span> <span class="n">weight</span><span class="o">=</span><span class="s">&quot;normal&quot;</span><span class="o">/&gt;</span>
-    <span class="o">&lt;</span><span class="n">font</span><span class="o">-</span><span class="n">triplet</span> <span class="n">name</span><span class="o">=</span><span class="s">&quot;TimesNewRoman&quot;</span> <span class="n">style</span><span class="o">=</span><span class="s">&quot;normal&quot;</span> <span class="n">weight</span><span class="o">=</span><span class="s">&quot;normal&quot;</span><span class="o">/&gt;</span>
-  <span class="sr">&lt;/font&gt;</span>
+<div class="codehilite"><pre><span class="c">&lt;!-- This is an example of mapping actual IBM raster fonts / code pages to a FOP font --&gt;</span>
+<span class="nt">&lt;font&gt;</span>
+  <span class="c">&lt;!-- The afp-font element defines the IBM code page, the matching Java encoding and the</span>
+<span class="c">       path to the font --&gt;</span>
+  <span class="nt">&lt;afp-font</span> <span class="na">type=</span><span class="s">&quot;raster&quot;</span> <span class="na">codepage=</span><span class="s">&quot;T1V10500&quot;</span> <span class="na">encoding=</span><span class="s">&quot;Cp500&quot;</span> <span class="na">path=</span><span class="s">&quot;fonts/ibm&quot;</span><span class="nt">&gt;</span>
+    <span class="c">&lt;!-- For a raster font a separate element for each font size is required providing</span>
+<span class="c">         the font size and the corresponding IBM Character set name --&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;7&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N20070&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;8&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N20080&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;10&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N20000&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;11&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200A0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;12&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200B0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;14&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200D0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;16&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200F0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;18&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200H0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;20&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200J0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;24&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200N0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;30&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200T0&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;afp-raster-font</span> <span class="na">size=</span><span class="s">&quot;36&quot;</span> <span class="na">characterset=</span><span class="s">&quot;C0N200Z0&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;/afp-font&gt;</span>
+  <span class="c">&lt;!-- These are the usual FOP font triplets as they apply to this font --&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;serif&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Times&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Times-Roman&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;TimesNewRoman&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+<span class="nt">&lt;/font&gt;</span>
 </pre></div>
 
 
 <p>An outline font configuration is simpler as the individual font size entries are not required. However, the characterset definition is now required within the afp-font element.</p>
-<div class="codehilite"><pre>  <span class="nt">&lt;font&gt;</span>
-      <span class="nt">&lt;afp-font</span> <span class="na">type=</span><span class="s">&quot;outline&quot;</span> <span class="na">codepage=</span><span class="s">&quot;T1V10500&quot;</span> <span class="na">encoding=</span><span class="s">&quot;Cp500&quot;</span> <span class="na">characterset=</span><span class="s">&quot;CZH200  &quot;</span>
-         <span class="na">path=</span><span class="s">&quot;fonts/ibm&quot;</span> <span class="nt">/&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;sans-serif&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Helvetica&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
-      <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;any&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
-  <span class="nt">&lt;/font&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;font&gt;</span>
+  <span class="nt">&lt;afp-font</span> <span class="na">type=</span><span class="s">&quot;outline&quot;</span> <span class="na">codepage=</span><span class="s">&quot;T1V10500&quot;</span> <span class="na">encoding=</span><span class="s">&quot;Cp500&quot;</span> <span class="na">characterset=</span><span class="s">&quot;CZH200  &quot;</span>
+     <span class="na">path=</span><span class="s">&quot;fonts/ibm&quot;</span> <span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;sans-serif&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;Helvetica&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+  <span class="nt">&lt;font-triplet</span> <span class="na">name=</span><span class="s">&quot;any&quot;</span> <span class="na">style=</span><span class="s">&quot;normal&quot;</span> <span class="na">weight=</span><span class="s">&quot;normal&quot;</span><span class="nt">/&gt;</span>
+<span class="nt">&lt;/font&gt;</span>
 </pre></div>
 
 
 <p>Experimentation has shown that the font metrics for the FOP built-in Base14 fonts are actually very similar to some of the IBM outline and raster fonts. In cases were the IBM font files are not available the path attribute in the afp-font element can be replaced by a base14-font attribute giving the name of the matching Base14 font. In this case the AFP Renderer will take the font metrics from the built-in font.</p>
-<div class="codehilite"><pre>  <span class="c">&lt;!-- The following are examples of defining outline fonts based on FOP built-in</span>
+<div class="codehilite"><pre> <span class="c">&lt;!-- The following are examples of defining outline fonts based on FOP built-in</span>
 <span class="c">       font metrics for the Adobe Base14 fonts --&gt;</span>
   <span class="c">&lt;!-- sans-serif fonts based on Helvetica --&gt;</span>
   <span class="nt">&lt;font&gt;</span>
@@ -706,37 +706,37 @@ The FOP AFP Renderer deals with creating
 
 <h4 id="output-resolutionwzxhzdk73wzxhzdk74">Output Resolution<a id="afp-renderer-resolution-config"></a></h4>
 <p>By default the AFP Renderer creates output with a resolution of 240 dpi. This can be overridden by the <renderer-resolution/> configuration element. Example:</p>
-<div class="codehilite"><pre>  <span class="nt">&lt;renderer-resolution&gt;</span>240<span class="nt">&lt;/renderer-resolution&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;renderer-resolution&gt;</span>240<span class="nt">&lt;/renderer-resolution&gt;</span>
 </pre></div>
 
 
 <h4 id="imageswzxhzdk76wzxhzdk77">Images<a id="afp-image-config"></a></h4>
 <p>By default the AFP Renderer converts all images to 8 bit grey level. This can be overridden by the <images> configuration element. Example:</p>
-<div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">images</span> <span class="n">mode</span><span class="o">=</span><span class="s">&quot;color&quot;</span> <span class="o">/&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;images</span> <span class="na">mode=</span><span class="s">&quot;color&quot;</span> <span class="nt">/&gt;</span>
 </pre></div>
 
 
 <p>This will put images as RGB images into the AFP output stream. The default setting is:</p>
-<div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">images</span> <span class="n">mode</span><span class="o">=</span><span class="s">&quot;b+w&quot;</span> <span class="n">bits</span><span class="o">-</span><span class="n">per</span><span class="o">-</span><span class="n">pixel</span><span class="o">=</span><span class="s">&quot;8&quot;</span> <span class="o">/&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;images</span> <span class="na">mode=</span><span class="s">&quot;b+w&quot;</span> <span class="na">bits-per-pixel=</span><span class="s">&quot;8&quot;</span> <span class="nt">/&gt;</span>
 </pre></div>
 
 
 <p>Only the values "color" and "b+w" are allowed for the mode attribute. The bits-per-pixel attribute is ignored if mode is "color". For "b+w" mode is must be 1, 4, or 8.</p>
 <h3 id="extensions-wzxhzdk79wzxhzdk80">Extensions <a id="afp-extensions"></a></h3>
 <p>The AFP Renderer supports some AFP specific extensions which can be embedded into the input fo document. To use the extensions the appropriate namespace must be declared in the fo:root element like this:</p>
-<div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
-           <span class="n">xmlns:afp</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="o">&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
+         <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
 </pre></div>
 
 
 <h4 id="page-overlay-extensionwzxhzdk81wzxhzdk82">Page Overlay Extension<a id="afp-page-overlay"></a></h4>
 <p>The include-page-overlay extension element allows to define on a per simple-page-master basis a page overlay resource. Example:</p>
-<div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
-    <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
-      <span class="nt">&lt;afp:include-page-overlay</span> <span class="na">name=</span><span class="s">&quot;O1SAMP1 &quot;</span> <span class="nt">/&gt;</span>
-      ...
-    <span class="nt">&lt;/fo:simple-page-master&gt;</span>
-  <span class="nt">&lt;/fo:layout-master-set&gt;</span>
+<div class="codehilite"><pre><span class="nt">&lt;fo:layout-master-set&gt;</span>
+  <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;afp:include-page-overlay</span> <span class="na">name=</span><span class="s">&quot;O1SAMP1 &quot;</span> <span class="nt">/&gt;</span>
+    ...
+  <span class="nt">&lt;/fo:simple-page-master&gt;</span>
+<span class="nt">&lt;/fo:layout-master-set&gt;</span>
 </pre></div>
 
 
@@ -744,7 +744,7 @@ The FOP AFP Renderer deals with creating
 <h4 id="page-segment-extensionwzxhzdk83wzxhzdk84">Page Segment Extension<a id="afp-page-segment"></a></h4>
 <p>The include-page-segment extension element allows to define resource substitution for fo:external-graphics elements. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
- <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
+    <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
       <span class="nt">&lt;afp:include-page-segment</span> <span class="na">name=</span><span class="s">&quot;S1ISLOGO&quot;</span> <span class="na">src=</span><span class="s">&quot;../../resources/images/bgimg300dpi.jpg&quot;</span> <span class="nt">/&gt;</span>
@@ -758,7 +758,7 @@ The FOP AFP Renderer deals with creating
 <h4 id="tag-logical-element-extensionwzxhzdk85wzxhzdk86">Tag Logical Element Extension<a id="afp-tag-logical-element"></a></h4>
 <p>The tag-logical-element extension element allows to injects TLEs into the AFP output stream. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
- <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
+    <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
       <span class="nt">&lt;afp:tag-logical-element</span> <span class="na">name=</span><span class="s">&quot;The TLE Name&quot;</span> <span class="na">value=</span><span class="s">&quot;The TLE Value&quot;</span> <span class="nt">/&gt;</span>
@@ -772,7 +772,7 @@ The FOP AFP Renderer deals with creating
 <h4 id="no-operation-extensionwzxhzdk87wzxhzdk88">No Operation Extension<a id="afp-no-operation"></a></h4>
 <p>The no-operation extension provides the ability to carry up to 32K of comments or any other type of unarchitected data into the AFP output stream. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
- <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
+    <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
       <span class="nt">&lt;afp:no-operation</span> <span class="na">name=</span><span class="s">&quot;My NOP&quot;</span><span class="nt">&gt;</span>insert up to 32k of character data here!<span class="nt">&lt;/afp:no-operation&gt;</span>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/pdfencryption.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/pdfencryption.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/pdfencryption.html Tue Dec  4 15:59:34 2012
@@ -414,15 +414,15 @@ $(document).ready(function () {
 </tr>
 </tbody>
 </table>
-<div class="codehilite"><pre><span class="nb">import</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">fop</span><span class="o">.</span><span class="n">pdf</span><span class="o">.</span><span class="n">PDFEncryptionParams</span><span class="p">;</span>
+<div class="codehilite"><pre><span class="kn">import</span> <span class="nn">org.apache.fop.pdf.PDFEncryptionParams</span><span class="o">;</span>
 
-<span class="p">[</span><span class="o">..</span><span class="p">]</span>
+<span class="o">[..]</span>
 
-<span class="n">FOUserAgent</span> <span class="n">userAgent</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">newFOUserAgent</span><span class="p">();</span>
-<span class="n">useragent</span><span class="o">.</span><span class="n">getRendererOptions</span><span class="p">()</span><span class="o">.</span><span class="n">put</span><span class="p">(</span><span class="s">&quot;encryption-params&quot;</span><span class="p">,</span> <span class="k">new</span> <span class="n">PDFEncryptionParams</span><span class="p">(</span>
-    <span class="n">null</span><span class="p">,</span> <span class="s">&quot;password&quot;</span><span class="p">,</span> <span class="n">false</span><span class="p">,</span> <span class="n">false</span><span class="p">,</span> <span class="n">true</span><span class="p">,</span> <span class="n">true</span><span class="p">));</span>
-<span class="n">Fop</span> <span class="n">fop</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">newFop</span><span class="p">(</span><span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">,</span> <span class="n">userAgent</span><span class="p">);</span>
-<span class="p">[</span><span class="o">..</span><span class="p">]</span>
+<span class="n">FOUserAgent</span> <span class="n">userAgent</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="na">newFOUserAgent</span><span class="o">();</span>
+<span class="n">useragent</span><span class="o">.</span><span class="na">getRendererOptions</span><span class="o">().</span><span class="na">put</span><span class="o">(</span><span class="s">&quot;encryption-params&quot;</span><span class="o">,</span> <span class="k">new</span> <span class="n">PDFEncryptionParams</span><span class="o">(</span>
+    <span class="kc">null</span><span class="o">,</span> <span class="s">&quot;password&quot;</span><span class="o">,</span> <span class="kc">false</span><span class="o">,</span> <span class="kc">false</span><span class="o">,</span> <span class="kc">true</span><span class="o">,</span> <span class="kc">true</span><span class="o">));</span>
+<span class="n">Fop</span> <span class="n">fop</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="na">newFop</span><span class="o">(</span><span class="n">MimeConstants</span><span class="o">.</span><span class="na">MIME_PDF</span><span class="o">,</span> <span class="n">userAgent</span><span class="o">);</span>
+<span class="o">[..]</span>
 </pre></div>
 
 

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/running.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/running.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/running.html Tue Dec  4 15:59:34 2012
@@ -395,12 +395,12 @@ $(document).ready(function () {
 <p>The usual and recommended practice for starting FOP from the command line is to run the batch file fop.bat (Windows) or the shell script fop (Unix/Linux). These scripts require that the environment variable JAVA_HOME be set to a path pointing to the appropriate Java installation on your system. Macintosh OSX includes a Java environment as part of its distribution. We are told by Mac OSX users that the path to use in this case is <code>/Library/Java/Home</code> . <strong>Caveat:</strong> We suspect that, as Apple releases new Java environments and as FOP upgrades the minimum Java requirements, the two will inevitably not match on some systems. Please see <a href="http://developer.apple.com/java/faq">Java on Mac OSX FAQ</a> for information as it becomes available.</p>
 <div class="codehilite"><pre><span class="n">USAGE</span>
 <span class="n">Fop</span> <span class="p">[</span><span class="n">options</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">fo</span><span class="o">|-</span><span class="n">xml</span><span class="p">]</span> <span class="n">infile</span> <span class="p">[</span><span class="o">-</span><span class="n">xsl</span> <span class="n">file</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">awt</span><span class="o">|-</span><span class="n">pdf</span><span class="o">|-</span><span class="n">mif</span><span class="o">|-</span><span class="n">rtf</span><span class="o">|-</span><span class="n">tiff</span><span class="o">|-</span><span class="n">png</span><span class="o">|-</span><span class="n">pcl</span><span class="o">|-</span><span class="n">ps</span><span class="o">|-</span><span class="n">txt</span><span class="o">|-</span><span class="n">at</span> <span class="p">[</span><span class="n">mime
 </span><span class="p">]</span><span class="o">|-</span><span class="k">print</span><span class="p">]</span> <span class="sr">&lt;outfile&gt;</span>
- <span class="p">[</span><span class="n">OPTIONS</span><span class="p">]</span>  
-  <span class="o">-</span><span class="n">d</span>                <span class="n">debug</span> <span class="n">mode</span>   
-  <span class="o">-</span><span class="n">x</span>                <span class="nb">dump</span> <span class="n">configuration</span> <span class="n">settings</span>  
-  <span class="o">-</span><span class="sx">q  </span>              <span class="n">quiet</span> <span class="n">mode</span>  
+ <span class="p">[</span><span class="n">OPTIONS</span><span class="p">]</span>
+  <span class="o">-</span><span class="n">d</span>                <span class="n">debug</span> <span class="n">mode</span>
+  <span class="o">-</span><span class="n">x</span>                <span class="nb">dump</span> <span class="n">configuration</span> <span class="n">settings</span>
+  <span class="o">-</span><span class="sx">q  </span>              <span class="n">quiet</span> <span class="n">mode</span>
   <span class="o">-</span><span class="n">c</span> <span class="n">cfg</span><span class="o">.</span><span class="n">xml</span>        <span class="k">use</span> <span class="n">additional</span> <span class="n">configuration</span> <span class="n">file</span> <span class="n">cfg</span><span class="o">.</span><span class="n">xml</span>
-  <span class="o">-</span><span class="n">l</span> <span class="n">lang</span>           <span class="n">the</span> <span class="n">language</span> <span class="n">to</span> <span class="k">use</span> <span class="k">for</span> <span class="n">user</span> <span class="n">information</span> 
+  <span class="o">-</span><span class="n">l</span> <span class="n">lang</span>           <span class="n">the</span> <span class="n">language</span> <span class="n">to</span> <span class="k">use</span> <span class="k">for</span> <span class="n">user</span> <span class="n">information</span>
   <span class="o">-</span><span class="n">r</span>                <span class="n">relaxed</span><span class="o">/</span><span class="n">less</span> <span class="n">strict</span> <span class="n">validation</span> <span class="p">(</span><span class="n">where</span> <span class="n">available</span><span class="p">)</span>
   <span class="o">-</span><span class="n">dpi</span> <span class="n">xxx</span>          <span class="n">target</span> <span class="n">resolution</span> <span class="n">in</span> <span class="n">dots</span> <span class="n">per</span> <span class="n">inch</span> <span class="p">(</span><span class="n">dpi</span><span class="p">)</span> <span class="n">where</span> <span class="n">xxx</span> <span class="n">is</span> <span class="n">a</span> <span class="n">number</span>
   <span class="o">-</span><span class="n">s</span>                <span class="k">for</span> <span class="n">area</span> <span class="n">tree</span> <span class="n">XML</span><span class="p">,</span> <span class="n">down</span> <span class="n">to</span> <span class="n">block</span> <span class="n">areas</span> <span class="n">only</span>
@@ -415,54 +415,54 @@ $(document).ready(function () {
   <span class="o">-</span><span class="n">pdfprofile</span> <span class="n">prof</span>  <span class="n">PDF</span> <span class="n">file</span> <span class="n">will</span> <span class="n">be</span> <span class="n">generated</span> <span class="n">with</span> <span class="n">the</span> <span class="n">specified</span> <span class="n">profile</span>
                     <span class="p">(</span><span class="n">Examples</span> <span class="k">for</span> <span class="n">prof:</span> <span class="n">PDF</span><span class="sr">/A-1b or PDF/</span><span class="n">X</span><span class="o">-</span><span class="mi">3</span><span class="p">:</span><span class="mi">2003</span><span class="p">)</span>
 
- <span class="p">[</span><span class="n">INPUT</span><span class="p">]</span>  
-  <span class="n">infile</span>            <span class="n">xsl:fo</span> <span class="n">input</span> <span class="n">file</span> <span class="p">(</span><span class="n">the</span> <span class="n">same</span> <span class="n">as</span> <span class="n">the</span> <span class="k">next</span><span class="p">)</span> 
-  <span class="o">-</span><span class="n">fo</span>  <span class="n">infile</span>       <span class="n">xsl:fo</span> <span class="n">input</span> <span class="n">file</span>  
-  <span class="o">-</span><span class="n">xml</span> <span class="n">infile</span>       <span class="n">xml</span> <span class="n">input</span> <span class="n">file</span><span class="p">,</span> <span class="n">must</span> <span class="n">be</span> <span class="n">used</span> <span class="n">together</span> <span class="n">with</span> <span class="o">-</span><span class="n">xsl</span> 
-  <span class="o">-</span><span class="n">atin</span> <span class="n">infile</span>      <span class="n">area</span> <span class="n">tree</span> <span class="n">input</span> <span class="n">file</span> 
+ <span class="p">[</span><span class="n">INPUT</span><span class="p">]</span>
+  <span class="n">infile</span>            <span class="n">xsl:fo</span> <span class="n">input</span> <span class="n">file</span> <span class="p">(</span><span class="n">the</span> <span class="n">same</span> <span class="n">as</span> <span class="n">the</span> <span class="k">next</span><span class="p">)</span>
+  <span class="o">-</span><span class="n">fo</span>  <span class="n">infile</span>       <span class="n">xsl:fo</span> <span class="n">input</span> <span class="n">file</span>
+  <span class="o">-</span><span class="n">xml</span> <span class="n">infile</span>       <span class="n">xml</span> <span class="n">input</span> <span class="n">file</span><span class="p">,</span> <span class="n">must</span> <span class="n">be</span> <span class="n">used</span> <span class="n">together</span> <span class="n">with</span> <span class="o">-</span><span class="n">xsl</span>
+  <span class="o">-</span><span class="n">atin</span> <span class="n">infile</span>      <span class="n">area</span> <span class="n">tree</span> <span class="n">input</span> <span class="n">file</span>
   <span class="o">-</span><span class="n">xsl</span> <span class="n">stylesheet</span>   <span class="n">xslt</span> <span class="n">stylesheet</span>
 
   <span class="o">-</span><span class="n">param</span> <span class="n">name</span> <span class="n">value</span> <span class="sr">&lt;value&gt;</span> <span class="n">to</span> <span class="k">use</span> <span class="k">for</span> <span class="n">parameter</span> <span class="sr">&lt;name&gt;</span> <span class="n">in</span> <span class="n">xslt</span> <span class="n">stylesheet</span>
                     <span class="p">(</span><span class="n">repeat</span> <span class="s">&#39;-param name value&#39;</span> <span class="k">for</span> <span class="nb">each</span> <span class="n">parameter</span><span class="p">)</span>
 
- <span class="p">[</span><span class="n">OUTPUT</span><span class="p">]</span> 
+ <span class="p">[</span><span class="n">OUTPUT</span><span class="p">]</span>
   <span class="n">outfile</span>           <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">PDF</span> <span class="n">into</span> <span class="n">outfile</span>
   <span class="o">-</span><span class="n">pdf</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">PDF</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d)</span>
 <span class="s">  -pdfa1b outfile   input will be rendered as PDF/A-1b compliant PDF</span>
 <span class="s">                    (outfile req&#39;</span><span class="n">d</span><span class="p">,</span> <span class="n">same</span> <span class="n">as</span> <span class="s">&quot;-pdf outfile -pdfprofile PDF/A-1b&quot;</span><span class="p">)</span>
-  <span class="o">-</span><span class="n">awt</span>              <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">displayed</span> <span class="n">on</span> <span class="n">screen</span> 
+  <span class="o">-</span><span class="n">awt</span>              <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">displayed</span> <span class="n">on</span> <span class="n">screen</span>
   <span class="o">-</span><span class="n">rtf</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">RTF</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d)</span>
-<span class="s">  -pcl outfile      input will be rendered as PCL (outfile req&#39;</span><span class="n">d</span><span class="p">)</span> 
-  <span class="o">-</span><span class="n">ps</span> <span class="n">outfile</span>       <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">PostScript</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d) </span>
+<span class="s">  -pcl outfile      input will be rendered as PCL (outfile req&#39;</span><span class="n">d</span><span class="p">)</span>
+  <span class="o">-</span><span class="n">ps</span> <span class="n">outfile</span>       <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">PostScript</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d)</span>
 <span class="s">  -afp outfile      input will be rendered as AFP (outfile req&#39;</span><span class="n">d</span><span class="p">)</span>
   <span class="o">-</span><span class="n">tiff</span> <span class="n">outfile</span>     <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">TIFF</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d)</span>
 <span class="s">  -png outfile      input will be rendered as PNG (outfile req&#39;</span><span class="n">d</span><span class="p">)</span>
-  <span class="o">-</span><span class="n">txt</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">plain</span> <span class="n">text</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d) </span>
-<span class="s">  -at [mime] out    representation of area tree as XML (outfile req&#39;</span><span class="n">d</span><span class="p">)</span> 
+  <span class="o">-</span><span class="n">txt</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">plain</span> <span class="n">text</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d)</span>
+<span class="s">  -at [mime] out    representation of area tree as XML (outfile req&#39;</span><span class="n">d</span><span class="p">)</span>
                     <span class="n">specify</span> <span class="n">optional</span> <span class="n">mime</span> <span class="n">output</span> <span class="n">to</span> <span class="n">allow</span> <span class="n">AT</span> <span class="n">to</span> <span class="n">be</span> <span class="n">converted</span>
                     <span class="n">to</span> <span class="n">final</span> <span class="nb">format</span> <span class="n">later</span>
-  <span class="o">-</span><span class="k">print</span>            <span class="n">input</span> <span class="n">file</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="ow">and</span> <span class="n">sent</span> <span class="n">to</span> <span class="n">the</span> <span class="n">printer</span> 
-                    <span class="n">see</span> <span class="n">options</span> <span class="n">with</span> <span class="s">&quot;-print help&quot;</span> 
+  <span class="o">-</span><span class="k">print</span>            <span class="n">input</span> <span class="n">file</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="ow">and</span> <span class="n">sent</span> <span class="n">to</span> <span class="n">the</span> <span class="n">printer</span>
+                    <span class="n">see</span> <span class="n">options</span> <span class="n">with</span> <span class="s">&quot;-print help&quot;</span>
   <span class="o">-</span><span class="n">out</span> <span class="n">mime</span> <span class="n">outfile</span> <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">using</span> <span class="n">the</span> <span class="n">given</span> <span class="n">MIME</span> <span class="n">type</span>
                     <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="s">&#39;d) Example: &quot;-out application/pdf D:\out.pdf&quot;</span>
 <span class="s">                    (Tip: &quot;-out list&quot; prints the list of supported MIME types)</span>
 <span class="s">  -mif outfile      input will be rendered as MIF (FrameMaker) (outfile req&#39;</span><span class="n">d</span><span class="p">)</span>
                     <span class="n">Experimental</span> <span class="n">feature</span> <span class="o">-</span> <span class="n">requires</span> <span class="n">additional</span> <span class="n">fop</span><span class="o">-</span><span class="n">sandbox</span><span class="o">.</span><span class="n">jar</span><span class="o">.</span>
-  <span class="o">-</span><span class="n">svg</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">an</span> <span class="n">SVG</span> <span class="n">slides</span> <span class="n">file</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="err">&#39;</span><span class="n">d</span><span class="p">)</span> 
+  <span class="o">-</span><span class="n">svg</span> <span class="n">outfile</span>      <span class="n">input</span> <span class="n">will</span> <span class="n">be</span> <span class="n">rendered</span> <span class="n">as</span> <span class="n">an</span> <span class="n">SVG</span> <span class="n">slides</span> <span class="n">file</span> <span class="p">(</span><span class="n">outfile</span> <span class="n">req</span><span class="err">&#39;</span><span class="n">d</span><span class="p">)</span>
                     <span class="n">Experimental</span> <span class="n">feature</span> <span class="o">-</span> <span class="n">requires</span> <span class="n">additional</span> <span class="n">fop</span><span class="o">-</span><span class="n">sandbox</span><span class="o">.</span><span class="n">jar</span><span class="o">.</span>
 
-  <span class="o">-</span><span class="n">foout</span> <span class="n">outfile</span>    <span class="n">input</span> <span class="n">will</span> <span class="n">only</span> <span class="n">be</span> <span class="n">XSL</span> <span class="n">transformed</span><span class="o">.</span> <span class="n">The</span> <span class="n">intermediate</span> 
-                    <span class="n">XSL</span><span class="o">-</span><span class="n">FO</span> <span class="n">file</span> <span class="n">is</span> <span class="n">saved</span> <span class="ow">and</span> <span class="nb">no</span> <span class="n">rendering</span> <span class="n">is</span> <span class="n">performed</span><span class="o">.</span> 
+  <span class="o">-</span><span class="n">foout</span> <span class="n">outfile</span>    <span class="n">input</span> <span class="n">will</span> <span class="n">only</span> <span class="n">be</span> <span class="n">XSL</span> <span class="n">transformed</span><span class="o">.</span> <span class="n">The</span> <span class="n">intermediate</span>
+                    <span class="n">XSL</span><span class="o">-</span><span class="n">FO</span> <span class="n">file</span> <span class="n">is</span> <span class="n">saved</span> <span class="ow">and</span> <span class="nb">no</span> <span class="n">rendering</span> <span class="n">is</span> <span class="n">performed</span><span class="o">.</span>
                     <span class="p">(</span><span class="n">Only</span> <span class="n">available</span> <span class="k">if</span> <span class="n">you</span> <span class="k">use</span> <span class="o">-</span><span class="n">xml</span> <span class="ow">and</span> <span class="o">-</span><span class="n">xsl</span> <span class="n">parameters</span><span class="p">)</span>
 
  <span class="p">[</span><span class="n">Examples</span><span class="p">]</span>
-  <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="n">foo</span><span class="o">.</span><span class="n">pdf</span> 
+  <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="n">foo</span><span class="o">.</span><span class="n">pdf</span>
   <span class="n">Fop</span> <span class="o">-</span><span class="n">fo</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="n">pdf</span> <span class="n">foo</span><span class="o">.</span><span class="n">pdf</span> <span class="p">(</span><span class="n">does</span> <span class="n">the</span> <span class="n">same</span> <span class="n">as</span> <span class="n">the</span> <span class="n">previous</span> <span class="n">line</span><span class="p">)</span>
   <span class="n">Fop</span> <span class="o">-</span><span class="n">xml</span> <span class="n">foo</span><span class="o">.</span><span class="n">xml</span> <span class="o">-</span><span class="n">xsl</span> <span class="n">foo</span><span class="o">.</span><span class="n">xsl</span> <span class="o">-</span><span class="n">pdf</span> <span class="n">foo</span><span class="o">.</span><span class="n">pdf</span>
   <span class="n">Fop</span> <span class="o">-</span><span class="n">xml</span> <span class="n">foo</span><span class="o">.</span><span class="n">xml</span> <span class="o">-</span><span class="n">xsl</span> <span class="n">foo</span><span class="o">.</span><span class="n">xsl</span> <span class="o">-</span><span class="n">foout</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span>
   <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="n">mif</span> <span class="n">foo</span><span class="o">.</span><span class="n">mif</span>
   <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="n">rtf</span> <span class="n">foo</span><span class="o">.</span><span class="n">rtf</span>
-  <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="k">print</span> <span class="ow">or</span> <span class="n">Fop</span> <span class="o">-</span><span class="k">print</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> 
+  <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="k">print</span> <span class="ow">or</span> <span class="n">Fop</span> <span class="o">-</span><span class="k">print</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span>
   <span class="n">Fop</span> <span class="n">foo</span><span class="o">.</span><span class="n">fo</span> <span class="o">-</span><span class="n">awt</span>
 </pre></div>
 
@@ -487,7 +487,7 @@ The user is always responsible to provid
 In the case of using -xml and -xsl input, although the user is responsible for the XSL-FO code that is FOP's input, it is not visible to the user. To make the intermediate FO file visible, the FOP distribution includes the "-foout" option which causes FOP to run only the first (transformation) step, and write the results to a file. (See also the Xalan command-line below)
 When asking for help on the FOP mailing lists, <em>never</em> attach XML and XSL to illustrate the issue. Always run the XSLT step (-foout) and send the resulting XSL-FO file instead. Of course, be sure that the XSL-FO file is correct before sending it.
 The -foout option works the same way as if you would call the <a href="http://xml.apache.org/xalan-j/commandline.html">Xalan command-line</a> :</p>
-<p><code>java org.apache.xalan.xslt.Process -IN xmlfile -XSL file -OUT outfile</code> </p>
+<p><code>java org.apache.xalan.xslt.Process -IN xmlfile -XSL file -OUT outfile</code></p>
 <p>Note that there are some subtle differences between the FOP and Xalan command-lines.</p>
 <h2 id="memory-usage-wzxhzdk22wzxhzdk23">Memory Usage <a id="memory"></a></h2>
 <p>FOP can consume quite a bit of memory, even though this has been continually improved. This is partly inherent to the formatting process and partly caused by implementation choices. All FO processors currently on the market have memory problems with certain layouts.</p>



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


Mime
View raw message