jefft 2003/04/14 16:35:47
Modified: targets/fop anttask.html bugs.html changes.html
compiling.html compiling.pdf compliance.html
configuration.html download.html embedding.html
embedding.pdf examples.html extensions.html
extensions.pdf faq.html faq.pdf fonts.html
fonts.pdf gethelp.html index.html license.html
logocontest.html news.html news.pdf output.html
output.pdf pdfencryption.html relnotes.html
relnotes.pdf resources.html running.html
running.pdf status.html svg.html svg.pdf todo.html
targets/fop/design embedding.html embedding.pdf
targets/fop/design/alt.design FOPropertySets.html
FoXMLEvent.html SyncedFoXmlEventsBuffer.html
XMLNamespaces.html codedisplay.js
targets/fop/design/alt.design/properties
AbstractPropertyValue.html FOAttributes.html
PropNames.html Property.html PropertyConsts.html
PropertyParser.html PropertySets.html
PropertyTokenizer.html PropertyValue.html
PropertyValueList.html ShorthandPropSets.html
codedisplay.js
targets/fop/dev configuration.html configuration.pdf
extensions.html extensions.pdf index.html index.pdf
svg.html svg.pdf
Added: targets/fop fo.html fo.pdf
Log:
Automatic publish at Tue Apr 15 01:35:44 CEST 2003 from
http://forrestbot.cocoondev.org.
Revision Changes Path
1.4 +15 -17 xml-site/targets/fop/anttask.html
Index: anttask.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/anttask.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- anttask.html 7 Apr 2003 18:54:40 -0000 1.3
+++ anttask.html 14 Apr 2003 23:35:37 -0000 1.4
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.26 +15 -17 xml-site/targets/fop/bugs.html
Index: bugs.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/bugs.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- bugs.html 7 Apr 2003 18:54:40 -0000 1.25
+++ bugs.html 14 Apr 2003 23:35:37 -0000 1.26
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.12 +15 -17 xml-site/targets/fop/changes.html
Index: changes.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/changes.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- changes.html 7 Apr 2003 18:54:40 -0000 1.11
+++ changes.html 14 Apr 2003 23:35:37 -0000 1.12
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.31 +29 -21 xml-site/targets/fop/compiling.html
Index: compiling.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/compiling.html,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- compiling.html 7 Apr 2003 18:54:40 -0000 1.30
+++ compiling.html 14 Apr 2003 23:35:38 -0000 1.31
@@ -162,15 +162,19 @@
</li>
<li>
-<span class="sel"><font color="#ffcc00">Compiling</font></span>
+<span class="sel"><font color="#ffcc00">Compile</font></span>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
-</li>
-
-</ul>
+<a href="output.html">Output Targets</a>
</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -300,6 +298,9 @@
<a href="#Set+Up+Your+Environment">Set Up Your Environment</a>
<ul class="minitoc">
<li>
+<a href="#JDK">JDK</a>
+</li>
+<li>
<a href="#CLASSPATH">CLASSPATH</a>
</li>
<li>
@@ -326,14 +327,21 @@
<a name="N101CC"></a><a name="Set+Up+Your+Environment"></a>
<h3>Set Up Your Environment</h3>
<div style="margin-left: 0 ; border: 2px">
-<a name="N101D2"></a><a name="CLASSPATH"></a>
+<a name="N101D2"></a><a name="JDK"></a>
+<h4>JDK</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ Building FOP requires a minimum Java Development Kit (JDK) of
1.3.
+ </p>
+</div>
+<a name="N101DC"></a><a name="CLASSPATH"></a>
<h4>CLASSPATH</h4>
<div style="margin-left: 0 ; border: 2px">
<p>There is no generally no need to setup a classpath.
All libraries needed to compile FOP are included in the source distribution
and are referenced by the build script.
You will only need to adjust the classpath if you build FOP in some other
way. See the build scripts (build.bat for Windows, and build.sh for Unix) for
details.</p>
</div>
-<a name="N101DC"></a><a name="JAVA_HOME"></a>
+<a name="N101E6"></a><a name="JAVA_HOME"></a>
<h4>JAVA_HOME</h4>
<div style="margin-left: 0 ; border: 2px">
<p>Ant, which is used by the build script, requires that the enviroment
variable JAVA_HOME point to your local JDK root directory.
@@ -341,7 +349,7 @@
</div>
</div>
-<a name="N101E7"></a><a name="Run+the+%22build%22+Script"></a>
+<a name="N101F1"></a><a name="Run+the+%22build%22+Script"></a>
<h3>Run the "build" Script</h3>
<div style="margin-left: 0 ; border: 2px">
<p>Build FOP by executing the "build" script, which is located in the FOP
root directory.
@@ -352,7 +360,7 @@
<p>A help screen is shown by calling "build usage".</p>
</div>
-<a name="N101FB"></a><a name="Troubleshooting"></a>
+<a name="N10205"></a><a name="Troubleshooting"></a>
<h3>Troubleshooting</h3>
<div style="margin-left: 0 ; border: 2px">
<p>If you have problems building FOP, please try the following:</p>
1.7 +138 -135 xml-site/targets/fop/compiling.pdf
<<Binary file>>
1.11 +15 -17 xml-site/targets/fop/compliance.html
Index: compliance.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/compliance.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- compliance.html 12 Apr 2003 19:29:05 -0000 1.10
+++ compliance.html 14 Apr 2003 23:35:38 -0000 1.11
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.10 +15 -17 xml-site/targets/fop/configuration.html
Index: configuration.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/configuration.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- configuration.html 7 Apr 2003 18:54:40 -0000 1.9
+++ configuration.html 14 Apr 2003 23:35:38 -0000 1.10
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<span class="sel"><font color="#ffcc00">Configure</font></span>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<span class="sel"><font color="#ffcc00">Configuration</font></span>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.32 +15 -17 xml-site/targets/fop/download.html
Index: download.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/download.html,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- download.html 7 Apr 2003 18:54:40 -0000 1.31
+++ download.html 14 Apr 2003 23:35:38 -0000 1.32
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.33 +230 -68 xml-site/targets/fop/embedding.html
Index: embedding.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/embedding.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- embedding.html 7 Apr 2003 18:54:40 -0000 1.32
+++ embedding.html 14 Apr 2003 23:35:39 -0000 1.33
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<span class="sel"><font color="#ffcc00">Embedding</font></span>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<span class="sel"><font color="#ffcc00">Embed</font></span>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -292,58 +290,84 @@
PDF</a></td>
</tr>
</table>
-<h3>Notes about embedding FOP in your Java application</h3>
+<h3>How to Embed FOP in a Java application</h3>
<ul class="minitoc">
<li>
-<a href="#Embedding+FOP">Embedding FOP</a>
+<a href="#overview">Overview</a>
+</li>
+<li>
+<a href="#basics">Basics</a>
+</li>
+<li>
+<a href="#logging">Controlling logging</a>
+</li>
+<li>
+<a href="#hints">Hints</a>
<ul class="minitoc">
<li>
-<a href="#Overview">Overview</a>
+<a href="#input">XML/XSL/DOM Inputs</a>
</li>
<li>
-<a href="#Basics">Basics</a>
+<a href="#object-reuse">Object reuse</a>
</li>
<li>
-<a href="#logging">Controlling logging</a>
+<a href="#render-info">Getting information on the rendering process</a>
</li>
+</ul>
+</li>
+<li>
+<a href="#servlet">Using FOP in a Servlet</a>
+</li>
+<li>
+<a href="#servlet-transform">Using FOP in a Servlet with an XSLT
Transformation</a>
+</li>
+<li>
+<a href="#config-external">Using a Configuration File</a>
+</li>
+<li>
+<a href="#config-internal">Setting the Configuration Programmatically</a>
+</li>
+<li>
+<a href="#multithreading">Multithreading FOP</a>
+</li>
+<li>
+<a href="#servlet-engine">Servlet Engines</a>
+<ul class="minitoc">
<li>
-<a href="#Hints">Hints</a>
+<a href="#tomcat">Tomcat</a>
</li>
<li>
-<a href="#Using+FOP+in+a+servlet">Using FOP in a servlet</a>
+<a href="#websphere">WebSphere 3.5</a>
</li>
</ul>
</li>
<li>
-<a href="#Examples">Examples</a>
+<a href="#examples">Examples</a>
<ul class="minitoc">
<li>
-<a href="#ExampleFO2PDF.java">ExampleFO2PDF.java</a>
+<a href="#ExampleFO2PDF">ExampleFO2PDF.java</a>
</li>
<li>
-<a href="#ExampleXML2FO.java">ExampleXML2FO.java</a>
+<a href="#ExampleXML2FO">ExampleXML2FO.java</a>
</li>
<li>
-<a href="#ExampleXML2PDF.java">ExampleXML2PDF.java</a>
+<a href="#ExampleXML2PDF">ExampleXML2PDF.java</a>
</li>
<li>
-<a href="#ExampleObj2XML.java">ExampleObj2XML.java</a>
+<a href="#ExampleObj2XML">ExampleObj2XML.java</a>
</li>
<li>
-<a href="#ExampleObj2PDF.java">ExampleObj2PDF.java</a>
+<a href="#ExampleObj2PDF">ExampleObj2PDF.java</a>
</li>
<li>
-<a href="#Final+notes">Final notes</a>
+<a href="#example-notes">Final notes</a>
</li>
</ul>
</li>
</ul>
-
-<a name="N101C2"></a><a name="Embedding+FOP"></a>
-<h3>Embedding FOP</h3>
-<div style="margin-left: 0 ; border: 2px">
-<a name="N101C8"></a><a name="Overview"></a>
-<h4>Overview</h4>
+
+<a name="N101C2"></a><a name="overview"></a>
+<h3>Overview</h3>
<div style="margin-left: 0 ; border: 2px">
<p>Instantiate org.apache.fop.apps.Driver. Once this class is
instantiated, methods are called to set the
@@ -356,8 +380,9 @@
enables runtime determination of Renderer and ElementMapping(s).
</p>
</div>
-<a name="N101D2"></a><a name="Basics"></a>
-<h4>Basics</h4>
+
+<a name="N101CC"></a><a name="basics"></a>
+<h3>Basics</h3>
<div style="margin-left: 0 ; border: 2px">
<p>The simplest way to use Driver is to instantiate it with the
InputSource and OutputStream, then set the renderer desired and
@@ -367,9 +392,9 @@
</p>
<pre class="code">
import org.apache.fop.apps.Driver;
-
- /*..*/
-
+
+ /*..*/
+
Driver driver = new Driver(new InputSource(args[0]),
new FileOutputStream(args[1]));
driver.setRenderer(Driver.RENDER_PDF);
@@ -455,8 +480,9 @@
issues should be fixed in the upcoming JDK 1.4</div>
</div>
</div>
-<a name="N1022D"></a><a name="logging"></a>
-<h4>Controlling logging</h4>
+
+<a name="N10227"></a><a name="logging"></a>
+<h3>Controlling logging</h3>
<div style="margin-left: 0 ; border: 2px">
<p>FOP uses Jakarta Avalon's
<a target="_blank"
href="http://jakarta.apache.org/avalon/api/org/apache/avalon/framework/logger/Logger.html">Logger</a>
@@ -485,11 +511,12 @@
<p>If you want to use yet another logging facility you simply have to create
a class that implements org.apache.avalon.framework.logging.Logger
and set it on the Driver object. See the existing implementations in
Avalon Framework for examples.</p>
</div>
-<a name="N10256"></a><a name="Hints"></a>
-<h4>Hints</h4>
+
+<a name="N10250"></a><a name="hints"></a>
+<h3>Hints</h3>
<div style="margin-left: 0 ; border: 2px">
-<a name="N1025C"></a><a name="XML%2FXSL%2FDOM+Inputs"></a>
-<h5>XML/XSL/DOM Inputs</h5>
+<a name="N10256"></a><a name="input"></a>
+<h4>XML/XSL/DOM Inputs</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
You may want to supply you input to FOP from different data sources.
@@ -508,8 +535,8 @@
Examples showing this can be found at the bott
</p>
</div>
-<a name="N10270"></a><a name="Object+reuse"></a>
-<h5>Object reuse</h5>
+<a name="N1026A"></a><a name="object-reuse"></a>
+<h4>Object reuse</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
If FOP is going to be used multiple times within your application
@@ -523,8 +550,8 @@
IntputStream and renderer.
</p>
</div>
-<a name="N1027D"></a><a
name="Getting+information+on+the+rendering+process"></a>
-<h5>Getting information on the rendering process</h5>
+<a name="N10277"></a><a name="render-info"></a>
+<h4>Getting information on the rendering process</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
To get the number of pages that were rendered by FOP you can call
@@ -537,13 +564,24 @@
</p>
</div>
</div>
-<a name="N1028B"></a><a name="Using+FOP+in+a+servlet"></a>
-<h4>Using FOP in a servlet</h4>
+
+<a name="N10285"></a><a name="servlet"></a>
+<h3>Using FOP in a Servlet</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
-In the directory xml-fop/examples/servlet you can find a working example how
-to use FOP in a servlet. After building the servlet you can drop the fop.war
-into the webapps directory of Tomcat, then go to a URL like this:
+ Here is a minimal code snippet to demonstrate the basics:
+ </p>
+<pre class="code">response.setContentType("application/pdf");
+Driver driver=new Driver( new InputSource("foo.fo"),
+ response.getOutputStream());
+driver.setRenderer(Driver.RENDER_PDF);
+driver.run();</pre>
+<p>
+There are numerous problems with the code snippet above.
+Its purpose is only to demonstrate the basic concepts.
+See xml-fop/examples/servlet for a working example of FOP used in a servlet.
+After building the servlet, drop the fop.war into the webapps directory of
Tomcat.
+Then access a URL as follows:
</p>
<p>http://localhost:8080/fop/fop?fo=/home/path/to/fofile.fo</p>
<p>http://localhost:8080/fop/fop?xml=/home/path/to/xmlfile.xml&xsl=/home/path/to/xslfile.xsl</p>
@@ -551,15 +589,139 @@
<div class="frame note">
<div class="label">Note</div>
<div class="content">
- Some browsers have problems handling the PDF result sent back to
- the browser. IE is particularly bad and different versions behave
- differently. Having a ".pdf" on the end of the URL may help.
- </div>
+ Some versions of Internet Explorer will not automatically show the
PDF.
+This is well-known to be a limitation of Internet Explorer, and is not a
problem with the servlet.
+However, Internet Explorer can still be used to download the PDF so that it
can be viewed later. Also, appending ".pdf" to the end of the URL may help.
+ </div>
+</div>
</div>
+
+<a name="N102A2"></a><a name="servlet-transform"></a>
+<h3>Using FOP in a Servlet with an XSLT Transformation</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ If both the source XML and XSL are read from files, use the
TraxInputHandler:
+ </p>
+<pre class="code">response.setContentType("application/pdf");
+XSLTInputHandler input
+ =new XSLTInputHandler(new File("foo.xml"), new File("foo.xsl"));
+Driver driver=new Driver();
+driver.setOutputStream(response.getOutputStream());
+driver.setRenderer(Driver.RENDER_PDF);
+driver.render(input.getParser(), input.getInputSource());</pre>
+<p>
+ This code snippet has the same problems as the one from the <a
href="#servlet">section above</a>.
+ </p>
+<p>
+ If your source XML is generated on the fly (for example from a
database, a web service, or another servlet), create a transformer object
explicitly, and use a SAX event stream to feed the transformation result into
FOP:
+ </p>
+<pre class="code">response.setContentType("application/pdf");
+Driver driver =new Driver();
+driver.setOutputStream(response.getOutputStream());
+driver.setRenderer(Driver.RENDER_PDF);
+Transformer transformer=TransformerFactory.newInstance()
+ .newTransformer(new StreamSource("foo.xsl"));
+transformer.transform(xmlsource, new
SAXResult(driver.getContentHandler()));</pre>
+<p>
+ You don't have to call run() or render() on the driver object.
+ </p>
+<p>
+ The <span class="codefrag">xmlsource</span> is a placeholder for your
actual XML source.
+If you have to read the XML from a string, supply a <span
class="codefrag">new StreamSource(new StringReader(xmlstring))</span>.
+Constructing and reparsing an XML string is generally less desirable than
using a SAXSource if you generate your XML.
+You can alternatively supply a DOMSource as well.
+You may also use dynamically generated XSL if you like.
+ </p>
+<p>
+ Because you have an explicit transformer object, you can also use it
to explicitly set parameters for the transformation run.
+ </p>
+</div>
+
+<a name="N102CD"></a><a name="config-external"></a>
+<h3>Using a Configuration File</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ To access an external configuration:
+ </p>
+<pre class="code">org.apache.fop.apps.Options options = new Options(new
File("userconfig.xml"));</pre>
+<p>
+ No further reference to the <span class="codefrag">options</span>
variable is necessary.
+ </p>
+<p>
+ See <a href="#multithreading">Multithreading FOP</a> for issues
related to changing configuration in a multithreaded environment.
+ </p>
+</div>
+
+<a name="N102E8"></a><a name="config-internal"></a>
+<h3>Setting the Configuration Programmatically</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ If you wish to set configuration options from within your embedded
application, use the <span class="codefrag">Configuration.put</span> method.
Here is an example that sets the "baseDir" configuration in a Unix environment:
+ </p>
+<pre
class="code">org.apache.fop.configuration.Configuration.put("baseDir","/my/base/dir");</pre>
+<p>
+ Here is another that sets baseDir in a Windows environment:
+ </p>
+<pre
class="code">org.apache.fop.configuration.Configuration.put("baseDir","C:\my\base\dir");</pre>
+<p>
+ See <a href="#multithreading">Multithreading FOP</a> for issues
related to changing configuration in a multithreaded environment.
+ </p>
+</div>
+
+<a name="N10307"></a><a name="multithreading"></a>
+<h3>Multithreading FOP</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ FOP is not currently completely thread safe.
+Although the relevant methods of the Driver object are synchronized, FOP
uses static
+variables for configuration data and loading images.
+Here are some tips to mitigate these problems:
+ </p>
+<ul>
+
+<li>To avoid having your threads blocked, create a Driver object for each
thread.</li>
+
+<li>If possible, do not change the configuration data while there is a
Driver object rendering.
+Setup the configuration only once, preferably in the <span
class="codefrag">init()</span> method of the servlet.
+ </li>
+
+<li>If you must change the configuration data more often, or if you have
multiple servlets within the same webapp using FOP, consider implementing a
singleton class to encapsulate the configuration settings and to run FOP in
synchronized methods.
+ </li>
+
+</ul>
+</div>
+
+<a name="N10320"></a><a name="servlet-engine"></a>
+<h3>Servlet Engines</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ When using a servlet engine, there are potential CLASSPATH issues, and
potential conflicts with existing XML/XSLT libraries.
+Servlet containers also often use their own classloaders for loading
webapps, which can cause bugs and security problems.
+ </p>
+<a name="N10329"></a><a name="tomcat"></a>
+<h4>Tomcat</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ Check Tomcat's documentation for detailed instructions about
installing FOP and Cocoon.
+There are known bugs that must be addressed, particularly for Tomcat 4.0.3.
+ </p>
+</div>
+<a name="N10333"></a><a name="websphere"></a>
+<h4>WebSphere 3.5</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ Put a copy of a working parser in some directory where WebSphere can
access it.
+For example, if /usr/webapps/yourapp/servlets is the CLASSPATH for your
servlets, copy the Xerces jar into it (any other directory would also be fine).
+Do not add the jar to the servlet CLASSPATH, but add it to the CLASSPATH of
the application server which contains your web application.
+In the WebSphere administration console, click on the "environment" button
in the "general" tab.
+In the "variable name" box, enter "CLASSPATH".
+In the "value" box, enter the correct path to the parser jar file
(/usr/webapps/yourapp/servlets/Xerces.jar in our example here).
+Press "OK", then apply the change and restart the application server.
+ </p>
</div>
</div>
-<a name="N102A2"></a><a name="Examples"></a>
+<a name="N1033E"></a><a name="examples"></a>
<h3>Examples</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -567,7 +729,7 @@
In contrast of the examples above the examples here primarily use JAXP for
XML access. This may be easier to understand for people familiar with JAXP.
</p>
-<a name="N102AB"></a><a name="ExampleFO2PDF.java"></a>
+<a name="N10347"></a><a name="ExampleFO2PDF"></a>
<h4>ExampleFO2PDF.java</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -577,7 +739,7 @@
<div align="center">
<img class="figure" alt="Example XSL-FO to PDF"
src="images/EmbeddingExampleFO2PDF.png"></div>
</div>
-<a name="N102B9"></a><a name="ExampleXML2FO.java"></a>
+<a name="N10355"></a><a name="ExampleXML2FO"></a>
<h4>ExampleXML2FO.java</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -589,7 +751,7 @@
<div align="center">
<img class="figure" alt="Example XML to XSL-FO"
src="images/EmbeddingExampleXML2FO.png"></div>
</div>
-<a name="N102CB"></a><a name="ExampleXML2PDF.java"></a>
+<a name="N10367"></a><a name="ExampleXML2PDF"></a>
<h4>ExampleXML2PDF.java</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -609,7 +771,7 @@
performance is significantly higher with SAX.
</p>
</div>
-<a name="N102DC"></a><a name="ExampleObj2XML.java"></a>
+<a name="N10378"></a><a name="ExampleObj2XML"></a>
<h4>ExampleObj2XML.java</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -642,7 +804,7 @@
<a target="_blank"
href="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/3_generate.html">An
older JAXP tutorial</a>).
</p>
</div>
-<a name="N102F7"></a><a name="ExampleObj2PDF.java"></a>
+<a name="N10393"></a><a name="ExampleObj2PDF"></a>
<h4>ExampleObj2PDF.java</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -655,7 +817,7 @@
<div align="center">
<img class="figure" alt="Example Java object to PDF (via XML and XSL-FO)"
src="images/EmbeddingExampleObj2PDF.png"></div>
</div>
-<a name="N10305"></a><a name="Final+notes"></a>
+<a name="N103A1"></a><a name="example-notes"></a>
<h4>Final notes</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
1.6 +791 -282 xml-site/targets/fop/embedding.pdf
<<Binary file>>
1.26 +15 -17 xml-site/targets/fop/examples.html
Index: examples.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/examples.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- examples.html 7 Apr 2003 18:54:41 -0000 1.25
+++ examples.html 14 Apr 2003 23:35:40 -0000 1.26
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.21 +16 -18 xml-site/targets/fop/extensions.html
Index: extensions.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/extensions.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- extensions.html 7 Apr 2003 18:54:41 -0000 1.20
+++ extensions.html 14 Apr 2003 23:35:40 -0000 1.21
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<span class="sel"><font color="#ffcc00">Extensions</font></span>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<span class="sel"><font color="#ffcc00">Extensions</font></span>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -330,7 +328,7 @@
<h4>SVG</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
-Please see the <a href="svg.html">SVG page</a> for more details.
+Please see the <a href="svg.html#svg">SVG documentation</a> for more details.
</p>
</div>
<a name="N101D8"></a><a name="Bookmarks"></a>
1.6 +128 -115 xml-site/targets/fop/extensions.pdf
<<Binary file>>
1.24 +249 -843 xml-site/targets/fop/faq.html
Index: faq.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/faq.html,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- faq.html 7 Apr 2003 18:54:41 -0000 1.23
+++ faq.html 14 Apr 2003 23:35:40 -0000 1.24
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -297,25 +295,25 @@
<div style="margin-left: 0 ; border: 2px">
<ul>
<li>
-<a name="part_general-menu"></a><a href="#part_general">1. General
questions</a>
+<a name="part-general-menu"></a><a href="#part-general">1. General
questions</a>
<ul>
<li>
-<a name="fop_general-menu"></a><a href="#fop_general">What is FOP?</a>
+<a name="fop-general-menu"></a><a href="#fop-general">What is FOP?</a>
</li>
<li>
-<a name="fop_functions-menu"></a><a href="#fop_functions">What can I do with
FOP?</a>
+<a name="fop-functions-menu"></a><a href="#fop-functions">What can I do with
FOP?</a>
</li>
<li>
-<a name="fop_acronym-menu"></a><a href="#fop_acronym">What does "FOP" stand
for?</a>
+<a name="fop-acronym-menu"></a><a href="#fop-acronym">What does "FOP" stand
for?</a>
</li>
<li>
-<a name="fop_other_apache-menu"></a><a href="#fop_other_apache">How does FOP
interact with other Apache Projects?</a>
+<a name="fop-other-apache-menu"></a><a href="#fop-other-apache">How does FOP
interact with other Apache Projects?</a>
</li>
<li>
-<a name="xsl_def-menu"></a><a href="#xsl_def">What is XSL?</a>
+<a name="xsl-def-menu"></a><a href="#xsl-def">What is XSL?</a>
</li>
<li>
-<a name="XSLFO-menu"></a><a href="#XSLFO">What is XSLFO?</a>
+<a name="xslfo-menu"></a><a href="#xslfo">What is XSL-FO?</a>
</li>
<li>
<a name="XSLT-menu"></a><a href="#XSLT">What is XSLT?</a>
@@ -326,10 +324,10 @@
</ul>
</li>
<li>
-<a name="part_running-menu"></a><a href="#part_running">2. Problems running
FOP</a>
+<a name="part-running-menu"></a><a href="#part-running">2. Problems running
FOP</a>
<ul>
<li>
-<a name="no_page_master-menu"></a><a href="#no_page_master">I get the error:
[ERROR]: 'master-reference' for
+<a name="no-page-master-menu"></a><a href="#no-page-master">I get the error:
[ERROR]: 'master-reference' for
'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'</a>
</li>
@@ -353,159 +351,156 @@
<a name="not-implemented-menu"></a><a href="#not-implemented">FOP returns
the message "[ERROR] <em>object|property - 'x'</em> is not implemented yet."
When will it be implemented?</a>
</li>
<li>
-<a name="fop_hangs-menu"></a><a href="#fop_hangs">FOP hangs. FOP does not
exit.</a>
+<a name="fop-hangs-menu"></a><a href="#fop-hangs">FOP hangs. FOP does not
exit.</a>
</li>
<li>
<a name="boxoverflow-menu"></a><a href="#boxoverflow">FOP runs forever,
writing lots of ">" to the log.</a>
</li>
<li>
-<a name="cannot_find_external-graphics-menu"></a><a
href="#cannot_find_external-graphics">FOP cannot find a file for
fo:external-graphics.</a>
+<a name="cannot-find-external-graphics-menu"></a><a
href="#cannot-find-external-graphics">FOP cannot find a file for
fo:external-graphics.</a>
</li>
<li>
-<a name="fonts_not_found-menu"></a><a href="#fonts_not_found">FOP does not
find my fonts.</a>
+<a name="fonts-not-found-menu"></a><a href="#fonts-not-found">FOP does not
find my fonts.</a>
</li>
</ul>
</li>
<li>
-<a name="part_output-menu"></a><a href="#part_output">3. Problems with FOP
output</a>
+<a name="part-output-menu"></a><a href="#part-output">3. Problems with FOP
output</a>
<ul>
<li>
-<a name="blank_page_between_page_sequences-menu"></a><a
href="#blank_page_between_page_sequences">Why does FOP insert a blank page
between my page sequences?</a>
+<a name="blank-page-between-page-sequences-menu"></a><a
href="#blank-page-between-page-sequences">Why does FOP insert a blank page
between my page sequences?</a>
</li>
<li>
-<a name="png_fails-menu"></a><a href="#png_fails">My PNG images don't
work.</a>
+<a name="png-fails-menu"></a><a href="#png-fails">My graphical images do not
work properly.</a>
</li>
<li>
<a name="keep-with-menu"></a><a href="#keep-with">Keep-with-next,
keep-with-previous, keep-together
don't work.</a>
</li>
<li>
-<a name="table_missing-menu"></a><a href="#table_missing">My tables are
missing, or missing their content.</a>
+<a name="table-missing-menu"></a><a href="#table-missing">My tables are
missing, or missing their content.</a>
</li>
<li>
-<a name="cells_overflow-menu"></a><a href="#cells_overflow">Text overflowing
table cells and the like is not clipped. Long
+<a name="cells-overflow-menu"></a><a href="#cells-overflow">Text overflowing
table cells and the like is not clipped. Long
text flows into adjacent cells/block, obscuring stuff there.</a>
</li>
<li>
-<a name="page_number_align-menu"></a><a href="#page_number_align">Page
numbers are not properly right aligned.</a>
+<a name="page-number-align-menu"></a><a href="#page-number-align">Page
numbers are not properly right aligned.</a>
</li>
<li>
-<a name="graphic_not_displayed-menu"></a><a href="#graphic_not_displayed">A
graphic is not displayed.</a>
+<a name="graphic-not-displayed-menu"></a><a href="#graphic-not-displayed">A
graphic is not displayed.</a>
</li>
<li>
-<a name="hypenation_fails-menu"></a><a href="#hypenation_fails">Hyphenation
does not work.</a>
+<a name="hypenation-fails-menu"></a><a href="#hypenation-fails">Hyphenation
does not work.</a>
</li>
</ul>
</li>
<li>
-<a name="part_embedding-menu"></a><a href="#part_embedding">4. Embedding
FOP. Using FOP in a servlet.</a>
+<a name="part-embedding-menu"></a><a href="#part-embedding">4. Embedding
FOP. Using FOP in a servlet.</a>
<ul>
<li>
<a name="servlet-menu"></a><a href="#servlet">How do I use FOP in a
servlet?</a>
</li>
<li>
-<a name="servlet_with_xslt-menu"></a><a href="#servlet_with_xslt">How do I
use FOP in a servlet with an XSLT
+<a name="servlet-with-xslt-menu"></a><a href="#servlet-with-xslt">How do I
use FOP in a servlet with an XSLT
transformation?</a>
</li>
<li>
-<a name="servlet_xslt_params-menu"></a><a href="#servlet_xslt_params">How do
I pass parameters to the XSLT transformation?</a>
+<a name="servlet-xslt-params-menu"></a><a href="#servlet-xslt-params">How do
I pass parameters to the XSLT transformation?</a>
</li>
<li>
-<a name="servlet_nonstd_fonts-menu"></a><a href="#servlet_nonstd_fonts">How
do I use my own fonts when running FOP from a
+<a name="servlet-nonstd-fonts-menu"></a><a href="#servlet-nonstd-fonts">How
do I use my own fonts when running FOP from a
servlet?</a>
</li>
<li>
-<a name="servlet_baseDir-menu"></a><a href="#servlet_baseDir">How do I set
the baseDir property in a servlet environment?</a>
+<a name="servlet-baseDir-menu"></a><a href="#servlet-baseDir">How do I set
the baseDir property in a servlet environment?</a>
</li>
<li>
<a name="usercfg-menu"></a><a href="#usercfg">How do I use a user
configuration file from a servlet?</a>
</li>
<li>
-<a name="servlet_NoClassDefFound-menu"></a><a
href="#servlet_NoClassDefFound">I keep getting NoClassDefFound and other
exceptions. How do I
+<a name="servlet-NoClassDefFound-menu"></a><a
href="#servlet-NoClassDefFound">I keep getting NoClassDefFound and other
exceptions. How do I
get FOP working for various servlet engines?</a>
</li>
<li>
-<a name="websphere_3_5-menu"></a><a href="#websphere_3_5">FOP in IBM
Websphere 3.5</a>
-</li>
-<li>
<a name="multithreaded-menu"></a><a href="#multithreaded">Can FOP be used in
multithreaded environments?</a>
</li>
</ul>
</li>
<li>
-<a name="part_svg-menu"></a><a href="#part_svg">5. Batik/SVG specific
questions</a>
+<a name="part-svg-menu"></a><a href="#part-svg">5. Batik/SVG specific
questions</a>
<ul>
<li>
-<a name="svg_text-menu"></a><a href="#svg_text">The rendering of SVG text in
my PDF is of poor quality.
+<a name="svg-text-menu"></a><a href="#svg-text">The rendering of SVG text in
my PDF is of poor quality.
Can I control this?</a>
</li>
<li>
-<a name="svg_headless-menu"></a><a href="#svg_headless">How do I use FOP
with SVG on headless servers?</a>
+<a name="svg-headless-menu"></a><a href="#svg-headless">How do I use FOP
with SVG on headless servers?</a>
</li>
<li>
<a name="svghangs-menu"></a><a href="#svghangs">FOP does not exit if a SVG
is included.</a>
</li>
<li>
-<a name="svg_url-menu"></a><a href="#svg_url">I have problems with SVG
referring to gradients etc. using
+<a name="svg-url-menu"></a><a href="#svg-url">I have problems with SVG
referring to gradients etc. using
"uri(#stuff)". I get a MalformedURLException.</a>
</li>
</ul>
</li>
<li>
-<a name="part_pdf-menu"></a><a href="#part_pdf">6. PDF specific (includes
Acrobat peculiarities)</a>
+<a name="part-pdf-menu"></a><a href="#part-pdf">6. PDF specific (includes
Acrobat peculiarities)</a>
<ul>
<li>
-<a name="pdf_embed_font-menu"></a><a href="#pdf_embed_font">How do I embed
fonts in PDF?</a>
+<a name="pdf-embed-font-menu"></a><a href="#pdf-embed-font">How do I embed
fonts in PDF?</a>
</li>
<li>
-<a name="pdf_characters-menu"></a><a href="#pdf_characters">Some characters
are not displayed, or displayed incorrectly, or
+<a name="pdf-characters-menu"></a><a href="#pdf-characters">Some characters
are not displayed, or displayed incorrectly, or
displayed as “#”.</a>
</li>
<li>
-<a name="PDF-postprocess-menu"></a><a href="#PDF-postprocess">What tools are
available for post-processing my PDF document?</a>
+<a name="pdf-postprocess-menu"></a><a href="#pdf-postprocess">What tools are
available for post-processing my PDF document?</a>
</li>
<li>
<a name="pdf-security-menu"></a><a href="#pdf-security">How do I add
security features (encryption, disable printing)
to my PDF document?</a>
</li>
<li>
-<a name="pdf_doc_properties-menu"></a><a href="#pdf_doc_properties">How do I
add document properties (title, author, etc.) to my
+<a name="pdf-doc-properties-menu"></a><a href="#pdf-doc-properties">How do I
add document properties (title, author, etc.) to my
PDF document?</a>
</li>
<li>
-<a name="pdf_watermark-menu"></a><a href="#pdf_watermark">How do I add
watermarks to my PDF document?</a>
+<a name="pdf-watermark-menu"></a><a href="#pdf-watermark">How do I add
watermarks to my PDF document?</a>
</li>
<li>
-<a name="pdf_print_contortion-menu"></a><a href="#pdf_print_contortion">The
PDF is printed contorted!</a>
+<a name="pdf-print-contortion-menu"></a><a href="#pdf-print-contortion">The
PDF is printed contorted!</a>
</li>
<li>
-<a name="pdf_bookmark_display-menu"></a><a href="#pdf_bookmark_display">How
do I control the Acrobat bookmark display?</a>
+<a name="pdf-bookmark-display-menu"></a><a href="#pdf-bookmark-display">How
do I control the Acrobat bookmark display?</a>
</li>
</ul>
</li>
<li>
-<a name="part_iex-menu"></a><a href="#part_iex">7. IEx specific stuff</a>
+<a name="part-iex-menu"></a><a href="#part-iex">7. IEx specific stuff</a>
<ul>
<li>
-<a name="iex_servlet_multiple-menu"></a><a href="#iex_servlet_multiple">The
FOP servlet is called multiple times!</a>
+<a name="iex-servlet-multiple-menu"></a><a href="#iex-servlet-multiple">The
FOP servlet is called multiple times!</a>
</li>
<li>
-<a name="iex_pdf_print_from_browser-menu"></a><a
href="#iex_pdf_print_from_browser">How do I print PDF directly from the
browser?</a>
+<a name="iex-pdf-print-from-browser-menu"></a><a
href="#iex-pdf-print-from-browser">How do I print PDF directly from the
browser?</a>
</li>
</ul>
</li>
<li>
-<a name="part_input-menu"></a><a href="#part_input">8. More general
questions regarding XSLT and XSLFO and basic XML</a>
+<a name="part-input-menu"></a><a href="#part-input">8. General questions
regarding XSLT, XSLFO, and basic XML</a>
<ul>
<li>
-<a name="fo_center-menu"></a><a href="#fo_center">(FO) How do I vertically
center an image or a table (or
+<a name="fo-center-menu"></a><a href="#fo-center">(FO) How do I vertically
center an image or a table (or
whatever)?</a>
</li>
<li>
-<a name="fo_center_table_horizon-menu"></a><a
href="#fo_center_table_horizon">(FO) How do I center a table horizontally?</a>
+<a name="fo-center-table-horizon-menu"></a><a
href="#fo-center-table-horizon">(FO) How do I center a table horizontally?</a>
</li>
<li>
-<a name="fo_page_outer-menu"></a><a href="#fo_page_outer">(FO) How to get
page numbers printed on the "outer side" of the
+<a name="fo-page-outer-menu"></a><a href="#fo-page-outer">(FO) How to get
page numbers printed on the "outer side" of the
page (for books, for example)?</a>
</li>
<li>
@@ -513,56 +508,53 @@
pages?</a>
</li>
<li>
-<a name="fo_first_page_header-menu"></a><a href="#fo_first_page_header">(FO)
How do I get a special header on the first page?</a>
+<a name="fo-first-page-header-menu"></a><a href="#fo-first-page-header">(FO)
How do I get a special header on the first page?</a>
</li>
<li>
-<a name="fo_omit_headers-menu"></a><a href="#fo_omit_headers">(FO) How do I
omit my headers on a blank page? How do I write
+<a name="fo-omit-headers-menu"></a><a href="#fo-omit-headers">(FO) How do I
omit my headers on a blank page? How do I write
"This page is left blank" on an intentionally blank page?</a>
</li>
<li>
-<a name="fo_special_symbols-menu"></a><a href="#fo_special_symbols">(FO) How
do I print an Euro sign, a checkbox or other some other
+<a name="fo-special-symbols-menu"></a><a href="#fo-special-symbols">(FO) How
do I print an Euro sign, a checkbox or other some other
special symbols?</a>
</li>
<li>
-<a name="fo_preformat-menu"></a><a href="#fo_preformat">(FO) How do I keep
linebreaks and hard spaces? How do I get
+<a name="fo-preformat-menu"></a><a href="#fo-preformat">(FO) How do I keep
linebreaks and hard spaces? How do I get
preformatted text displayed as expected?</a>
</li>
<li>
-<a name="fo_total_pages-menu"></a><a href="#fo_total_pages">(FO) How do I
print the total number of pages, like in "page 1
+<a name="fo-total-pages-menu"></a><a href="#fo-total-pages">(FO) How do I
print the total number of pages, for example "page 1
of 12"</a>
</li>
<li>
-<a name="fo_region_overlap-menu"></a><a href="#fo_region_overlap">(FO) The
header overlaps body content. The body extends into
+<a name="fo-region-overlap-menu"></a><a href="#fo-region-overlap">(FO) The
header overlaps body content. The body extends into
the footer.</a>
</li>
<li>
-<a name="fo_lines-menu"></a><a href="#fo_lines">(FO) How do I get lines in
the document, as separators, side
+<a name="fo-lines-menu"></a><a href="#fo-lines">(FO) How do I get lines in
the document, as separators, side
bars or folding marks?</a>
</li>
<li>
-<a name="FO-validate-menu"></a><a href="#FO-validate">(FO) How do I validate
my FO document?</a>
+<a name="fo-validate-menu"></a><a href="#fo-validate">(FO) How do I validate
my FO document?</a>
</li>
<li>
-<a name="xml_non-breaking_space-menu"></a><a
href="#xml_non-breaking_space">(XML) There are complaints about <span
class="codefrag">&nbsp;</span>. How
- do I get a non-breaking space in FO?</a>
+<a name="xml-non-breaking-space-menu"></a><a
href="#xml-non-breaking-space">(XML) How do I get a non-breaking space in FO?
There are complaints about <span class="codefrag">&nbsp;</span>.</a>
</li>
<li>
-<a name="xml_undefined_entities-menu"></a><a
href="#xml_undefined_entities">(XML) There are complaints about undefined
entities, for example
- about <span class="codefrag">&uuml;</span> which used to work in
HTML. How do I enter
- special characters like in HTML?</a>
+<a name="xml-undefined-entities-menu"></a><a
href="#xml-undefined-entities">(XML) How do I enter special characters in XML?
There are complaints about undefined entities, such as <span
class="codefrag">&uuml;</span>, which work in HTML. </a>
</li>
<li>
-<a name="xml_illegal_entities-menu"></a><a
href="#xml_illegal_entities">(XML) There are complaints about illegal
characters and entities
+<a name="xml-illegal-entities-menu"></a><a
href="#xml-illegal-entities">(XML) There are complaints about illegal
characters and entities
in the input.</a>
</li>
<li>
-<a name="xml_illegal_chars-menu"></a><a href="#xml_illegal_chars">(XML)
There are complaints about illegal bytes or characters in
+<a name="xml-illegal-chars-menu"></a><a href="#xml-illegal-chars">(XML)
There are complaints about illegal bytes or characters in
the input. There are odd characters in the result.</a>
</li>
</ul>
</li>
<li>
-<a name="part_help-menu"></a><a href="#part_help">9. General suggestions.
How to solve problems.</a>
+<a name="part-help-menu"></a><a href="#part-help">9. General suggestions.
How to solve problems.</a>
<ul>
<li>
<a name="bugs-menu"></a><a href="#bugs">I think I have found a bug in FOP.
What should I do?</a>
@@ -575,14 +567,14 @@
</li>
</ul>
</div>
-<a name="N1019E"></a>
+<a name="N10199"></a>
<h3>Answers</h3>
<div style="margin-left: 0 ; border: 2px">
-<a name="N101A1"></a><a name="part_general"></a>
+<a name="N1019C"></a><a name="part-general"></a>
<h4>1. General questions</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N101A5"></a><a name="fop_general"></a>
-<h5>1.1. What is FOP?<span style="float: right"><a
href="#fop_general-menu">^</a></span>
+<a name="N101A0"></a><a name="fop-general"></a>
+<h5>1.1. What is FOP?<span style="float: right"><a
href="#fop-general-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -595,8 +587,8 @@
are supported, such as AWT, PCL, text and direct printing.
</p>
</div>
-<a name="N101B4"></a><a name="fop_functions"></a>
-<h5>1.2. What can I do with FOP?<span style="float: right"><a
href="#fop_functions-menu">^</a></span>
+<a name="N101AF"></a><a name="fop-functions"></a>
+<h5>1.2. What can I do with FOP?<span style="float: right"><a
href="#fop-functions-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -612,8 +604,8 @@
The library can be used in servlets and other Java applications.
</p>
</div>
-<a name="N101C2"></a><a name="fop_acronym"></a>
-<h5>1.3. What does "FOP" stand for?<span style="float: right"><a
href="#fop_acronym-menu">^</a></span>
+<a name="N101BD"></a><a name="fop-acronym"></a>
+<h5>1.3. What does "FOP" stand for?<span style="float: right"><a
href="#fop-acronym-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -621,8 +613,8 @@
<strong>O</strong>bject <strong>P</strong>rocessor
</p>
</div>
-<a name="N101D3"></a><a name="fop_other_apache"></a>
-<h5>1.4. How does FOP interact with other Apache Projects?<span
style="float: right"><a href="#fop_other_apache-menu">^</a></span>
+<a name="N101CE"></a><a name="fop-other-apache"></a>
+<h5>1.4. How does FOP interact with other Apache Projects?<span
style="float: right"><a href="#fop-other-apache-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -636,8 +628,8 @@
image</a> into a PDF document.
</p>
</div>
-<a name="N101EA"></a><a name="xsl_def"></a>
-<h5>1.5. What is XSL?<span style="float: right"><a
href="#xsl_def-menu">^</a></span>
+<a name="N101E5"></a><a name="xsl-def"></a>
+<h5>1.5. What is XSL?<span style="float: right"><a
href="#xsl-def-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -647,8 +639,8 @@
<strong>L</strong>anguage.
</p>
</div>
-<a name="N10203"></a><a name="XSLFO"></a>
-<h5>1.6. What is XSLFO?<span style="float: right"><a
href="#XSLFO-menu">^</a></span>
+<a name="N101FE"></a><a name="xslfo"></a>
+<h5>1.6. What is XSL-FO?<span style="float: right"><a
href="#xslfo-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -670,7 +662,7 @@
Synonyms: XSL FO, XSL (FO), XSL:FO, XSL-FO, Formatting Objects
</p>
</div>
-<a name="N1021B"></a><a name="XSLT"></a>
+<a name="N10216"></a><a name="XSLT"></a>
<h5>1.7. What is XSLT?<span style="float: right"><a
href="#XSLT-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -684,7 +676,7 @@
Synonyms: XSL transformation, XSL:T, XSL style sheet.
</p>
</div>
-<a name="N10229"></a><a name="contribute"></a>
+<a name="N10224"></a><a name="contribute"></a>
<h5>1.8. How can I contribute?<span style="float: right"><a
href="#contribute-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -693,13 +685,13 @@
</p>
</div>
</div>
-<a name="N10235"></a><a name="part_running"></a>
+<a name="N10230"></a><a name="part-running"></a>
<h4>2. Problems running FOP</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N10239"></a><a name="no_page_master"></a>
+<a name="N10234"></a><a name="no-page-master"></a>
<h5>2.1. I get the error: [ERROR]: 'master-reference' for
'fo:page-sequence'matches no 'simple-page-master' or
- 'page-sequence-master'<span style="float: right"><a
href="#no_page_master-menu">^</a></span>
+ 'page-sequence-master'<span style="float: right"><a
href="#no-page-master-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -717,7 +709,7 @@
See also <a href="relnotes.html">release notes</a>.
</p>
</div>
-<a name="N1024C"></a><a name="NoClassDefFound"></a>
+<a name="N10247"></a><a name="NoClassDefFound"></a>
<h5>2.2. I get a NoClassDefFound exception.<span style="float: right"><a
href="#NoClassDefFound-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -744,7 +736,7 @@
Java application, check the classpath of the application.
</p>
</div>
-<a name="N10263"></a><a name="NoSuchMethodException"></a>
+<a name="N1025E"></a><a name="NoSuchMethodException"></a>
<h5>2.3. I get a NoSuchMethodException or a NoSuchFieldException
exception.<span style="float: right"><a
href="#NoSuchMethodException-menu">^</a></span>
</h5>
@@ -760,7 +752,7 @@
use a more recent version of Batik.
</p>
</div>
-<a name="N1026E"></a><a name="OutOfMemoryException"></a>
+<a name="N10269"></a><a name="OutOfMemoryException"></a>
<h5>2.4. I get an OutOfMemoryException.<span style="float: right"><a
href="#OutOfMemoryException-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -835,7 +827,7 @@
ongoing effort, partially addressed in the <a
href="dev/index.html">redesign</a>.
</p>
</div>
-<a name="N102A1"></a><a name="MalformedURLException"></a>
+<a name="N1029C"></a><a name="MalformedURLException"></a>
<h5>2.5. I get a MalformedURLException.<span style="float: right"><a
href="#MalformedURLException-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -865,7 +857,7 @@
URL.
</p>
</div>
-<a name="N102D1"></a><a name="NullPointerException"></a>
+<a name="N102CC"></a><a name="NullPointerException"></a>
<h5>2.6. I get an "[ERROR]: null", or a NullPointerException.<span
style="float: right"><a href="#NullPointerException-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -896,14 +888,14 @@
see more detailed information.
</p>
</div>
-<a name="N102E6"></a><a name="not-implemented"></a>
+<a name="N102E1"></a><a name="not-implemented"></a>
<h5>2.7. FOP returns the message "[ERROR] object|property - 'x' is not
implemented yet." When will it be implemented?<span style="float: right"><a
href="#not-implemented-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>See the article "<a href="gethelp.html#compliance">Review FOP's Standards
Compliance</a>".</p>
</div>
-<a name="N102F5"></a><a name="fop_hangs"></a>
-<h5>2.8. FOP hangs. FOP does not exit.<span style="float: right"><a
href="#fop_hangs-menu">^</a></span>
+<a name="N102F0"></a><a name="fop-hangs"></a>
+<h5>2.8. FOP hangs. FOP does not exit.<span style="float: right"><a
href="#fop-hangs-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -926,7 +918,7 @@
exec'ing FOP, use the library interface instead.
</p>
</div>
-<a name="N1030B"></a><a name="boxoverflow"></a>
+<a name="N10306"></a><a name="boxoverflow"></a>
<h5>2.9. FOP runs forever, writing lots of ">" to the log.<span
style="float: right"><a href="#boxoverflow-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -941,8 +933,8 @@
remove keep-with-* properties.
</p>
</div>
-<a name="N10313"></a><a name="cannot_find_external-graphics"></a>
-<h5>2.10. FOP cannot find a file for fo:external-graphics.<span
style="float: right"><a href="#cannot_find_external-graphics-menu">^</a></span>
+<a name="N1030E"></a><a name="cannot-find-external-graphics"></a>
+<h5>2.10. FOP cannot find a file for fo:external-graphics.<span
style="float: right"><a href="#cannot-find-external-graphics-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -958,8 +950,8 @@
working directory of the process which runs FOP.
</p>
</div>
-<a name="N10322"></a><a name="fonts_not_found"></a>
-<h5>2.11. FOP does not find my fonts.<span style="float: right"><a
href="#fonts_not_found-menu">^</a></span>
+<a name="N1031D"></a><a name="fonts-not-found"></a>
+<h5>2.11. FOP does not find my fonts.<span style="float: right"><a
href="#fonts-not-found-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -975,11 +967,11 @@
</p>
</div>
</div>
-<a name="N1032D"></a><a name="part_output"></a>
+<a name="N10328"></a><a name="part-output"></a>
<h4>3. Problems with FOP output</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N10331"></a><a name="blank_page_between_page_sequences"></a>
-<h5>3.1. Why does FOP insert a blank page between my page sequences?<span
style="float: right"><a
href="#blank_page_between_page_sequences-menu">^</a></span>
+<a name="N1032C"></a><a name="blank-page-between-page-sequences"></a>
+<h5>3.1. Why does FOP insert a blank page between my page sequences?<span
style="float: right"><a
href="#blank-page-between-page-sequences-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1002,25 +994,13 @@
<span class="codefrag">force-page-count="no-force"</span>.
</p>
</div>
-<a name="N10349"></a><a name="png_fails"></a>
-<h5>3.2. My PNG images don't work.<span style="float: right"><a
href="#png_fails-menu">^</a></span>
+<a name="N10344"></a><a name="png-fails"></a>
+<h5>3.2. My graphical images do not work properly.<span style="float:
right"><a href="#png-fails-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<p>
- The Jimi image library, which is by default used for processing
- images in PNG and other formats, was removed from the distribution
- for licensing reasons. You have to <a target="_blank"
href="http://java.sun.com/products/jimi">download</a>
- and install it by yourself.
- </p>
-<p>
- Extract the file "JimiProClasses.zip" from the archive you've
downloaded, rename it to "jimi-1.0.jar" and move it to FOP's lib directory.
- </p>
-<p>
- An alternative to Jimi is to use Sun's JAI. It is much faster, but
- not available for all platforms.
- </p>
+<p>See <a href="svg.html">Graphical Formats</a>.</p>
</div>
-<a name="N1035B"></a><a name="keep-with"></a>
+<a name="N10350"></a><a name="keep-with"></a>
<h5>3.3. Keep-with-next, keep-with-previous, keep-together
don't work.<span style="float: right"><a
href="#keep-with-menu">^</a></span>
</h5>
@@ -1055,8 +1035,8 @@
</fo:table-body>
</fo:table></pre>
</div>
-<a name="N1036D"></a><a name="table_missing"></a>
-<h5>3.4. My tables are missing, or missing their content.<span style="float:
right"><a href="#table_missing-menu">^</a></span>
+<a name="N10362"></a><a name="table-missing"></a>
+<h5>3.4. My tables are missing, or missing their content.<span style="float:
right"><a href="#table-missing-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1071,9 +1051,9 @@
fo:table-with-caption elements, so watch out.
</p>
</div>
-<a name="N10378"></a><a name="cells_overflow"></a>
+<a name="N1036D"></a><a name="cells-overflow"></a>
<h5>3.5. Text overflowing table cells and the like is not clipped. Long
- text flows into adjacent cells/block, obscuring stuff there.<span
style="float: right"><a href="#cells_overflow-menu">^</a></span>
+ text flows into adjacent cells/block, obscuring stuff there.<span
style="float: right"><a href="#cells-overflow-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1105,8 +1085,8 @@
archive</a> for how to perform these tasks.
</p>
</div>
-<a name="N1039A"></a><a name="page_number_align"></a>
-<h5>3.6. Page numbers are not properly right aligned.<span style="float:
right"><a href="#page_number_align-menu">^</a></span>
+<a name="N1038F"></a><a name="page-number-align"></a>
+<h5>3.6. Page numbers are not properly right aligned.<span style="float:
right"><a href="#page-number-align-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1122,8 +1102,8 @@
problem completely.
</p>
</div>
-<a name="N103A5"></a><a name="graphic_not_displayed"></a>
-<h5>3.7. A graphic is not displayed.<span style="float: right"><a
href="#graphic_not_displayed-menu">^</a></span>
+<a name="N1039A"></a><a name="graphic-not-displayed"></a>
+<h5>3.7. A graphic is not displayed.<span style="float: right"><a
href="#graphic-not-displayed-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1159,8 +1139,8 @@
</ul>
</div>
-<a name="N103BF"></a><a name="hypenation_fails"></a>
-<h5>3.8. Hyphenation does not work.<span style="float: right"><a
href="#hypenation_fails-menu">^</a></span>
+<a name="N103B4"></a><a name="hypenation-fails"></a>
+<h5>3.8. Hyphenation does not work.<span style="float: right"><a
href="#hypenation-fails-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1170,216 +1150,90 @@
</p>
</div>
</div>
-<a name="N103C7"></a><a name="part_embedding"></a>
+<a name="N103BC"></a><a name="part-embedding"></a>
<h4>4. Embedding FOP. Using FOP in a servlet.</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N103CB"></a><a name="servlet"></a>
+<a name="N103C0"></a><a name="servlet"></a>
<h5>4.1. How do I use FOP in a servlet?<span style="float: right"><a
href="#servlet-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<p>Look at the servlet example.</p>
<p>
- A rather minimal code snippet to demonstrate the basics:
- </p>
-<pre class="code">response.setContentType("application/pdf");
-Driver driver=new Driver( new InputSource("foo.fo"),
- response.getOutputStream());
-driver.setRenderer(Driver.RENDER_PDF);
-driver.run();</pre>
-<p>
- Caveat: Internet Explorer will not automatically show the PDF.
Thats a
- well known IEx problem, not with the servlet. You can download the
PDF
- with IEx and view it later. There are other problems with this
code.
- </p>
-<p>
- Please look into <a href="embedding.html">Embedding FOP</a>
- for all kinds of details.
+ See <a href="embedding.html#servlet">Using FOP in a Servlet</a>.
</p>
</div>
-<a name="N103E4"></a><a name="servlet_with_xslt"></a>
+<a name="N103CC"></a><a name="servlet-with-xslt"></a>
<h5>4.2. How do I use FOP in a servlet with an XSLT
- transformation?<span style="float: right"><a
href="#servlet_with_xslt-menu">^</a></span>
+ transformation?<span style="float: right"><a
href="#servlet-with-xslt-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Use the TraxInputHandler if both the source XML and XSL are read
from
- files.
- </p>
-<p>
- A demonstration:
- </p>
-<pre class="code">response.setContentType("application/pdf");
-XSLTInputHandler input
- =new XSLTInputHandler(new File("foo.xml"), new File("foo.xsl"));
-Driver driver=new Driver();
-driver.setOutputStream(response.getOutputStream());
-driver.setRenderer(Driver.RENDER_PDF);
-driver.render(input.getParser(), input.getInputSource());</pre>
-<p>
- This minimal code snippet has the same problems as the one from the
- question above. Please inform yourself about the details.
- </p>
-<p>
- If your source XML is generated on the fly, for example from a
- database, a web service, or another servlet, you have to create a
- transformer object explicitely and use a SAX event stream to feed
the
- transformation result into FOP.
- </p>
-<p>
- A demonstration:
- </p>
-<pre class="code">response.setContentType("application/pdf");
-Driver driver =new Driver();
-driver.setOutputStream(response.getOutputStream());
-driver.setRenderer(Driver.RENDER_PDF);
-Transformer transformer=TransformerFactory.newInstance()
- .newTransformer(new StreamSource("foo.xsl"));
-transformer.transform(xmlsource, new
SAXResult(driver.getContentHandler()));</pre>
-<p>
- You don't have to call run() or render() on the driver object.
- </p>
-<p>
- The <span class="codefrag">xmlsource</span> is a placeholder for
your actual XML
- source. You can supply a <span class="codefrag">new StreamSource(
new
- StringReader(xmlstring))</span> if you have to read the XML from a
- string. Constructing an XML string and reparse it is not always a
- good idea, consider to use a SAXSource if you generate your XML.
You
- can, of course, supply a DOMSource or whatever you like. You can
also
- use dynamically generated XSL if you want to.
- </p>
-<p>
- Because you have an explicit transformer object, you can set
- parameters for the transformation run too.
+ See <a href="embedding.html#servlet-transform">Using FOP in a
Servlet with XSLT Transformation</a>.
</p>
</div>
-<a name="N1040F"></a><a name="servlet_xslt_params"></a>
-<h5>4.3. How do I pass parameters to the XSLT transformation?<span
style="float: right"><a href="#servlet_xslt_params-menu">^</a></span>
+<a name="N103D8"></a><a name="servlet-xslt-params"></a>
+<h5>4.3. How do I pass parameters to the XSLT transformation?<span
style="float: right"><a href="#servlet-xslt-params-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- See the end of the answer for the question above.
+ See <a href="embedding.html#servlet-transform">Using FOP in a
Servlet with XSLT Transformation</a>.
</p>
</div>
-<a name="N10417"></a><a name="servlet_nonstd_fonts"></a>
+<a name="N103E4"></a><a name="servlet-nonstd-fonts"></a>
<h5>4.4. How do I use my own fonts when running FOP from a
- servlet?<span style="float: right"><a
href="#servlet_nonstd_fonts-menu">^</a></span>
+ servlet?<span style="float: right"><a
href="#servlet-nonstd-fonts-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Declare the fonts in the <span
class="codefrag">userconfig.xml</span> file as
- usual. See <a href="#usercfg">loading the user configuration
- file</a> for further steps.
+ Declare the fonts in the <span
class="codefrag">userconfig.xml</span> file as usual.
+See <a href="#usercfg">loading the user configuration file</a> for further
details.
</p>
</div>
-<a name="N10426"></a><a name="servlet_baseDir"></a>
-<h5>4.5. How do I set the baseDir property in a servlet environment?<span
style="float: right"><a href="#servlet_baseDir-menu">^</a></span>
+<a name="N103F3"></a><a name="servlet-baseDir"></a>
+<h5>4.5. How do I set the baseDir property in a servlet environment?<span
style="float: right"><a href="#servlet-baseDir-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Use:
- </p>
-<pre
class="code">org.apache.fop.configuration.Configuration.put("baseDir","/my/base/dir");</pre>
-<p>
- or
- </p>
-<pre
class="code">org.apache.fop.configuration.Configuration.put("baseDir","C:\my\base\dir");</pre>
-<p>
- See <a href="#usercfg">using a user configuration file</a>
- for caveats.
+ See <a href="embedding.html#config-internal">Setting the
Configuration Programmatically</a>.
</p>
</div>
-<a name="N10440"></a><a name="usercfg"></a>
+<a name="N103FF"></a><a name="usercfg"></a>
<h5>4.6. How do I use a user configuration file from a servlet?<span
style="float: right"><a href="#usercfg-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Use:
- </p>
-<pre class="code">org.apache.fop.apps.Options options = new Options(new
File("userconfig.xml"));</pre>
-<p>
- No further reference to the <span class="codefrag">options</span>
variable is
- necessary. It is recommended to load the user configuration file
only
- once, preferably in the <span class="codefrag">init()</span>
method of the servlet. If
- you have multiple servlets running FOP, or if you have to change
the
- configuration often, it is best to place the configuration changing
- code and the FOP driver call into a synchronized method, or
perhaps a
- singleton class, in order to avoid problems in multithreaded
- environments.
+ See <a href="embedding.html#config-external">Using a Configuration
File in an Embedded App</a>.
</p>
</div>
-<a name="N10455"></a><a name="servlet_NoClassDefFound"></a>
+<a name="N1040B"></a><a name="servlet-NoClassDefFound"></a>
<h5>4.7. I keep getting NoClassDefFound and other exceptions. How do I
- get FOP working for various servlet engines?<span style="float:
right"><a href="#servlet_NoClassDefFound-menu">^</a></span>
-</h5>
-<div style="margin-left: 15 ; border: 2px">
-<p>
- There are various classpath issues, and possible conflicts with
- existing XML/XSLT libraries. Because servlet containers often use
- their own classloaders for loading webapps, bugs and security
problems
- can be bothersome as well.
- </p>
-<p>
- Tomcat comes with detailed instructions for installing FOP and
Cocoon,
- check the documentation. There are known bugs to be circumvented,
in
- particular in Tomcat 4.0.3.
- </p>
-<p>
- Websphere 3.5: See next question.
- </p>
-</div>
-<a name="N10463"></a><a name="websphere_3_5"></a>
-<h5>4.8. FOP in IBM Websphere 3.5<span style="float: right"><a
href="#websphere_3_5-menu">^</a></span>
+ get FOP working for various servlet engines?<span style="float:
right"><a href="#servlet-NoClassDefFound-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Put a copy of a working parser in some directory where WebSphere
can
- access it, for example, if /usr/webapps/yourapp/servlets is the
- classpath for your servlets, copy the Xerces jar into it (any other
- directory would also be fine). Do not add the jar to the servlet
- classpath, but add it to the classpath of the application server
which
- contains your web application. In the WebSphere administration
- console, click on the "environment" button in the "general" tab.
Fill
- CLASSPATH in the "variable name" box and
- /usr/webapps/yourapp/servlets/Xerces.jar (or whatever your complete
- path is) in the value box, press "OK", then apply the change and
- restart the application server.
+ See <a href="embedding.html#servlet-engine">Servlet Engines</a>.
</p>
</div>
-<a name="N1046B"></a><a name="multithreaded"></a>
-<h5>4.9. Can FOP be used in multithreaded environments?<span style="float:
right"><a href="#multithreaded-menu">^</a></span>
+<a name="N10417"></a><a name="multithreaded"></a>
+<h5>4.8. Can FOP be used in multithreaded environments?<span style="float:
right"><a href="#multithreaded-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- FOP is not completely thread safe. At the very least you'll have to
- create a Driver object for every thread unless you prefer your
threads
- being blocked.
- </p>
-<p>
- Even though the relevant methods of the Driver object are
- synchronized, there are still problems because FOP uses static
- variables for configuration data and loading images. Be sure not
- to change the configuration data while there is a Driver object
- rendering. It is recommended to setup the configuration only
- once while initialising the servlet. If you have to change the
- configuration data more often, or if you have several servlets
- within the same webapp using FOP, consider implementing a
- singleton class encapsulating both the configuration settings
- and running FOP in synchronized methods.
+ See <a href="embedding.html#multithreading">Multithreading FOP</a>.
</p>
</div>
</div>
-<a name="N10476"></a><a name="part_svg"></a>
+<a name="N10423"></a><a name="part-svg"></a>
<h4>5. Batik/SVG specific questions</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N1047A"></a><a name="svg_text"></a>
+<a name="N10427"></a><a name="svg-text"></a>
<h5>5.1. The rendering of SVG text in my PDF is of poor quality.
-Can I control this?<span style="float: right"><a
href="#svg_text-menu">^</a></span>
+Can I control this?<span style="float: right"><a
href="#svg-text-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<p>See <a href="svg.html#pdf_text">Placing SVG Text into PDF</a>.</p>
+<p>See <a href="svg.html#svg-pdf-text">Placing SVG Text into PDF</a>.</p>
</div>
-<a name="N10486"></a><a name="svg_headless"></a>
-<h5>5.2. How do I use FOP with SVG on headless servers?<span style="float:
right"><a href="#svg_headless-menu">^</a></span>
+<a name="N10433"></a><a name="svg-headless"></a>
+<h5>5.2. How do I use FOP with SVG on headless servers?<span style="float:
right"><a href="#svg-headless-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1411,7 +1265,7 @@
</ul>
</div>
-<a name="N104A1"></a><a name="svghangs"></a>
+<a name="N1044E"></a><a name="svghangs"></a>
<h5>5.3. FOP does not exit if a SVG is included.<span style="float:
right"><a href="#svghangs-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -1421,9 +1275,9 @@
System.exit(0) somewhere.
</p>
</div>
-<a name="N104A9"></a><a name="svg_url"></a>
+<a name="N10456"></a><a name="svg-url"></a>
<h5>5.4. I have problems with SVG referring to gradients etc. using
- "uri(#stuff)". I get a MalformedURLException.<span style="float:
right"><a href="#svg_url-menu">^</a></span>
+ "uri(#stuff)". I get a MalformedURLException.<span style="float:
right"><a href="#svg-url-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1475,11 +1329,11 @@
</p>
</div>
</div>
-<a name="N104D5"></a><a name="part_pdf"></a>
+<a name="N10482"></a><a name="part-pdf"></a>
<h4>6. PDF specific (includes Acrobat peculiarities)</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N104D9"></a><a name="pdf_embed_font"></a>
-<h5>6.1. How do I embed fonts in PDF?<span style="float: right"><a
href="#pdf_embed_font-menu">^</a></span>
+<a name="N10486"></a><a name="pdf-embed-font"></a>
+<h5>6.1. How do I embed fonts in PDF?<span style="float: right"><a
href="#pdf-embed-font-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1487,9 +1341,9 @@
about embedding fonts.
</p>
</div>
-<a name="N104E5"></a><a name="pdf_characters"></a>
+<a name="N10492"></a><a name="pdf-characters"></a>
<h5>6.2. Some characters are not displayed, or displayed incorrectly, or
- displayed as “#”.<span style="float: right"><a
href="#pdf_characters-menu">^</a></span>
+ displayed as “#”.<span style="float: right"><a
href="#pdf-characters-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1512,129 +1366,37 @@
</p>
<pre class="code"><fo:inline
font-family="Helvetica">&#x2205;</fo:inline></pre>
</div>
-<a name="N10503"></a><a name="PDF-postprocess"></a>
-<h5>6.3. What tools are available for post-processing my PDF document?<span
style="float: right"><a href="#PDF-postprocess-menu">^</a></span>
+<a name="N104B0"></a><a name="pdf-postprocess"></a>
+<h5>6.3. What tools are available for post-processing my PDF document?<span
style="float: right"><a href="#pdf-postprocess-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<ul>
-
-<li>
- The most popular one that we are aware of 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. FOP and iText can be integrated
- into one Java application, see sample code for <a
href="#pdf-security">encryption</a>.
- The bad news is that iText swallows PDF bookmarks.
- </li>
-
-
-<li>
- You can use Adobe Acrobat (the full version, not the Reader) to
- process the file manually or with scripting that it supports.
- </li>
-
-</ul>
+<p>See <a href="output.html#pdf-postprocess">PDF Post-processing</a>.</p>
</div>
-<a name="N10519"></a><a name="pdf-security"></a>
+<a name="N104BC"></a><a name="pdf-security"></a>
<h5>6.4. How do I add security features (encryption, disable printing)
to my PDF document?<span style="float: right"><a
href="#pdf-security-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- FOP does not currently support this feature. Possible workarounds
- include those mentioned in the <a href="#PDF-postprocess">PDF
- Post-Processing FAQ</a>.
- </p>
-<p>
- Some sample code for encrypting a FOP generated PDF with iText to
- get you started:
- </p>
-<pre class="code">public static void main(String args[]) {
- try {
- ByteArrayOutputStream fopout=new ByteArrayOutputStream();
- FileOutputStream outfile=new FileOutputStream(args[2]);
- Driver driver =new Driver();
- driver.setOutputStream(fopout);
- driver.setRenderer(Driver.RENDER_PDF);
- Transformer transformer=TransformerFactory
- .newInstance().newTransformer(new StreamSource(new File(args[1])));
- transformer.transform(new StreamSource(new File(args[0])),
- new SAXResult(driver.getContentHandler()));
- PdfReader reader = new PdfReader(fopout.toByteArray());
- int n = reader.getNumberOfPages();
- Document document = new Document(reader.getPageSizeWithRotation(1));
- PdfWriter writer = PdfWriter.getInstance(document, outfile);
- writer.setEncryption(PdfWriter.STRENGTH40BITS, "pdf", null,
- PdfWriter.AllowCopy);
- document.open();
- PdfContentByte cb = writer.getDirectContent();
- PdfImportedPage page;
- int rotation;
- int i = 0;
- while (i < n) {
- i++;
- document.setPageSize(reader.getPageSizeWithRotation(i));
- document.newPage();
- page = writer.getImportedPage(reader, i);
- rotation = reader.getPageRotation(i);
- if (rotation == 90 || rotation == 270) {
- cb.addTemplate(page, 0, -1f, 1f, 0, 0,
- reader.getPageSizeWithRotation(i).height()); }
- else {
- cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0);
- }
- System.out.println("Processed page " + i);
- }
- document.close();
- }
- catch( Exception e) {
- e.printStackTrace();
- }
-}</pre>
-<p>
- Check the iText tutorial and documentation for setting access
flags,
- password, encryption strength and other parameters.
+ See <a href="pdfencryption.html">PDF Encryption</a>.
+ See also <a href="output.html#pdf-postprocess">PDF
Post-processing</a>.
</p>
</div>
-<a name="N1052F"></a><a name="pdf_doc_properties"></a>
+<a name="N104CC"></a><a name="pdf-doc-properties"></a>
<h5>6.5. How do I add document properties (title, author, etc.) to my
- PDF document?<span style="float: right"><a
href="#pdf_doc_properties-menu">^</a></span>
+ PDF document?<span style="float: right"><a
href="#pdf-doc-properties-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<p>FOP does not currently support this feature. Possible workarounds
- include those mentioned in the <a href="#PDF-postprocess">PDF
- Post-Processing FAQ</a>.</p>
+<p>See <a href="output.html#pdf-postprocess">PDF Post-processing</a>.</p>
</div>
-<a name="N1053B"></a><a name="pdf_watermark"></a>
-<h5>6.6. How do I add watermarks to my PDF document?<span style="float:
right"><a href="#pdf_watermark-menu">^</a></span>
+<a name="N104D8"></a><a name="pdf-watermark"></a>
+<h5>6.6. How do I add watermarks to my PDF document?<span style="float:
right"><a href="#pdf-watermark-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
-<p>FOP does not currently support this feature. Possible
- workarounds:</p>
-<ul>
-
-<li>
- Use a background image for the body region.
- </li>
-
-<li>
- See the <a href="#PDF-postprocess">PDF Post-Processing
- FAQ</a>.
- </li>
-
-<li>
- (submitted by [EMAIL PROTECTED]) Place an image in a
- region that overlaps the flowing text. For example, make
- region-before large enough to contain your image. Then include a
- block (if necessary, use an absolutely positioned
block-container)
- containing the watermark image in the static-content for the
- region-before. Note that the image will be drawn on top of the
- normal content.
- </li>
-
-</ul>
+<p>See <a href="output.html#pdf-watermark">PDF Watermarks</a>.</p>
</div>
-<a name="N10553"></a><a name="pdf_print_contortion"></a>
-<h5>6.7. The PDF is printed contorted!<span style="float: right"><a
href="#pdf_print_contortion-menu">^</a></span>
+<a name="N104E4"></a><a name="pdf-print-contortion"></a>
+<h5>6.7. The PDF is printed contorted!<span style="float: right"><a
href="#pdf-print-contortion-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1645,8 +1407,8 @@
settings too.
</p>
</div>
-<a name="N1055B"></a><a name="pdf_bookmark_display"></a>
-<h5>6.8. How do I control the Acrobat bookmark display?<span style="float:
right"><a href="#pdf_bookmark_display-menu">^</a></span>
+<a name="N104EC"></a><a name="pdf-bookmark-display"></a>
+<h5>6.8. How do I control the Acrobat bookmark display?<span style="float:
right"><a href="#pdf-bookmark-display-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1656,11 +1418,11 @@
</p>
</div>
</div>
-<a name="N10567"></a><a name="part_iex"></a>
+<a name="N104F8"></a><a name="part-iex"></a>
<h4>7. IEx specific stuff</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N1056B"></a><a name="iex_servlet_multiple"></a>
-<h5>7.1. The FOP servlet is called multiple times!<span style="float:
right"><a href="#iex_servlet_multiple-menu">^</a></span>
+<a name="N104FC"></a><a name="iex-servlet-multiple"></a>
+<h5>7.1. The FOP servlet is called multiple times!<span style="float:
right"><a href="#iex-servlet-multiple-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1695,8 +1457,8 @@
</ul>
</div>
-<a name="N1058B"></a><a name="iex_pdf_print_from_browser"></a>
-<h5>7.2. How do I print PDF directly from the browser?<span style="float:
right"><a href="#iex_pdf_print_from_browser-menu">^</a></span>
+<a name="N1051C"></a><a name="iex-pdf-print-from-browser"></a>
+<h5>7.2. How do I print PDF directly from the browser?<span style="float:
right"><a href="#iex-pdf-print-from-browser-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
@@ -1719,509 +1481,153 @@
</p>
</div>
</div>
-<a name="N1059C"></a><a name="part_input"></a>
-<h4>8. More general questions regarding XSLT and XSLFO and basic XML</h4>
+<a name="N1052D"></a><a name="part-input"></a>
+<h4>8. General questions regarding XSLT, XSLFO, and basic XML</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N105A0"></a><a name="fo_center"></a>
+<a name="N10531"></a><a name="fo-center"></a>
<h5>8.1. (FO) How do I vertically center an image or a table (or
- whatever)?<span style="float: right"><a
href="#fo_center-menu">^</a></span>
+ whatever)?<span style="float: right"><a
href="#fo-center-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Use display-align="center". FOP implements this for block
containers
- and table cell. A small self-contained document centering an image
on
- a page:
- </p>
-<pre class="code"><?xml version="1.0"?>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="content"
- page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="content">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-body>
- <fo:table-row height="297mm">
- <fo:table-cell display-align="center">
- <fo:block text-align="center">
- <fo:external-graphic src="fop.jpg"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
-</fo:root></pre>
-</div>
-<a name="N105AC"></a><a name="fo_center_table_horizon"></a>
-<h5>8.2. (FO) How do I center a table horizontally?<span style="float:
right"><a href="#fo_center_table_horizon-menu">^</a></span>
-</h5>
-<div style="margin-left: 15 ; border: 2px">
-<p>
- You can add a column left and right wich pad the table so that the
visible part is centered.
- </p>
-<pre class="code"><?xml version="1.0"?>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="content"
- page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="content">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="100mm"/>
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell/>
- <fo:table-cell>
- <fo:block>foo</fo:block>
- </fo:table-cell>
- <fo:table-cell/>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
-</fo:root></pre>
+ See <a href="fo.html#fo-center-vertical">XSL-FO Vertical
Centering</a>.
+ </p>
+</div>
+<a name="N1053D"></a><a name="fo-center-table-horizon"></a>
+<h5>8.2. (FO) How do I center a table horizontally?<span style="float:
right"><a href="#fo-center-table-horizon-menu">^</a></span>
+</h5>
+<div style="margin-left: 15 ; border: 2px">
<p>
- If your table is more complicated, or if defining borders on
individual cells becomes too much work, use the code above and nest your table
within the moddle cell.
+ See <a href="fo.html#fo-center-table-horizon">XSL-FO Horizontal
Centering (Tables)</a>.
</p>
</div>
-<a name="N105BB"></a><a name="fo_page_outer"></a>
+<a name="N10549"></a><a name="fo-page-outer"></a>
<h5>8.3. (FO) How to get page numbers printed on the "outer side" of the
- page (for books, for example)?<span style="float: right"><a
href="#fo_page_outer-menu">^</a></span>
+ page (for books, for example)?<span style="float: right"><a
href="#fo-page-outer-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Place different static content on <a href="#oddeven">odd and even
- pages</a>.
+ See <a href="fo.html#fo-oddeven">Recto/Verso Static Content
Differences</a>.
</p>
</div>
-<a name="N105C7"></a><a name="oddeven"></a>
+<a name="N10555"></a><a name="oddeven"></a>
<h5>8.4. (FO) How do I use different static content for odd and even
pages?<span style="float: right"><a href="#oddeven-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- There are examples in the FO distribution and in the <a
href="http://www.dpawson.co.uk/xsl/sect3/index.html">XSL FAQ FO
- section</a>.
+ See <a href="fo.html#fo-oddeven">Recto/Verso Static Content
Differences</a>.
</p>
+</div>
+<a name="N10561"></a><a name="fo-first-page-header"></a>
+<h5>8.5. (FO) How do I get a special header on the first page?<span
style="float: right"><a href="#fo-first-page-header-menu">^</a></span>
+</h5>
+<div style="margin-left: 15 ; border: 2px">
<p>
- Define a page master with alternating pages masters for odd and
even
- pages, specify appropriate regions in these page masters, and be
sure
- to give them different names. You use these names to put different
- static content in these regions. A self contained document
- demonstrating this:
- </p>
-<pre class="code"><?xml version="1.0"?>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="even"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body margin-bottom="20mm"/>
- <fo:region-after region-name="footer-even" extent="20mm"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="odd"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body margin-bottom="20mm"/>
- <fo:region-after region-name="footer-odd" extent="20mm"/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="document">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference odd-or-even="even"
- master-reference="even"/>
- <fo:conditional-page-master-reference odd-or-even="odd"
- master-reference="odd"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="document">
- <fo:static-content flow-name="footer-even">
- <fo:block
text-align="start"><fo:page-number/></fo:block>
- </fo:static-content>
- <fo:static-content flow-name="footer-odd">
- <fo:block
text-align-last="end"><fo:page-number/></fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block/>
- <fo:block break-before="page"/>
- </fo:flow>
- </fo:page-sequence>
-</fo:root></pre>
-</div>
-<a name="N105DA"></a><a name="fo_first_page_header"></a>
-<h5>8.5. (FO) How do I get a special header on the first page?<span
style="float: right"><a href="#fo_first_page_header-menu">^</a></span>
-</h5>
-<div style="margin-left: 15 ; border: 2px">
-<p>
- You can insert it into the flow instead of the static content.
- Alternatively, use a page master referring to different page
masters
- for the first page and the rest. It is quite similar to the
odd/even
- page mechanism. A code sample:
- </p>
-<pre class="code"><?xml version="1.0"?>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="first"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body margin-bottom="20mm"/>
- <fo:region-after region-name="footer-first" extent="20mm"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="rest"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body margin-bottom="20mm"/>
- <fo:region-after region-name="footer-rest" extent="20mm"/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="document">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference page-position="first"
- master-reference="first"/>
- <fo:conditional-page-master-reference page-position="rest"
- master-reference="rest"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="document">
- <fo:static-content flow-name="footer-first">
- <fo:block text-align="center">First page.</fo:block>
- </fo:static-content>
- <fo:static-content flow-name="footer-rest">
- <fo:block text-align-last="center">Other page.</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block/>
- <fo:block break-before="page"/>
- <fo:block break-before="page"/>
- </fo:flow>
- </fo:page-sequence>
-</fo:root></pre>
+ See <a href="fo.html#fo-first-page">Making the First Page
Special</a>.
+ </p>
</div>
-<a name="N105E6"></a><a name="fo_omit_headers"></a>
+<a name="N1056D"></a><a name="fo-omit-headers"></a>
<h5>8.6. (FO) How do I omit my headers on a blank page? How do I write
- "This page is left blank" on an intentionally blank page?<span
style="float: right"><a href="#fo_omit_headers-menu">^</a></span>
+ "This page is left blank" on an intentionally blank page?<span
style="float: right"><a href="#fo-omit-headers-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- A blank page can be forced by a <span
class="codefrag">break-before="page-even"</span>
- or similar properties, or by a force-page-count="end-on-odd" on a
page
- sequence, which ensures a new chapter or something starts on the
- preferred page.
- </p>
-<p>
- You can define a conditional page master with a page master
specific
- for blank pages. This allows you to specify static content for
blank
- pages (by definition, a page is blank if no content from a flow is
- rendered on the page). You can omit your normal headers and
footers,
- and use for example an extended header to print the "..left blank"
- statement.
- </p>
-<pre class="code"><?xml version="1.0"?>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body margin-bottom="20mm"/>
- <fo:region-after region-name="footer-normal" extent="20mm"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="blank"
- page-height="297mm" page-width="210mm"
- margin-top="20mm" margin-bottom="20mm"
- margin-left="25mm" margin-right="25mm">
- <fo:region-body/>
- <fo:region-before region-name="header-blank" extent="297mm"/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="document">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference
blank-or-not-blank="not-blank"
- master-reference="normal"/>
- <fo:conditional-page-master-reference blank-or-not-blank="blank"
- master-reference="blank"/>
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="document"
force-page-count="end-on-even">
- <fo:static-content flow-name="footer-normal">
- <fo:block text-align="center">Normal footer</fo:block>
- </fo:static-content>
- <fo:static-content flow-name="header-blank">
- <fo:block space-before="100mm" text-align-last="center">
- Intentionally left blank.</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block/>
- </fo:flow>
- </fo:page-sequence>
-</fo:root></pre>
+ See <a href="fo.html#fo-blank-pages">Blank Pages</a>.
+ </p>
</div>
-<a name="N105F8"></a><a name="fo_special_symbols"></a>
+<a name="N10579"></a><a name="fo-special-symbols"></a>
<h5>8.7. (FO) How do I print an Euro sign, a checkbox or other some other
- special symbols?<span style="float: right"><a
href="#fo_special_symbols-menu">^</a></span>
+ special symbols?<span style="float: right"><a
href="#fo-special-symbols-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Try to look the character up in the Unicode reference at the <a
href="http://www.unicode.org">Unicode Consortium</a>, in
- particular search the <a
href="http://www.unicode.org/charts/charindex.html">reference by
- name</a>.
- </p>
-<p>
- Use <a
href="http://www.w3.org/TR/2000/REC-xml-20001006#sec-references">XML
- character references</a> to put the character into your source
- XML, XSLT or FO.
- </p>
-<p>
- For example, the following will result in an Euro sign:
- </p>
-<pre class="code">&#x20AC;</pre>
-<p>
- The selected font family must have a glyph for the character you
want
- to show. This is actually a somewhat tricky issue, especially for
- symbol characters.
- </p>
-<p>
- Some environments provide also a character table utility (like
Win2K
- or WinXP), which can also help you to get an idea what glyphs are
- available in a certain font.
- </p>
-<p>
- Alternative: Use an embedded graphic: GIF, PNG, SVG, whatever.
+ See <a href="fo.html#xml-special-chars">Special Characters</a>.
</p>
</div>
-<a name="N1061F"></a><a name="fo_preformat"></a>
+<a name="N10585"></a><a name="fo-preformat"></a>
<h5>8.8. (FO) How do I keep linebreaks and hard spaces? How do I get
- preformatted text displayed as expected?<span style="float:
right"><a href="#fo_preformat-menu">^</a></span>
+ preformatted text displayed as expected?<span style="float:
right"><a href="#fo-preformat-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- The specification provides some properties for this: <a
href="http://www.w3.org/TR/xsl/slice7.html#white-space-collapse">white
- space collapsing</a> and <a
href="http://www.w3.org/TR/xsl/slice7.html#linefeed-treatment">line
- feed treatment</a>. In FOP, use white-space-collapse="false" on an
- enclosing block. This will also preserve line breaks (which is
- actually a bug, expect this to be changed).
- </p>
-</div>
-<a name="N1062F"></a><a name="fo_total_pages"></a>
-<h5>8.9. (FO) How do I print the total number of pages, like in "page 1
- of 12"<span style="float: right"><a
href="#fo_total_pages-menu">^</a></span>
-</h5>
-<div style="margin-left: 15 ; border: 2px">
-<a name="pagenum"></a>
-<p>
- This is an XSL FAQ.
- </p>
-<p>
- Put an empty block with an id at the end of the flow:
- </p>
-<pre class="code"><fo:flow ...>
- ...
- <fo:block id="last-page"/>
-</fo:flow></pre>
-<p>
- Get the number of the last page as follows:
- </p>
-<pre class="code"> <fo:page-nuber-citation ref-id="last-page"/></pre>
-<p>
- This does not work for all problems, for example if you have
multiple
- page sequences, an initial page number different from 1, or if you
- force a certain page count, thereby producing blank pages at the
end.
- </p>
-<p>
- There is no reliable way to get the real total page count with FO
- mechanisms, you can only get <em>page numbers</em>.
- </p>
-<p>
- The FOP library provides a method to get the total page count
after a
- FO document has been rendered. You can implement your own wrapper
to
- do a dummy rendering, inquire the total page count and the perform
the
- real rendering, passing the total page count to the XSLT processor
to
- splice it into the generated FO. A sample code:
- </p>
-<pre class="code">import org.apache.fop.apps.*;
-import org.xml.sax.*;
-import java.io.*;
-import javax.xml.transform.*;
-import javax.xml.transform.sax.*;
-import javax.xml.transform.stream.*;
-
-class rendtest {
-
- public static void main(String args[]) {
- try {
- Driver driver=new Driver();
- driver.setOutputStream(new FileOutputStream(args[2]));
- driver.setRenderer(Driver.RENDER_PDF);
- Transformer transformer=TransformerFactory.newInstance()
- .newTransformer(new StreamSource(new File(args[1])));
- transformer.setParameter("page-count","#");
- transformer.transform(new StreamSource(new File(args[0])),
- new SAXResult(driver.getContentHandler()));
- String pageCount=Integer.toString(driver.getResults().getPageCount());
- driver=new Driver();
- driver.setOutputStream(new FileOutputStream(args[2]));
- driver.setRenderer(Driver.RENDER_PDF);
- transformer=TransformerFactory.newInstance()
- .newTransformer(new StreamSource(new File(args[1])));
- transformer.setParameter("page-count",pageCount);
- transformer.transform(new StreamSource(new File(args[0])),
- new SAXResult(driver.getContentHandler()));
- }
- catch( Exception e) {
- e.printStackTrace();
- }
- }
-}</pre>
-<p>
- Declare and use the parameter "page-count" in your XSLT. Be aware
you
- may run into convergence problems: replacing the "#" placeholder
from
- the first run by the actual page count may change it.
+ See <a href="fo.html#fo-preformat">Preformatting Content</a>.
</p>
</div>
-<a name="N1065B"></a><a name="fo_region_overlap"></a>
-<h5>8.10. (FO) The header overlaps body content. The body extends into
- the footer.<span style="float: right"><a
href="#fo_region_overlap-menu">^</a></span>
+<a name="N10591"></a><a name="fo-total-pages"></a>
+<h5>8.9. (FO) How do I print the total number of pages, for example "page 1
+ of 12"<span style="float: right"><a
href="#fo-total-pages-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Contrary to popular opinion, the regions on a page may overlap.
- Defining a certain body region does not automatically constrain
other
- regions, this has to be done explicitely.
- </p>
-<p>
- If you have a header region with an extent of 20mm, you should
define
- a margin for the body region of at least 20mm too, otherwise the
- header content may overwrite some stuff in the body region. This
- applies similarly to the extent of the after region and the bottom
- margin of the body region.
+ See <a href="fo.html#fo-total-pages">Total Document Pages</a>.
</p>
+</div>
+<a name="N1059D"></a><a name="fo-region-overlap"></a>
+<h5>8.10. (FO) The header overlaps body content. The body extends into
+ the footer.<span style="float: right"><a
href="#fo-region-overlap-menu">^</a></span>
+</h5>
+<div style="margin-left: 15 ; border: 2px">
<p>
- The overlap effect can be used creatively for some purposes.
+ See <a href="fo.html#fo-region-align">Aligning Regions</a>.
</p>
</div>
-<a name="N10669"></a><a name="fo_lines"></a>
+<a name="N105A9"></a><a name="fo-lines"></a>
<h5>8.11. (FO) How do I get lines in the document, as separators, side
- bars or folding marks?<span style="float: right"><a
href="#fo_lines-menu">^</a></span>
+ bars or folding marks?<span style="float: right"><a
href="#fo-lines-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Several possibilities:
+ See <a href="fo.html#fo-lines">Drawing Lines</a>.
</p>
-<ul>
-
-<li>
- Use fo:leader (look up the details in the <a
href="http://www.w3.org/TR/xsl/slice6.html#fo_leader">XSLFO
- specification</a>, or use a book). For horizontal lines only.
- </li>
-
-<li>
- Use a solid border on a suitable fo:block. Horizontal and
vertical
- lines only.
- </li>
-
-<li>
- Insert a graphic. GIF, PNG SVG, whatever.
- </li>
-
-</ul>
</div>
-<a name="N10681"></a><a name="FO-validate"></a>
-<h5>8.12. (FO) How do I validate my FO document?<span style="float:
right"><a href="#FO-validate-menu">^</a></span>
+<a name="N105B5"></a><a name="fo-validate"></a>
+<h5>8.12. (FO) How do I validate my FO document?<span style="float:
right"><a href="#fo-validate-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
-
-<a href="http://www.renderx.com">RenderX</a> has provided an
- <a
href="http://www.renderx.com/Tests/validator/fo.dtd.html">Unofficial
- DTD for FO Documents</a>. This document may be helpful in
- validating general FO issues.
- </p>
-<p>
- FOP also maintains an <a
href="http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-fop/docs/foschema/fop.xsd?rev=HEAD&content-type=text/plain">Unofficial
- FOP Schema</a> in the FOP CVS Repository. This document can be
- used either to validate against the FO standard, or against the
- actual FOP implementation. See the notes near the beginning of the
- document for instructions on how to use it.
+ See <a href="fo.html#fo-validate">Validating XSL-FO</a>.
</p>
</div>
-<a name="N10698"></a><a name="xml_non-breaking_space"></a>
-<h5>8.13. (XML) There are complaints about &nbsp;. How
- do I get a non-breaking space in FO?<span style="float: right"><a
href="#xml_non-breaking_space-menu">^</a></span>
+<a name="N105C1"></a><a name="xml-non-breaking-space"></a>
+<h5>8.13. (XML) How do I get a non-breaking space in FO? There are
complaints about &nbsp;.<span style="float: right"><a
href="#xml-non-breaking-space-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Use &#160; everywhere. In your own XML, you could also use a
DTD
- which declares the entity.
+ See <a href="fo.html#xml-special-chars">XML Special Characters</a>.
</p>
</div>
-<a name="N106A3"></a><a name="xml_undefined_entities"></a>
-<h5>8.14. (XML) There are complaints about undefined entities, for example
- about &uuml; which used to work in HTML. How do I enter
- special characters like in HTML?<span style="float: right"><a
href="#xml_undefined_entities-menu">^</a></span>
+<a name="N105D0"></a><a name="xml-undefined-entities"></a>
+<h5>8.14. (XML) How do I enter special characters in XML? There are
complaints about undefined entities, such as &uuml;, which work in HTML.
<span style="float: right"><a href="#xml-undefined-entities-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Don't use names as in HTML, use numbers (unless you have a DTD
which
- declares the entities). For predefined HTML entities and their
Unicode
- codepoints see <a
href="http://www.w3.org/TR/html4/sgml/entities.html">Character entity
- references in HTML 4</a>
-
-</p>
+ See <a href="fo.html#xml-special-chars">XML Special Characters</a>.
+ </p>
</div>
-<a name="N106B2"></a><a name="xml_illegal_entities"></a>
+<a name="N105DF"></a><a name="xml-illegal-entities"></a>
<h5>8.15. (XML) There are complaints about illegal characters and entities
- in the input.<span style="float: right"><a
href="#xml_illegal_entities-menu">^</a></span>
+ in the input.<span style="float: right"><a
href="#xml-illegal-entities-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Make sure ampersands in text and attributes are written as
&amp;,
- "<" is written as &lt; and ">" as &gt;. It's not
necessary
- everywhere but do it just to be sure.
- </p>
-<p>
- The XML parser should give the proper line and possibly column for
- offending characters.
- </p>
-<p>
- Refer to the <a href="http://www.w3.org/XML/">XML
- specification</a> or to a good tutorial for details of the XML
- file format.
+ See <a href="fo.html#xml-entity-chars">XML Entity Characters</a>.
</p>
</div>
-<a name="N106C4"></a><a name="xml_illegal_chars"></a>
+<a name="N105EB"></a><a name="xml-illegal-chars"></a>
<h5>8.16. (XML) There are complaints about illegal bytes or characters in
- the input. There are odd characters in the result.<span style="float:
right"><a href="#xml_illegal_chars-menu">^</a></span>
+ the input. There are odd characters in the result.<span style="float:
right"><a href="#xml-illegal-chars-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
<p>
- Usually, this is a character encoding problem. See <a
href="http://www.dpawson.co.uk/xsl">XSL FAQ</a>. Many software
- packages producing XML, in particular most XSLT processors,
produce by
- default UTF-8 encoded files. If you view them with something not
aware
- of the encoding, like Notepad for Win95/98/ME/NT, funny characters
are
- displayed. A Å is a giveaway.
+ See <a href="fo.html#xml-encoding">XML Encoding Issues</a>.
</p>
</div>
</div>
-<a name="N106D0"></a><a name="part_help"></a>
+<a name="N105F7"></a><a name="part-help"></a>
<h4>9. General suggestions. How to solve problems.</h4>
<div style="margin-left: 0 ; border: 2px">
-<a name="N106D4"></a><a name="bugs"></a>
+<a name="N105FB"></a><a name="bugs"></a>
<h5>9.1. I think I have found a bug in FOP. What should I do?<span
style="float: right"><a href="#bugs-menu">^</a></span>
</h5>
<div style="margin-left: 15 ; border: 2px">
@@ -2230,7 +1636,7 @@
bugs already reported and how to report new ones.
</p>
</div>
-<a name="N106E0"></a><a name="postquestions"></a>
+<a name="N10607"></a><a name="postquestions"></a>
<h5>9.2. I have questions that are not addressed in this FAQ. Where
should I post them?<span style="float: right"><a
href="#postquestions-menu">^</a></span>
</h5>
@@ -2244,7 +1650,7 @@
<ul>
<li>
- double-check the <a href="#part_running">Runtime FAQs</a>.
+ double-check the <a href="#part-running">Runtime FAQs</a>.
</li>
<li>
1.12 +5405 -5922xml-site/targets/fop/faq.pdf
<<Binary file>>
1.23 +45 -28 xml-site/targets/fop/fonts.html
Index: fonts.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/fonts.html,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- fonts.html 7 Apr 2003 18:54:42 -0000 1.22
+++ fonts.html 14 Apr 2003 23:35:41 -0000 1.23
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
-</li>
-
-</ul>
+<a href="output.html">Output Targets</a>
</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -303,7 +301,7 @@
<a href="#Status">Status</a>
</li>
<li>
-<a href="#Adding+additional+Type+1+fonts">Adding additional Type 1 fonts</a>
+<a href="#Adding+Type+1+fonts">Adding Type 1 fonts</a>
<ul class="minitoc">
<li>
<a href="#Generating+a+font+metrics+file">Generating a font metrics file</a>
@@ -314,7 +312,7 @@
</ul>
</li>
<li>
-<a href="#Adding+additional+TrueType">Adding additional TrueType</a>
+<a href="#Adding+TrueType+Fonts">Adding TrueType Fonts</a>
<ul class="minitoc">
<li>
<a href="#Generating+a+font+metrics+file-N1023C">Generating a font metrics
file</a>
@@ -364,8 +362,8 @@
</div>
</div>
-<a name="N101F1"></a><a name="Adding+additional+Type+1+fonts"></a>
-<h3>Adding additional Type 1 fonts</h3>
+<a name="N101F1"></a><a name="Adding+Type+1+fonts"></a>
+<h3>Adding Type 1 fonts</h3>
<div style="margin-left: 0 ; border: 2px">
<p>As mentioned above you need an XML file containing font metrics to be
able to use an additional font. FOP
contains a tool that can generate such a font metrics file from a PFM
file, which normally comes with the font file.
@@ -451,8 +449,8 @@
</div>
</div>
-<a name="N10233"></a><a name="Adding+additional+TrueType"></a>
-<h3>Adding additional TrueType</h3>
+<a name="N10233"></a><a name="Adding+TrueType+Fonts"></a>
+<h3>Adding TrueType Fonts</h3>
<div style="margin-left: 0 ; border: 2px">
<p>Adding TrueType fonts is almost identical to the process of
adding Type 1 fonts. The main difference is in the first
@@ -518,15 +516,34 @@
<h3>Embedding fonts</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
- Font embedding is enabled in the userconfig.xml file and controlled
over the embed-file attribute.
- If you don't specify the embed-file attribute the fonts doesn't get
embedded but only referenced.
+ Font embedding is enabled in the userconfig.xml file and controlled by
the embed-file attribute.
+ If you don't specify the embed-file attribute the font will not be
embedded, but will only be referenced.
+ </p>
+<p>
+ When FOP embeds a font, it scrambles its fontname by inserting a
prefix that ensures that the fontname will not match the fontname of an
installed font.
+This is helpful with older versions of Acrobat Reader that preferred
installed fonts over embedded fonts.
+ </p>
+<p>
+ When embedding PostScript fonts, the entire font is always embedded.
</p>
+<p>
+ When embedding TrueType fonts, a new font, containing only the glyphs
used, is created from the original font and embedded in the pdf.
+Currently, this embedded font contains only the minimum data needed to be
embedded in a pdf document, and does not contain any codepage information.
+The PDF document contains indexes to the glyphs in the font instead of to
encoded characters.
+While the document will be displayed correctly, the net effect of this is
that searching, indexing, and cut-and-paste will not work properly.
+ </p>
+<p>
+ One workaround for this behavior is to use the -ansi option when
generating metrics with TTFReader.
+This will cause the whole font to be embedded in the pdf document.
+Characters will be WinAnsi encoded (as specified in the PDF spec), so you
lose the ability to use characters from other character sets.
+ </p>
+</div>
+
<div class="frame note">
<div class="label">Note</div>
<div class="content">
- Remember to start fop with -c conf/userconfig.xml on the command line.
- </div>
-</div>
+ Be sure to start FOP with the option to find the config file ("-c
conf/userconfig.xml" from the command line). Otherwise, it has no way of
finding your custom font information.
+ </div>
</div>
</div>
1.6 +84 -84 xml-site/targets/fop/fonts.pdf
<<Binary file>>
1.14 +15 -17 xml-site/targets/fop/gethelp.html
Index: gethelp.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/gethelp.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- gethelp.html 7 Apr 2003 18:54:42 -0000 1.13
+++ gethelp.html 14 Apr 2003 23:35:41 -0000 1.14
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.45 +15 -17 xml-site/targets/fop/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/index.html,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- index.html 7 Apr 2003 18:54:42 -0000 1.44
+++ index.html 14 Apr 2003 23:35:41 -0000 1.45
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.29 +15 -17 xml-site/targets/fop/license.html
Index: license.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/license.html,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- license.html 7 Apr 2003 18:54:42 -0000 1.28
+++ license.html 14 Apr 2003 23:35:41 -0000 1.29
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.6 +15 -17 xml-site/targets/fop/logocontest.html
Index: logocontest.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/logocontest.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- logocontest.html 7 Apr 2003 18:54:42 -0000 1.5
+++ logocontest.html 14 Apr 2003 23:35:41 -0000 1.6
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.13 +19 -21 xml-site/targets/fop/news.html
Index: news.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/news.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- news.html 7 Apr 2003 18:54:42 -0000 1.12
+++ news.html 14 Apr 2003 23:35:41 -0000 1.13
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -327,7 +325,7 @@
<a href="#19+April+2002+-+New+Committers">19 April 2002 - New Committers</a>
</li>
<li>
-<a href="#11+March+2002+-+Fop+0.20.3+released">11 March 2002 - Fop 0.20.3
released</a>
+<a href="#11+March+2002+-+FOP+0.20.3+released">11 March 2002 - FOP 0.20.3
released</a>
</li>
</ul>
@@ -412,7 +410,7 @@
2.0.1, Xalan to version 2.3.1 and Batik to version 1.5beta2.
</li>
-<li>Fop has been compiled with Jimi support</li>
+<li>FOP has been compiled with Jimi support</li>
<li>
Logging has been changed from LogKit to Avalon's Logger
@@ -454,8 +452,8 @@
<p>Welcome Jeremias Maerki, Joerg Pietschmann and Peter B. West!</p>
</div>
-<a name="N10271"></a><a name="11+March+2002+-+Fop+0.20.3+released"></a>
-<h3>11 March 2002 - Fop 0.20.3 released</h3>
+<a name="N10271"></a><a name="11+March+2002+-+FOP+0.20.3+released"></a>
+<h3>11 March 2002 - FOP 0.20.3 released</h3>
<div style="margin-left: 0 ; border: 2px">
<p>This is a maintenance release, the first version which supports the XSL-FO
Recommendation syntax. See the
1.8 +56 -56 xml-site/targets/fop/news.pdf
<<Binary file>>
1.16 +124 -32 xml-site/targets/fop/output.html
Index: output.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/output.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- output.html 7 Apr 2003 18:54:42 -0000 1.15
+++ output.html 14 Apr 2003 23:35:42 -0000 1.16
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<span class="sel"><font color="#ffcc00">Output Formats</font></span>
-</li>
-
-</ul>
+<span class="sel"><font color="#ffcc00">Output Targets</font></span>
</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -312,6 +310,17 @@
</li>
<li>
<a href="#pdf">PDF</a>
+<ul class="minitoc">
+<li>
+<a href="#pdf-fonts">Fonts</a>
+</li>
+<li>
+<a href="#pdf-postprocess">Post-processing</a>
+</li>
+<li>
+<a href="#pdf-watermark">Watermarks</a>
+</li>
+</ul>
</li>
<li>
<a href="#pcl">PCL</a>
@@ -419,8 +428,11 @@
The PDF version supported is 1.3 which is currently the most popular
version for Acrobat Reader (4.0), PDF versions are forwards/backwards
compatible.
- </p>
-<a name="pdf-fonts"></a>
+ </p>
+<p>Note that FOP does not currently support "tagged pdf".</p>
+<a name="N10217"></a><a name="pdf-fonts"></a>
+<h4>Fonts</h4>
+<div style="margin-left: 0 ; border: 2px">
<p>
PDF has a set of fonts that are always available to all PDF viewers,
to quote from the PDF Specification:
@@ -433,10 +445,90 @@
guaranteed to be available in all PDF viewer applications."</em>
</p>
-<p>Note that FOP does not currently support "tagged pdf".</p>
+</div>
+<a name="N10224"></a><a name="pdf-postprocess"></a>
+<h4>Post-processing</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>FOP does not currently support several desirable PDF features: document
properties (title, author, etc.), and watermarks. 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.
+ </p>
+<div class="frame warning">
+<div class="label">Warning</div>
+<div class="content">Caveat: iText swallows PDF bookmarks.</div>
+</div>
+<p>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>
+<pre class="code">public static void main(String args[]) {
+ try {
+ ByteArrayOutputStream fopout=new ByteArrayOutputStream();
+ FileOutputStream outfile=new FileOutputStream(args[2]);
+ Driver driver =new Driver();
+ driver.setOutputStream(fopout);
+ driver.setRenderer(Driver.RENDER_PDF);
+ Transformer transformer=TransformerFactory
+ .newInstance().newTransformer(new StreamSource(new File(args[1])));
+ transformer.transform(new StreamSource(new File(args[0])),
+ new SAXResult(driver.getContentHandler()));
+ PdfReader reader = new PdfReader(fopout.toByteArray());
+ int n = reader.getNumberOfPages();
+ Document document = new Document(reader.getPageSizeWithRotation(1));
+ PdfWriter writer = PdfWriter.getInstance(document, outfile);
+ writer.setEncryption(PdfWriter.STRENGTH40BITS, "pdf", null,
+ PdfWriter.AllowCopy);
+ document.open();
+ PdfContentByte cb = writer.getDirectContent();
+ PdfImportedPage page;
+ int rotation;
+ int i = 0;
+ while (i < n) {
+ i++;
+ document.setPageSize(reader.getPageSizeWithRotation(i));
+ document.newPage();
+ page = writer.getImportedPage(reader, i);
+ rotation = reader.getPageRotation(i);
+ if (rotation == 90 || rotation == 270) {
+ cb.addTemplate(page, 0, -1f, 1f, 0, 0,
+ reader.getPageSizeWithRotation(i).height()); }
+ else {
+ cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0);
+ }
+ System.out.println("Processed page " + i);
+ }
+ document.close();
+ }
+ catch( Exception e) {
+ e.printStackTrace();
+ }
+}</pre>
+<p>Check the iText tutorial and documentation for setting access flags,
password, encryption strength and other parameters.
+ </p>
+</div>
+<a name="N10246"></a><a name="pdf-watermark"></a>
+<h4>Watermarks</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ In addition to the <a href="#pdf-postprocess">PDF Post-processing</a>
options, consider the following workarounds:
+ </p>
+<ul>
+
+<li>
+ Use a background image for the body region.
+ </li>
+
+<li>
+ (submitted by [EMAIL PROTECTED]) Place an image in a
+ region that overlaps the flowing text. For example, make
+ region-before large enough to contain your image. Then include a
+ block (if necessary, use an absolutely positioned block-container)
+ containing the watermark image in the static-content for the
+ region-before. Note that the image will be drawn on top of the
+ normal content.
+ </li>
+
+</ul>
+</div>
</div>
-<a name="N10221"></a><a name="pcl"></a>
+<a name="N1025E"></a><a name="pcl"></a>
<h3>PCL</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -451,7 +543,7 @@
This should allow any device fully supporting PCL 5 to be able to
print the output generated by the PCLRenderer.
</p>
-<a name="N1022D"></a><a name="pcl-limitations"></a>
+<a name="N1026A"></a><a name="pcl-limitations"></a>
<h4>Limitations</h4>
<div style="margin-left: 0 ; border: 2px">
<ul>
@@ -478,7 +570,7 @@
</ul>
</div>
-<a name="N10255"></a><a name="pcl-additional"></a>
+<a name="N10292"></a><a name="pcl-additional"></a>
<h4>Additional Features</h4>
<div style="margin-left: 0 ; border: 2px">
<p>There are some special features that are controlled by some public
variables on the PCLRenderer class.</p>
@@ -507,7 +599,7 @@
</div>
</div>
-<a name="N10277"></a><a name="ps"></a>
+<a name="N102B4"></a><a name="ps"></a>
<h3>PostScript</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -517,7 +609,7 @@
renderer generates PostScript Level 3 with most DSC comments. Actually,
the only Level 3 feature used is FlateDecode, everthing else is Level 2.
</p>
-<a name="N10280"></a><a name="ps-limitations"></a>
+<a name="N102BD"></a><a name="ps-limitations"></a>
<h4>Limitations</h4>
<div style="margin-left: 0 ; border: 2px">
<ul>
@@ -538,7 +630,7 @@
</div>
</div>
-<a name="N1029D"></a><a name="rtf"></a>
+<a name="N102DA"></a><a name="rtf"></a>
<h3>RTF</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -549,7 +641,7 @@
</p>
</div>
-<a name="N102A7"></a><a name="svg"></a>
+<a name="N102E4"></a><a name="svg"></a>
<h3>SVG</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -564,7 +656,7 @@
</p>
</div>
-<a name="N102B1"></a><a name="xml"></a>
+<a name="N102EE"></a><a name="xml"></a>
<h3>XML</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -574,7 +666,7 @@
</p>
</div>
-<a name="N102BB"></a><a name="print"></a>
+<a name="N102F8"></a><a name="print"></a>
<h3>Print</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -583,7 +675,7 @@
</p>
</div>
-<a name="N102C5"></a><a name="awt"></a>
+<a name="N10302"></a><a name="awt"></a>
<h3>AWT</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -594,7 +686,7 @@
</p>
</div>
-<a name="N102CF"></a><a name="mif"></a>
+<a name="N1030C"></a><a name="mif"></a>
<h3>MIF</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
@@ -603,7 +695,7 @@
</p>
</div>
-<a name="N102D9"></a><a name="txt"></a>
+<a name="N10316"></a><a name="txt"></a>
<h3>TXT</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
1.8 +603 -282 xml-site/targets/fop/output.pdf
<<Binary file>>
1.7 +15 -17 xml-site/targets/fop/pdfencryption.html
Index: pdfencryption.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/pdfencryption.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- pdfencryption.html 7 Apr 2003 18:54:42 -0000 1.6
+++ pdfencryption.html 14 Apr 2003 23:35:42 -0000 1.7
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<span class="sel"><font color="#ffcc00">PDF encryption</font></span>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<span class="sel"><font color="#ffcc00">PDF encryption</font></span>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.16 +16 -18 xml-site/targets/fop/relnotes.html
Index: relnotes.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/relnotes.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- relnotes.html 7 Apr 2003 18:54:42 -0000 1.15
+++ relnotes.html 14 Apr 2003 23:35:42 -0000 1.16
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -361,7 +359,7 @@
Xerces to version 2.0.1, Xalan to version 2.3.1 and Batik to
version 1.5beta2.
</li>
-<li>Fop has been compiled with Jimi support this time
+<li>FOP has been compiled with Jimi support this time
but you still have to download
<a href="http://java.sun.com/products/jimi/">Jimi</a>
and copy it to lib/ to get PNG support (no need to build FOP
yourself though).
1.7 +53 -53 xml-site/targets/fop/relnotes.pdf
<<Binary file>>
1.26 +15 -17 xml-site/targets/fop/resources.html
Index: resources.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/resources.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- resources.html 12 Apr 2003 19:29:05 -0000 1.25
+++ resources.html 14 Apr 2003 23:35:42 -0000 1.26
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.35 +16 -18 xml-site/targets/fop/running.html
Index: running.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/running.html,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- running.html 7 Apr 2003 18:54:43 -0000 1.34
+++ running.html 14 Apr 2003 23:35:42 -0000 1.35
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<span class="sel"><font color="#ffcc00">Running</font></span>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<span class="sel"><font color="#ffcc00">Run</font></span>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -403,7 +401,7 @@
fop -fo foo.fo -pdf foo.pdf (does the same as the previous line)
fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf
fop foo.fo -mif foo.mif
- fop foo.fo -print or Fop -print foo.fo
+ fop foo.fo -print or fop -print foo.fo
fop foo.fo -awt</pre>
<p>PDF encryption is only available if FOP was compiled with encryption
support <strong>and</strong> if compatible encryption support is availabe at
run time. Currently, only the JCE is supported. Check the <a
href="pdfencryption.html">Details</a>.</p>
</div>
1.7 +48 -48 xml-site/targets/fop/running.pdf
<<Binary file>>
1.11 +15 -17 xml-site/targets/fop/status.html
Index: status.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/status.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- status.html 7 Apr 2003 18:54:43 -0000 1.10
+++ status.html 14 Apr 2003 23:35:42 -0000 1.11
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.19 +292 -72 xml-site/targets/fop/svg.html
Index: svg.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/svg.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- svg.html 7 Apr 2003 18:54:43 -0000 1.18
+++ svg.html 14 Apr 2003 23:35:42 -0000 1.19
@@ -2,7 +2,7 @@
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Using SVG with FOP</title>
+<title>FOP Graphics Formats</title>
<link type="text/css" href="skin/page.css" rel="stylesheet">
</head>
<body text="#000000" bgcolor="#FFFFFF">
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
-</li>
-
-</ul>
+<a href="output.html">Output Targets</a>
</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<span class="sel"><font color="#ffcc00">SVG</font></span>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<span class="sel"><font color="#ffcc00">Graphic Formats</font></span>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -232,6 +226,10 @@
</li>
<li>
+<a href="fo.html">XSL-FO</a>
+</li>
+
+<li>
<a href="examples.html">Examples</a>
</li>
@@ -287,32 +285,260 @@
<table class="title" summary="">
<tr>
<td valign="middle">
-<h1>Using SVG with FOP</h1>
+<h1>FOP Graphics Formats</h1>
</td><td nowrap="nowrap" width="40" align="center"><a class="dida"
href="svg.pdf"><img alt="PDF" src="skin/images/pdfdoc.gif" border="0"><br>
PDF</a></td>
</tr>
</table>
<ul class="minitoc">
<li>
-<a href="#intro">Introduction</a>
+<a href="#Overview+of+Graphics+Support">Overview of Graphics Support</a>
</li>
<li>
-<a href="#pdf_conversion">Converting SVG to a PDF Document</a>
+<a href="#packages">Graphics Packages</a>
+<ul class="minitoc">
+<li>
+<a href="#native">FOP Native</a>
</li>
<li>
-<a href="#pdf_graphics">Placing SVG Graphics into PDF</a>
+<a href="#jimi">JIMI</a>
</li>
<li>
-<a href="#pdf_text">Placing SVG Text into PDF</a>
+<a href="#jai">JAI</a>
</li>
<li>
-<a href="#Known+Problems">Known Problems</a>
+<a href="#batik">Batik</a>
</li>
</ul>
-
-
-<a name="N101BF"></a><a name="intro"></a>
-<h3>Introduction</h3>
+</li>
+<li>
+<a href="#jpeg">JPEG</a>
+</li>
+<li>
+<a href="#svg">SVG</a>
+<ul class="minitoc">
+<li>
+<a href="#svg-intro">Introduction</a>
+</li>
+<li>
+<a href="#svg-pdf-conversion">Converting SVG to a PDF Document</a>
+</li>
+<li>
+<a href="#svg-pdf-graphics">Placing SVG Graphics into PDF</a>
+</li>
+<li>
+<a href="#svg-pdf-text">Placing SVG Text into PDF</a>
+</li>
+<li>
+<a href="#svg-problems">Known Problems</a>
+</li>
+</ul>
+</li>
+</ul>
+
+<a name="N101BE"></a><a name="Overview+of+Graphics+Support"></a>
+<h3>Overview of Graphics Support</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ The table below summarizes the <em>theoretical</em> support for
graphical formats within FOP. In other words, within the constraints of the
limitations listed here, these formats <em>should</em> work. However, many of
them have not been tested, and there may be limitations that have not yet been
discovered or documented. The packages needed to support some formats are not
included in the FOP distribution and must be installed separately. Follow the
links in the "Support Thru" column for more details.
+ </p>
+<table class="ForrestTable" cellspacing="1" cellpadding="4">
+
+<tr>
+
+<th colspan="1" rowspan="1">Format</th>
+ <th colspan="1" rowspan="1">Type</th>
+ <th colspan="1" rowspan="1">Support Thru</th>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">BMP</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a> or <a
href="#jai">JAI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">CUR</td>
+ <td colspan="1" rowspan="1">unknown</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">GIF</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#native">FOP native</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">FPX</td>
+ <td colspan="1" rowspan="1">unknown</td>
+ <td colspan="1" rowspan="1"><a href="#jai">JAI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">ICO (Sun Icon)</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1"><a href="#jpeg">JPEG</a></td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#native">FOP native</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">PCX</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">PICT (Macintosh PICT)</td>
+ <td colspan="1" rowspan="1">metafile</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">PNG</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a> or <a
href="#jai">JAI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">PNM</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jai">JAI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">PSD (Adobe Photoshop)</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">Sunraster</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1"><a href="#svg">SVG</a></td>
+ <td colspan="1" rowspan="1">vector (with embedded bitmaps)</td>
+ <td colspan="1" rowspan="1"><a href="#batik">Batik</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">Targa</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">TIFF</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a> or <a
href="#jai">JAI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">XBM</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+<tr>
+
+<td colspan="1" rowspan="1">XPM</td>
+ <td colspan="1" rowspan="1">bitmap</td>
+ <td colspan="1" rowspan="1"><a href="#jimi">JIMI</a></td>
+
+</tr>
+
+</table>
+</div>
+
+<a name="N10347"></a><a name="packages"></a>
+<h3>Graphics Packages</h3>
+<div style="margin-left: 0 ; border: 2px">
+<a name="N1034D"></a><a name="native"></a>
+<h4>FOP Native</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ FOP has native ability to handle some graphic file formats.
+ </p>
+</div>
+<a name="N10357"></a><a name="jimi"></a>
+<h4>JIMI</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ Because of licensing issues, the JIMI image library is not
included in the FOP distribution. First, <a target="_blank"
href="http://java.sun.com/products/jimi">download</a> and install it.
+Then, copy the file "JimiProClasses.zip" from the archive to
xml-fop/lib/jimi-1.0.jar. Please note that FOP binary distributions are
compiled with JIMI support, so there is no need for you to build FOP to add the
support. If jimi-1.0.jar is installed in the right place, it will automatically
be used by FOP, otherwise it will not.
+ </p>
+</div>
+<a name="N10365"></a><a name="jai"></a>
+<h4>JAI</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ FOP has been compiled with JAI support, but JAI is not included in
the FOP distribution.
+To use it, simply install <a
href="http://java.sun.com/products/java-media/jai">JAI</a>.
+JAI is much faster than JIMI, but is not available for all platforms. See <a
href="http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html#platforms">What
platforms are supported?</a> on the JAI FAQ page for more details.
+ </p>
+</div>
+<a name="N10377"></a><a name="batik"></a>
+<h4>Batik</h4>
+<div style="margin-left: 0 ; border: 2px">
+<p>
+ FOP distributions include a batik.jar file. No installation is
required.
+ </p>
+</div>
+</div>
+
+<a name="N10382"></a><a name="jpeg"></a>
+<h3>JPEG</h3>
+<div style="margin-left: 0 ; border: 2px">
+<p>Not all variants of JPEG are supported, especially those containing
unusual color lookup tables and color profiles. If you have trouble with a JPEG
image in FOP, try opening it with an image processing program (such as
Photoshop or Gimp) and then saving it. Specifying 24-bit color output may also
help.
+ </p>
+</div>
+
+<a name="N1038C"></a><a name="svg"></a>
+<h3>SVG</h3>
+<div style="margin-left: 0 ; border: 2px">
+<a name="N10392"></a><a name="svg-intro"></a>
+<h4>Introduction</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
FOP uses the SVG library from <a
href="http://xml.apache.org/batik/">Batik</a> to handle SVG.
@@ -320,55 +546,51 @@
file referenced with <span class="codefrag">fo:external-graphic</span>.
Either way the SVG document will be
read in and converted into a DOM in Batik. This DOM will then be used by the
renderer to
create the graphical image.
- </p>
+ </p>
<p>
The AWT and Print renderers simply use batik to draw the SVG into a graphic.
- </p>
+ </p>
<p>
In the case of the PDF renderer there is a PDFGraphics2D class that Batik
uses
to render the image into. This class converts the drawing instructions into
PDF markup which is placed into the current PDF document.
- </p>
+ </p>
</div>
-
-
-<a name="N101D9"></a><a name="pdf_conversion"></a>
-<h3>Converting SVG to a PDF Document</h3>
+<a name="N103AC"></a><a name="svg-pdf-conversion"></a>
+<h4>Converting SVG to a PDF Document</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
It is possible to convert a standalone SVG document directly into a simple
page PDF document.
This is possible through the use of Batik's transcoder mechanism.<br>
-
+
<span class="codefrag">java org.apache.batik.apps.rasterizer.Main -m
application/pdf document.svg</span>
-
+
<br>
This will output the svg document as "document.pdf" containing a PDF
rendering of
the SVG file.
- </p>
+ </p>
<p>
It is also possible to specify the width and/or height of the PDF document
on the command line with -w and -h or if you are using the transcoder api you
can use the transcoding hints.
- </p>
+ </p>
<p>
Currently the SVG image is drawn at the SVG document size and simply scaled
in PDF to the new size. So the result may not be the best possible. For example
if you have any images or effects it will draw them at the original resolution
of the svg document. When this is viewed in the pdf it will have an incorrect
resolution for the size of the pdf.
-</p>
+ </p>
<p>
The size of the pdf file will also remain the same regardless of what size
the page is.
- </p>
+ </p>
<p>
For more information see <a href="http://xml.apache.org/batik/">Batik</a> for
how transcoders work.
- </p>
+ </p>
</div>
-
-
-<a name="N101FA"></a><a name="pdf_graphics"></a>
-<h3>Placing SVG Graphics into PDF</h3>
+<a name="N103CD"></a><a name="svg-pdf-graphics"></a>
+<h4>Placing SVG Graphics into PDF</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
The svg is inserted into PDF by using PDF commands to draw and fill
lines and curves. This means that the graphical objects created with
this remain as vector graphics.
- </p>
+ </p>
<p>
There are a number of SVG things that cannot be converted directly into
PDF. Parts of the graphic such as effects, patterns and images are inserted
@@ -379,11 +601,10 @@
Currently transparency is not supported in PDF so many svg images that
contain effects or graphics with transparent areas will not be displayed
correctly.
- </p>
+ </p>
</div>
-
-<a name="N1020A"></a><a name="pdf_text"></a>
-<h3>Placing SVG Text into PDF</h3>
+<a name="N103DD"></a><a name="svg-pdf-text"></a>
+<h4>Placing SVG Text into PDF</h4>
<div style="margin-left: 0 ; border: 2px">
<p>If possible, Batik will use normal PDF text when inserting text. It does
this by checking if the text can be drawn normally and the font is
@@ -400,11 +621,11 @@
Smooth Line Art in the Acrobat preferences will fix this).
If the text is inserted into the PDF using the inbuilt text commands
for PDF it will use a single character.
- </p>
+ </p>
<p>
It is possible to make sure that all text is drawn into PDF using the
PDF text commands (instead of the graphical shapes), by adding the following
to the user config:
- </p>
+ </p>
<pre class="code"><entry>
<key>strokeSVGText</key>
<value>false</value>
@@ -419,54 +640,53 @@
this workaround. The fonts available are the standard pdf fonts and any
fonts that you have embedded using FOP. The font sizes will be rounded
to an integer value. In future this will be improved.
- </p>
+ </p>
<p>Note that because SVG text can be rendered as either text or a vector
graphic, you may need to consider settings in your viewer for both.
The Acrobat viewer has both "smooth line art" and "smooth text" settings
that may need to be set for SVG images to be displayed nicely on your screen
(see Edit / Preferences / Display).
This setting will not affect the printing of your document, which should be
OK in any case, but will only affect the quality of the screen display.</p>
</div>
-
-
-<a name="N1023D"></a><a name="Known+Problems"></a>
-<h3>Known Problems</h3>
+<a name="N10410"></a><a name="svg-problems"></a>
+<h4>Known Problems</h4>
<div style="margin-left: 0 ; border: 2px">
<ul>
-
+
<li>
soft mask transparency is combined with white so that it looks better
on pdf 1.3 viewers but this causes the soft mask to be slightly lighter
or darker on pdf 1.4 viewers
-</li>
-
+ </li>
+
<li>
there is some problem with a gradient inside a pattern causing a pdf
error when viewed in acrobat 5
-</li>
-
+ </li>
+
<li>
text is not always handled correctly, it may select the wrong font
especially if characters have multiple fonts in the font list
-</li>
-
+ </li>
+
<li>
more pdf text handling could be implemented
It could draw the string using the attributed character iterator
to handle tspans and other simple changes of text.
-</li>
-
+ </li>
+
<li>
JPEG images are not inserted directly into the pdf document
This area has not been implemented yet since the appropriate
method in batik is static
-</li>
-
+ </li>
+
<li>
Uniform transparency for images and other svg elements that are converted
into a raster graphic are not drawn properly in PDF. The image is opaque.
-</li>
-
+ </li>
+
</ul>
</div>
-
+</div>
+
</div>
</td><td width="10"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
1.7 +991 -182 xml-site/targets/fop/svg.pdf
<<Binary file>>
1.19 +15 -17 xml-site/targets/fop/todo.html
Index: todo.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/todo.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- todo.html 7 Apr 2003 18:54:43 -0000 1.18
+++ todo.html 14 Apr 2003 23:35:42 -0000 1.19
@@ -162,15 +162,19 @@
</li>
<li>
-<a href="compiling.html">Compiling</a>
+<a href="compiling.html">Compile</a>
</li>
<li>
-<a href="running.html">Running</a>
+<a href="configuration.html">Configure</a>
</li>
<li>
-<a href="embedding.html">Embedding</a>
+<a href="running.html">Run</a>
+</li>
+
+<li>
+<a href="embedding.html">Embed</a>
</li>
<li>
@@ -188,21 +192,15 @@
</li>
<li>
-<a href="output.html">Output Formats</a>
+<a href="output.html">Output Targets</a>
</li>
-
-</ul>
-</li>
-<li>
-<font color="#CFDCED">Extras</font>
-<ul>
<li>
-<a href="svg.html">SVG</a>
+<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
-<a href="extensions.html">Extensions</a>
+<a href="svg.html">Graphic Formats</a>
</li>
<li>
@@ -210,11 +208,7 @@
</li>
<li>
-<a href="pdfencryption.html">PDF encryption</a>
-</li>
-
-<li>
-<a href="configuration.html">Configuration</a>
+<a href="extensions.html">Extensions</a>
</li>
</ul>
@@ -229,6 +223,10 @@
<li>
<a href="faq.html">FAQs</a>
+</li>
+
+<li>
+<a href="fo.html">XSL-FO</a>
</li>
<li>
1.1 xml-site/targets/fop/fo.html
Index: fo.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>XSL-FO Input</title>
<link type="text/css" href="skin/page.css" rel="stylesheet">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<!--================= start Navigation Path ==================-->
<table summary="navigation path" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td nowrap="nowrap" valign="middle" bgcolor="#CFDCED" height="20"><img
height="1" width="5" alt="" border="0" src="skin/images/spacer.gif"><!--=====
breadcrumb trail (javascript-generated) ====--><font size="2" face="Arial,
Helvetica, Sans-serif"><script src="skin/breadcrumbs.js" language="JavaScript"
type="text/javascript"></script></font></td>
</tr>
<tr>
<td bgcolor="#4C6C8F" height="2"><img height="2" width="2" alt="" border="0"
src="skin/images/spacer.gif"></td>
</tr>
</table>
<!--================= end Navigation Path ==================-->
<!--================= start Banner ==================-->
<table summary="header with logos" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<!--================= start Group Logo ==================-->
<td bgcolor="#294563"><a href="http://xml.apache.org/"><img border="0"
class="logoImage" alt="Apache XML" src="images/group-logo.gif"></a></td>
<!--================= end Group Logo ==================-->
<!--================= start Project Logo ==================--><td
width="100%" align="center" bgcolor="#294563"><a
href="http://xml.apache.org/fop/"><img border="0" class="logoImage" alt="FOP"
src="images/logo.jpg"></a></td>
<!--================= end Project Logo ==================-->
<!--================= start Search ==================--><td valign="top"
rowspan="2" bgcolor="#294563">
<form target="_blank" action="http://www.google.com/search" method="get">
<table summary="search" border="0" cellspacing="0" cellpadding="0"
bgcolor="#4C6C8F">
<tr>
<td colspan="3"><img height="10" width="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td><img height="1" width="1" alt="" src="skin/images/spacer.gif"></td><td
nowrap="nowrap"><input value="xml.apache.org" name="sitesearch"
type="hidden"><input size="15" name="q" id="query" type="text"><img height="1"
width="5" alt="" src="skin/images/spacer.gif"><input name="Search"
value="Search" type="submit">
<br>
<font face="Arial, Helvetica, Sans-serif" size="2" color="white">
the Apache XML site
</font></td><td><img height="1" width="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td><img alt="" border="0" height="10" width="9"
src="skin/images/search-left.gif"></td><td><img height="1" width="1" alt=""
src="skin/images/spacer.gif"></td><td><img alt="" border="0" height="10"
width="9" src="skin/images/search-right.gif"></td>
</tr>
</table>
</form>
</td>
<!--================= start Search ==================--><td
bgcolor="#294563"><img height="10" width="10" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td valign="bottom" bgcolor="#294563" colspan="2">
<!--================= start Tabs ==================-->
<div class="tab">
<table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="8"><img alt="" height="8" width="8"
src="skin/images/spacer.gif"></td><td valign="bottom">
<table summary="selected tab" style="height: 1.7em" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt=""
src="skin/images/tabSel-left.gif"></td><td valign="middle"
bgcolor="#4C6C8F"><font color="#ffffff" size="2" face="Arial, Helvetica,
Sans-serif"><b><a href="index.html"><font
color="#000000">Home</font></a></b></font></td><td valign="top" width="5"
bgcolor="#4C6C8F"><img height="5" width="5" alt=""
src="skin/images/tabSel-right.gif"></td>
</tr>
</table>
</td><td width="8"><img alt="" height="8" width="8"
src="skin/images/spacer.gif"></td><td valign="bottom">
<table summary="non selected tab" style="height: 1.6em" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a
href="dev/index.html"><font face="Arial, Helvetica,
Sans-serif">Development</font></a></td><td valign="top" width="5"
bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-right.gif"></td>
</tr>
</table>
</td><td width="8"><img alt="" height="8" width="8"
src="skin/images/spacer.gif"></td><td valign="bottom">
<table summary="non selected tab" style="height: 1.6em" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a
href="design/index.html"><font face="Arial, Helvetica,
Sans-serif">Redesign</font></a></td><td valign="top" width="5"
bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-right.gif"></td>
</tr>
</table>
</td><td width="8"><img alt="" height="8" width="8"
src="skin/images/spacer.gif"></td><td valign="bottom">
<table summary="non selected tab" style="height: 1.6em" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5" bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-left.gif"></td><td valign="middle" bgcolor="#B2C4E0"><a
href="design/alt.design/index.html"><font face="Arial, Helvetica,
Sans-serif">Alt Design</font></a></td><td valign="top" width="5"
bgcolor="#B2C4E0"><img height="5" width="5" alt=""
src="skin/images/tab-right.gif"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--================= end Tabs ==================-->
</td><td bgcolor="#294563"><img alt="" width="1" height="1"
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td bgcolor="#4C6C8F" colspan="4"><img width="1" height="10" alt=""
src="skin/images/spacer.gif"></td>
</tr>
</table>
<!--================= end Banner ==================-->
<!--================= start Menu, NavBar, Content ==================-->
<table summary="page content" bgcolor="#ffffff" width="100%" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table summary="menu" border="0" cellspacing="0" cellpadding="0">
<tr>
<!--================= start left top NavBar ==================-->
<td rowspan="3" valign="top">
<table summary="blue line" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#294563"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td bgcolor="#CFDCED"><font color="#4C6C8F" size="4" face="Arial, Helvetica,
Sans-serif"> </font></td>
</tr>
<tr>
<td bgcolor="#294563"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
</table>
</td>
<!--================= end left top NavBar ==================--><td
bgcolor="#294563"><img width="1" height="1" alt=""
src="skin/images/spacer.gif"></td><td valign="bottom" bgcolor="#4C6C8F"><img
width="10" height="10" alt="" src="skin/images/spacer.gif"></td><td
nowrap="nowrap" valign="top" bgcolor="#4C6C8F">
<!--================= start Menu items ==================-->
<div class="menu">
<ul>
<li>
<font color="#CFDCED">About</font>
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="news.html">News</a>
</li>
<li>
<a href="logocontest.html">Logo contest</a>
</li>
</ul>
</li>
<li>
<font color="#CFDCED">Project</font>
<ul>
<li>
<a href="status.html">Status</a>
</li>
<li>
<a href="changes.html">Changes</a>
</li>
<li>
<a href="todo.html">Todo</a>
</li>
</ul>
</li>
<li>
<font color="#CFDCED">Using FOP</font>
<ul>
<li>
<a href="relnotes.html">Release Notes</a>
</li>
<li>
<a href="download.html">Download</a>
</li>
<li>
<a href="compiling.html">Compile</a>
</li>
<li>
<a href="configuration.html">Configure</a>
</li>
<li>
<a href="running.html">Run</a>
</li>
<li>
<a href="embedding.html">Embed</a>
</li>
<li>
<a href="anttask.html">Ant task</a>
</li>
</ul>
</li>
<li>
<font color="#CFDCED">Features</font>
<ul>
<li>
<a href="compliance.html">Compliance</a>
</li>
<li>
<a href="output.html">Output Targets</a>
</li>
<li>
<a href="pdfencryption.html">PDF encryption</a>
</li>
<li>
<a href="svg.html">Graphic Formats</a>
</li>
<li>
<a href="fonts.html">Fonts</a>
</li>
<li>
<a href="extensions.html">Extensions</a>
</li>
</ul>
</li>
<li>
<font color="#CFDCED">Resources</font>
<ul>
<li>
<a href="gethelp.html">Getting Help</a>
</li>
<li>
<a href="faq.html">FAQs</a>
</li>
<li>
<span class="sel"><font color="#ffcc00">XSL-FO</font></span>
</li>
<li>
<a href="examples.html">Examples</a>
</li>
<li>
<a href="bugs.html">Bugs</a>
</li>
<li>
<a href="license.html">License</a>
</li>
<li>
<a href="resources.html">Other</a>
</li>
</ul>
</li>
</ul>
</div>
<!--================= end Menu items ==================-->
</td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt=""
src="skin/images/spacer.gif"></td><td bgcolor="#294563"><img width="1"
height="1" alt="" src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td valign="bottom" align="left" colspan="2" rowspan="2"
bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt=""
src="skin/images/menu-left.gif"></td><td bgcolor="#4C6C8F"><img height="10"
width="10" border="0" alt="" src="skin/images/spacer.gif"></td><td
valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img
height="10" width="10" border="0" alt="" src="skin/images/menu-right.gif"></td>
</tr>
<tr>
<td height="1" bgcolor="#294563"><img width="1" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
</table>
</td><td valign="top" width="100%">
<table summary="content" width="100%" border="0" cellpadding="0"
cellspacing="0">
<!--================= start middle NavBar ==================-->
<tr>
<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td align="left" width="10" bgcolor="#CFDCED"><img width="10" height="1"
alt="" src="skin/images/spacer.gif"></td><td align="left" width="50%"
bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica,
Sans-serif">
</font><img width="10" height="8" alt=""
src="skin/images/spacer.gif"></td><td align="right" width="50%"
bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica,
Sans-serif">
</font><img width="10" height="8" alt=""
src="skin/images/spacer.gif"></td><td width="10" bgcolor="#CFDCED"><img
width="10" height="1" alt="" src="skin/images/spacer.gif"></td>
</tr>
<tr>
<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<!--================= end middle NavBar ==================-->
<!--================= start Content==================-->
<tr>
<td align="left" width="10"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td><td align="left" width="100%">
<div class="content">
<table class="title" summary="">
<tr>
<td valign="middle">
<h1>XSL-FO Input</h1>
</td><td nowrap="nowrap" width="40" align="center"><a class="dida"
href="fo.pdf"><img alt="PDF" src="skin/images/pdfdoc.gif" border="0"><br>
PDF</a></td>
</tr>
</table>
<h3>Basic Help for Using XML, XSLT, and XSL-FO</h3>
<ul class="minitoc">
<li>
<a href="#overview">Overview</a>
</li>
<li>
<a href="#xml">XML Issues</a>
<ul class="minitoc">
<li>
<a href="#xml-special-chars">Special Characters</a>
</li>
<li>
<a href="#xml-entity-chars">Entity Characters</a>
</li>
<li>
<a href="#xml-encoding">Encoding Issues</a>
</li>
</ul>
</li>
<li>
<a href="#xsl-fo">XSL-FO Issues</a>
<ul class="minitoc">
<li>
<a href="#fo-center-vertical">Vertical Centering</a>
</li>
<li>
<a href="#fo-center-table-horizon">Horizontal Centering (Tables)</a>
</li>
<li>
<a href="#fo-oddeven">Recto/Verso Static Content Differences</a>
</li>
<li>
<a href="#fo-first-page">Making the First Page Special</a>
</li>
<li>
<a href="#fo-blank-pages">Blank Pages</a>
</li>
<li>
<a href="#fo-preformat">Preformatting Content</a>
</li>
<li>
<a href="#fo-total-pages">Total Document Pages</a>
</li>
<li>
<a href="#fo-region-align">Aligning Regions</a>
</li>
<li>
<a href="#fo-lines">Drawing Lines</a>
</li>
<li>
<a href="#fo-validate">Validating XSL-FO</a>
</li>
</ul>
</li>
</ul>
<a name="N101C1"></a><a name="overview"></a>
<h3>Overview</h3>
<div style="margin-left: 0 ; border: 2px">
<p>
FOP uses XSL-FO as input.
It is the responsibility of the user to make sure that the XSL-FO submitted
to FOP is correct.
The tutorial items presented here are not comprehensive, but are of the FAQ
variety.
</p>
</div>
<a name="N101CB"></a><a name="xml"></a>
<h3>XML Issues</h3>
<div style="margin-left: 0 ; border: 2px">
<a name="N101D1"></a><a name="xml-special-chars"></a>
<h4>Special Characters</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
When entering special (non-ASCII) characters in XML, the general
rule is to use the applicable Unicode character instead of trying to use a
character entity as you would with HTML.
Remember that HTML is an SGML document type.
SGML has a limited character set, which requires it to use character entities
to represent special characters.
One of the improvements of XML over SGML (and thus HTML) is native support
for Unicode.
Basic XML has only a handful of character entities, primarily because it
doesn't really need more.
</p>
<p>
Entities such as <span class="codefrag">&uuml;</span> (u with
an umlaut), which work in HTML, will be flagged as undefined entities unless
you define them yourself in your DTD.
Use the corresponding Unicode character instead.
A list of predefined HTML entities and their Unicode codepoints can be found
at <a href="http://www.w3.org/TR/html4/sgml/entities.html">Character entity
references in HTML 4</a>.
</p>
<p>
One common example is <span class="codefrag">&nbsp;</span>,
used to obtain a non-breaking space in HTML.
In XML, use &#160; instead.
</p>
<p>
For other non-ASCII characters, such as the Euro symbol, checkbox,
etc., see the <a href="http://www.unicode.org/charts/charindex.html">Unicode
Reference By Name</a> document that is found at the <a
href="http://www.unicode.org">Unicode Consortium</a> site.
</p>
<p>
After finding the correct Unicode codepoint to represent the
character, use <a
href="http://www.w3.org/TR/2000/REC-xml-20001006#sec-references">XML Character
References</a> to put the character into your source XML, XSLT or FO.
See the non-breaking-space comments above for an example of the syntax using
decimal notation.
The following hexadecimal example will result in a Euro sign:
</p>
<pre class="code">&#x20AC;</pre>
<p>
Getting your XML correctly encoded is only part of the job.
If you want the character to display or print correctly (and you probably
do), then the selected font must contain the necessary glyph.
Because of differences between font encoding methods, and limitations in some
font technologies, this can be a troublesome issue, especially for symbol
characters.
The FOP example file <a href="fo/fonts.fo.pdf">Base-14 Font Character
Mapping</a> is a very useful resource in sorting these issues out for the
Base-14 fonts.
For other fonts, use font editing sofware or operating system utilities (such
as the Character Map in most Windows platforms) to determine what characters
the font supports.
</p>
<p>
An alternative to encoding the character and making it available
through a font is to use an embedded graphic to represent the character: GIF,
PNG, SVG, etc.
</p>
</div>
<a name="N1020B"></a><a name="xml-entity-chars"></a>
<h4>Entity Characters</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
The handful of basic XML character entities that do exist are the
ampersand, apostrophe, less-than, greater-than, and single-quote characters.
These are needed to distinguish markup tags from content, and to distinguish
character entities from content.
To avoid parser complaints about illegal characters and entities in your
input, ensure that ampersands in text and attributes are written as &amp;,
"<" is written as &lt;, and ">" as &gt;.
It is not necessary everywhere, but it is wise to do so anyway, just to be
sure.
</p>
<p>
Most XML parsers will provide a line number and sometimes a column
number for offending characters.
</p>
<p>
Review the <a href="http://www.w3.org/XML/">XML Specification</a>
or a good tutorial for details of the XML file format.
</p>
</div>
<a name="N1021F"></a><a name="xml-encoding"></a>
<h4>Encoding Issues</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
If the parser complains about illegal bytes or characters in the
input, or there are unexpected characters in the output, this is usually is the
result of a character encoding problem.
See the <a href="http://www.dpawson.co.uk/xsl">XSL FAQ</a> for additional
information.
Many software packages that produce XML, including XSLT processors, use UTF-8
encoding as a default.
If you view their output with something not aware of the encoding, like
Notepad for Win95/98/ME/NT, funny characters are displayed. A Å is a
giveaway.
</p>
</div>
</div>
<a name="N1022E"></a><a name="xsl-fo"></a>
<h3>XSL-FO Issues</h3>
<div style="margin-left: 0 ; border: 2px">
<a name="N10234"></a><a name="fo-center-vertical"></a>
<h4>Vertical Centering</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
To vertically center an image, table, or other item, use
display-align="center".
FOP implements this for block containers and table cell.
Here is a small, self-contained document centering an image on a page:
</p>
<pre class="code"><?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="content"
page-width="210mm" page-height="297mm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="content">
<fo:flow flow-name="xsl-region-body">
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row height="297mm">
<fo:table-cell display-align="center">
<fo:block text-align="center">
<fo:external-graphic src="fop.jpg"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root></pre>
</div>
<a name="N10242"></a><a name="fo-center-table-horizon"></a>
<h4>Horizontal Centering (Tables)</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
To center a table horizontally, one possibility is to add one
column on the left and one on the right which pad the table so that the visible
part is centered:
</p>
<pre class="code"><?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="content"
page-width="210mm" page-height="297mm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="content">
<fo:flow flow-name="xsl-region-body">
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell/>
<fo:table-cell>
<fo:block>foo</fo:block>
</fo:table-cell>
<fo:table-cell/>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root></pre>
<p>
If your table is more complicated, or if defining borders on
individual cells becomes too much work, use the code above and nest your table
within the middle cell.
</p>
</div>
<a name="N10253"></a><a name="fo-oddeven"></a>
<h4>Recto/Verso Static Content Differences</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
One frequent request is that static content be different between
recto pages (right-side or odd-numbered pages typically) and verso
pages(left-side or even-numbered pages typically).
For example, you may wish to place the page number on the "outer" side of
each page.
There are examples in the FO distribution and in the <a
href="http://www.dpawson.co.uk/xsl/sect3/index.html">XSL FAQ FO section</a>.
</p>
<p>
First, define a page master with alternating pages masters for odd
and even pages.
Then specify appropriate regions in these page masters, giving them different
names.
Use these names to put different static content in these regions. Here is a
self-contained demonstration:
</p>
<pre class="code"><?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="even"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after region-name="footer-even" extent="20mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="odd"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after region-name="footer-odd" extent="20mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference odd-or-even="even"
master-reference="even"/>
<fo:conditional-page-master-reference odd-or-even="odd"
master-reference="odd"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="document">
<fo:static-content flow-name="footer-even">
<fo:block
text-align="start"><fo:page-number/></fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-odd">
<fo:block
text-align-last="end"><fo:page-number/></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block/>
<fo:block break-before="page"/>
</fo:flow>
</fo:page-sequence>
</fo:root></pre>
</div>
<a name="N10268"></a><a name="fo-first-page"></a>
<h4>Making the First Page Special</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
To get a special header on the first page, one possibility is to
insert it into the flow instead of the static content. Alternatively, use a
page master referring to different page masters for the first page and the
rest. Here is a code sample:
</p>
<pre class="code"><?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after region-name="footer-first" extent="20mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="rest"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after region-name="footer-rest" extent="20mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference page-position="first"
master-reference="first"/>
<fo:conditional-page-master-reference page-position="rest"
master-reference="rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="document">
<fo:static-content flow-name="footer-first">
<fo:block text-align="center">First page.</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-rest">
<fo:block text-align-last="center">Other page.</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block/>
<fo:block break-before="page"/>
<fo:block break-before="page"/>
</fo:flow>
</fo:page-sequence>
</fo:root></pre>
</div>
<a name="N10276"></a><a name="fo-blank-pages"></a>
<h4>Blank Pages</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
Sometimes it is desirable to insert blank pages within your output,
starting, for example, a new chapter on an odd page or an even page.
A blank page can be forced by using <span
class="codefrag">break-before="page-even"</span> or similar properties, or by a
force-page-count="end-on-odd" on a page sequence.
</p>
<p>
To write "This page is intentionally left blank" (or something
similar) on an intentionally blank page, first define a conditional page master
with a page master specific for blank pages.
This allows you to specify static content for blank pages (by definition, a
page is blank if no content from a flow is rendered on the page).
Omit your normal headers and footers, and use (for example) an extended
header to print the "..left blank" statement:
</p>
<pre class="code"><?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after region-name="footer-normal" extent="20mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="blank"
page-height="297mm" page-width="210mm"
margin-top="20mm" margin-bottom="20mm"
margin-left="25mm" margin-right="25mm">
<fo:region-body/>
<fo:region-before region-name="header-blank" extent="297mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
blank-or-not-blank="not-blank"
master-reference="normal"/>
<fo:conditional-page-master-reference blank-or-not-blank="blank"
master-reference="blank"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="document"
force-page-count="end-on-even">
<fo:static-content flow-name="footer-normal">
<fo:block text-align="center">Normal footer</fo:block>
</fo:static-content>
<fo:static-content flow-name="header-blank">
<fo:block space-before="100mm" text-align-last="center">
Intentionally left blank.</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block/>
</fo:flow>
</fo:page-sequence>
</fo:root></pre>
</div>
<a name="N1028A"></a><a name="fo-preformat"></a>
<h4>Preformatting Content</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
Sometimes it is desirable to retain linebreaks and hard spaces, and
to get preformatted text to pass through without being changed.
The XSL-FO specification provides some properties for this: <a
href="http://www.w3.org/TR/xsl/slice7.html#white-space-collapse">white-space-collapse</a>
and <a
href="http://www.w3.org/TR/xsl/slice7.html#linefeed-treatment">linefeed-treatment</a>.
In FOP, use white-space-collapse="false" on an enclosing block.
</p>
<div class="frame warning">
<div class="label">Warning</div>
<div class="content">
Due to a bug in current versions of FOP, setting
white-space-collapse="false" will also preserve line breaks in the text. Do not
rely on this behavior, as it is non-conformant and will be changed.
</div>
</div>
</div>
<a name="N1029F"></a><a name="fo-total-pages"></a>
<h4>Total Document Pages</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
It is frequently desirable to know the total number of pages in a
document and to use that number within the document.
For example, you might wish to show the page number on the first page as
being "page 1 of 12".
To accomplish this, place an empty block with an id at the end of the flow:
</p>
<pre class="code"><fo:flow ...>
...
<fo:block id="last-page"/>
</fo:flow></pre>
<p>
Get the number of the last page as follows:
</p>
<pre class="code"> <fo:page-nuber-citation ref-id="last-page"/></pre>
<p>
This does not work in certain situations: multiple page sequences,
an initial page number other than 1, or forcing a certain page count, thereby
producing blank pages at the end.
</p>
<div class="frame warning">
<div class="label">Warning</div>
<div class="content">
There is no reliable way to get the real total page count with FO
mechanisms. You can only get <em>page numbers</em>.
</div>
</div>
<p>
The FOP library provides a method to get the total page count after
an FO document has been rendered.
One possibility is to implement your own wrapper to do a dummy rendering,
inquire the total page count and then perform the real rendering, passing the
total page count to the XSLT processor to splice it into the generated FO.
For example:
</p>
<pre class="code">import org.apache.fop.apps.*;
import org.xml.sax.*;
import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.sax.*;
import javax.xml.transform.stream.*;
class rendtest {
public static void main(String args[]) {
try {
Driver driver=new Driver();
driver.setOutputStream(new FileOutputStream(args[2]));
driver.setRenderer(Driver.RENDER_PDF);
Transformer transformer=TransformerFactory.newInstance()
.newTransformer(new StreamSource(new File(args[1])));
transformer.setParameter("page-count","#");
transformer.transform(new StreamSource(new File(args[0])),
new SAXResult(driver.getContentHandler()));
String pageCount=Integer.toString(driver.getResults().getPageCount());
driver=new Driver();
driver.setOutputStream(new FileOutputStream(args[2]));
driver.setRenderer(Driver.RENDER_PDF);
transformer=TransformerFactory.newInstance()
.newTransformer(new StreamSource(new File(args[1])));
transformer.setParameter("page-count",pageCount);
transformer.transform(new StreamSource(new File(args[0])),
new SAXResult(driver.getContentHandler()));
}
catch( Exception e) {
e.printStackTrace();
}
}
}</pre>
<p>
Declare and use the parameter "page-count" in your XSLT.
</p>
<div class="frame warning">
<div class="label">Warning</div>
<div class="content">
It is possible to run into a convergence problem with this
solution. Replacing the "#" placeholder in the first run with the actual page
count in the second run, may change the total number of pages in the document.
</div>
</div>
</div>
<a name="N102CA"></a><a name="fo-region-align"></a>
<h4>Aligning Regions</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
Although it may seem counterintuitive, the regions on a page may
overlap.
Defining a certain body region does not automatically constrain other regions.
Instead, this has to be done explicitly.
Sometimes for creative reasons it may be desirable to have the regions
overlap.
Otherwise, you will want to set them up so that the header does not overlap
body content or the body extend into the footer.
</p>
<p>
Assuming you wish to keep the regions separate, if you have a
header region with an extent of 20mm, you should define a margin for the body
region of at least 20mm too.
Otherwise the header content may overwrite some stuff in the body region.
This applies similarly to the extent of the after region and the bottom
margin of the body region.
</p>
</div>
<a name="N102D7"></a><a name="fo-lines"></a>
<h4>Drawing Lines</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
It is frequently desirable to draw lines in a document, as
separators, side bars or folding marks. There are several possibilities:
</p>
<ul>
<li>
Horizontal lines can be drawn using <a
href="http://www.w3.org/TR/xsl/slice6.html#fo_leader">fo:leader</a>.
</li>
<li>
Use a solid border on a suitable fo:block. This will work for
horizontal and vertical lines only.
</li>
<li>
Insert a graphic. GIF, PNG SVG, whatever.
</li>
</ul>
</div>
<a name="N102F1"></a><a name="fo-validate"></a>
<h4>Validating XSL-FO</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
<a href="http://www.renderx.com">RenderX</a> has provided an <a
href="http://www.renderx.com/Tests/validator/fo.dtd.html">Unofficial DTD for FO
Documents</a>, which may be helpful in validating general FO issues.
</p>
<p>
FOP also maintains an <a
href="http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-fop/docs/foschema/fop.xsd?rev=HEAD&content-type=text/plain">Unofficial
FOP Schema</a> in the FOP CVS Repository.
This document can be used either to validate against the FO standard, or
against the actual FOP implementation.
See the notes near the beginning of the document for instructions on how to
use it.
</p>
</div>
</div>
</div>
</td><td width="10"><img width="10" height="1" alt=""
src="skin/images/spacer.gif"></td>
</tr>
<!--================= end Content==================-->
</table>
</td>
</tr>
</table>
<!--================= end Menu, NavBar, Content ==================-->
<!--================= start Footer ==================-->
<table summary="footer" cellspacing="0" cellpadding="0" width="100%"
border="0">
<tr>
<td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt=""
src="skin/images/spacer.gif"><a href="skin/images/label.gif"></a><a
href="skin/images/page.gif"></a><a href="skin/images/chapter.gif"></a><a
href="skin/images/chapter_open.gif"></a><a
href="skin/images/current.gif"></a><a href="/favicon.ico"></a></td>
</tr>
<tr>
<td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font
size="2" face="Arial, Helvetica, Sans-Serif">Copyright ©
1999-2003 The Apache Software Foundation. All rights
reserved.<script type="text/javascript" language="JavaScript"><!--
document.write(" - "+"Last Published: " +
document.lastModified);
// --></script></font></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#CFDCED" class="logos"></td>
</tr>
</table>
<!--================= end Footer ==================-->
</body>
</html>
1.1 xml-site/targets/fop/fo.pdf
<<Binary file>>
1.13 +2 -2 xml-site/targets/fop/design/embedding.html
Index: embedding.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/design/embedding.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- embedding.html 7 Apr 2003 18:54:45 -0000 1.12
+++ embedding.html 14 Apr 2003 23:35:45 -0000 1.13
@@ -308,10 +308,10 @@
<li>something that makes decisions where the specifiction indicates
that the user agent should decide</li>
-<li>Fop as the user agent, represented by a class that handles
+<li>FOP as the user agent, represented by a class that handles
various setup and decision values</li>
-<li>an class that handles context for a particular Fop conversion
+<li>an class that handles context for a particular FOP conversion
that can be configured/overridden when embedding</li>
</ul>
1.5 +60 -60 xml-site/targets/fop/design/embedding.pdf
<<Binary file>>
1.19 +0 -0
xml-site/targets/fop/design/alt.design/FOPropertySets.html
Index: FOPropertySets.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/FOPropertySets.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.10 +0 -0 xml-site/targets/fop/design/alt.design/FoXMLEvent.html
Index: FoXMLEvent.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/design/alt.design/FoXMLEvent.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
1.10 +0 -0
xml-site/targets/fop/design/alt.design/SyncedFoXmlEventsBuffer.html
Index: SyncedFoXmlEventsBuffer.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/SyncedFoXmlEventsBuffer.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
1.10 +0 -0 xml-site/targets/fop/design/alt.design/XMLNamespaces.html
Index: XMLNamespaces.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/XMLNamespaces.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
1.9 +0 -0 xml-site/targets/fop/design/alt.design/codedisplay.js
Index: codedisplay.js
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/design/alt.design/codedisplay.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/AbstractPropertyValue.html
Index: AbstractPropertyValue.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/AbstractPropertyValue.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/FOAttributes.html
Index: FOAttributes.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/FOAttributes.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropNames.html
Index: PropNames.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropNames.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/Property.html
Index: Property.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/Property.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertyConsts.html
Index: PropertyConsts.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertyConsts.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertyParser.html
Index: PropertyParser.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertyParser.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertySets.html
Index: PropertySets.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertySets.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertyTokenizer.html
Index: PropertyTokenizer.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertyTokenizer.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertyValue.html
Index: PropertyValue.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertyValue.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/PropertyValueList.html
Index: PropertyValueList.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/PropertyValueList.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.19 +0 -0
xml-site/targets/fop/design/alt.design/properties/ShorthandPropSets.html
Index: ShorthandPropSets.html
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/ShorthandPropSets.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
1.9 +0 -0
xml-site/targets/fop/design/alt.design/properties/codedisplay.js
Index: codedisplay.js
===================================================================
RCS file:
/home/cvs/xml-site/targets/fop/design/alt.design/properties/codedisplay.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
1.11 +2 -2 xml-site/targets/fop/dev/configuration.html
Index: configuration.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/dev/configuration.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- configuration.html 7 Apr 2003 18:54:49 -0000 1.10
+++ configuration.html 14 Apr 2003 23:35:47 -0000 1.11
@@ -272,7 +272,7 @@
<a name="N101CB"></a><a name="Setting+up+Hyphenation"></a>
<h3>Setting up Hyphenation</h3>
<div style="margin-left: 0 ; border: 2px">
-<p>Fop comes already with some hyphenation patterns. If you
+<p>FOP comes already with some hyphenation patterns. If you
need a hyphenation pattern which isn't included in the
distribution, do the following:
</p>
@@ -290,7 +290,7 @@
</p>
<p>3. If you have build your new hyphenation pattern file
successfully you put the file into the /hyph directoy
- and rebuild Fop. The file will be picked up and added
+ and rebuild FOP. The file will be picked up and added
to the fop.jar.
</p>
</div>
1.6 +1 -1 xml-site/targets/fop/dev/configuration.pdf
<<Binary file>>
1.11 +1 -1 xml-site/targets/fop/dev/extensions.html
Index: extensions.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/dev/extensions.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- extensions.html 7 Apr 2003 18:54:49 -0000 1.10
+++ extensions.html 14 Apr 2003 23:35:47 -0000 1.11
@@ -306,7 +306,7 @@
<h4>PDF Bookmarks</h4>
<div style="margin-left: 0 ; border: 2px">
<p>
-To use this standard Fop extension, you need to add a namespace entry for
+To use this standard FOP extension, you need to add a namespace entry for
http://xml.apache.org/fop/extensions on the root element. </p>
<p>You can provide outlines inside the root object (but outside
any page-sequences or
1.6 +46 -46 xml-site/targets/fop/dev/extensions.pdf
<<Binary file>>
1.12 +10 -10 xml-site/targets/fop/dev/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/dev/index.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- index.html 12 Apr 2003 19:29:07 -0000 1.11
+++ index.html 14 Apr 2003 23:35:47 -0000 1.12
@@ -257,10 +257,10 @@
<a href="#Getting+Involved">Getting Involved</a>
<ul class="minitoc">
<li>
-<a href="#Get+familiar+with+the+Fop+related+standards">Get familiar with the
Fop related standards</a>
+<a href="#Get+familiar+with+the+FOP-related+standards">Get familiar with the
FOP-related standards</a>
</li>
<li>
-<a href="#Fop%27s+Design">Fop's Design</a>
+<a href="#FOP%27s+Design">FOP's Design</a>
</li>
<li>
<a href="#Subscribe+to+the+fop+developers+list">Subscribe to the fop
developers list</a>
@@ -311,13 +311,13 @@
The development of FOP and the related plans and tasks are discussed on the
dev mailing list.
Users can help or get issues resolved by contributing information and
examples to the developers.
</p>
-<a name="N101FF"></a><a
name="Get+familiar+with+the+Fop+related+standards"></a>
-<h4>Get familiar with the Fop related standards</h4>
+<a name="N101FF"></a><a
name="Get+familiar+with+the+FOP-related+standards"></a>
+<h4>Get familiar with the FOP-related standards</h4>
<div style="margin-left: 0 ; border: 2px">
-<p>At the moment Fop is mainly a tool to render XSL-FO files to pdf.
Therefore if you want to contribute to Fop you should become familiar with
these standards. You can find links at <a
href="../resources.html#specs">Specifications</a>.</p>
+<p>At the moment FOP is mainly a tool to render XSL-FO files to pdf.
Therefore if you want to contribute to FOP you should become familiar with
these standards. You can find links at <a
href="../resources.html#specs">Specifications</a>.</p>
</div>
-<a name="N1020D"></a><a name="Fop%27s+Design"></a>
-<h4>Fop's Design</h4>
+<a name="N1020D"></a><a name="FOP%27s+Design"></a>
+<h4>FOP's Design</h4>
<div style="margin-left: 0 ; border: 2px">
<p>The design for FOP is specified under the <a
href="../design/index.html">Design</a> section. This is where the information
on how FOP is developed and designed
internally will be kept.
@@ -331,7 +331,7 @@
</p>
<p>Sending bug reports and feature requests to the list is a welcome and
important contribution to
- developing Fop. </p>
+ developing FOP. </p>
<p>Read also the <a
href="http://marc.theaimsgroup.com/?l=fop-dev&r=1&w=2">archive</a>
of the discussion list fop-dev to get an idea of the issues being
discussed. </p>
</div>
@@ -340,12 +340,12 @@
<div style="margin-left: 0 ; border: 2px">
<p>Between releases the newest code can be accessed via cvs. To do this you
need to install a cvs
client on your computer, if it is not already there. An explanation how
to connect to the
- Fop source repository can be found at <a
href="http://xml.apache.org/cvs.html">http://xml.apache.org/cvs.html</a>.
+ FOP source repository can be found at <a
href="http://xml.apache.org/cvs.html">http://xml.apache.org/cvs.html</a>.
An introduction into cvs and the cvs manual can be found in the
<a href="http://xml.apache.org/library.html">reference library</a>.</p>
<p>All changes to the code repository are sent to a special mailing list.
After a cvs commit the diffs are automatically sent to this list. You can
subscribe
to [email protected] by sending an email to <a
href="mailto:fop-cvs-subscribe.at.xml.apache.org">
- [EMAIL PROTECTED]</a>. If you want to contribute to the development of
Fop you should subscribe,
+ [EMAIL PROTECTED]</a>. If you want to contribute to the development of
FOP you should subscribe,
because it is important that you follow changes being made. </p>
</div>
<a name="N1024C"></a><a name="patches"></a>
1.9 +94 -94 xml-site/targets/fop/dev/index.pdf
<<Binary file>>
1.11 +1 -1 xml-site/targets/fop/dev/svg.html
Index: svg.html
===================================================================
RCS file: /home/cvs/xml-site/targets/fop/dev/svg.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- svg.html 7 Apr 2003 18:54:50 -0000 1.10
+++ svg.html 14 Apr 2003 23:35:47 -0000 1.11
@@ -263,7 +263,7 @@
</li>
</ul>
-<p>See also <a href="../svg.html">SVG User Documentation</a> for more
information.</p>
+<p>See also <a href="../svg.html#svg">SVG User Documentation</a> for more
information.</p>
<a name="N101C5"></a><a name="Examples"></a>
<h3>Examples</h3>
1.7 +87 -87 xml-site/targets/fop/dev/svg.pdf
<<Binary file>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]