You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by bu...@apache.org on 2012/10/23 17:05:47 UTC
svn commit: r835892 [13/17] - in
/websites/staging/xmlgraphics/trunk/content: ./ batik/ batik/dev/
batik/tools/ batik/using/ batik/using/scripting/ commons/ fop/ fop/0.95/
fop/1.0/ fop/1.1/ fop/dev/ fop/dev/design/ fop/trunk/
Modified: websites/staging/xmlgraphics/trunk/content/fop/dev/rtflib.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/dev/rtflib.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/dev/rtflib.html Tue Oct 23 15:05:41 2012
@@ -331,8 +331,8 @@ $(document).ready(function () {
<div id="content" class="grid_16">
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/dev/">Dev</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="general">General Information</h1>
-<h2 id="intro">Introduction</h2>
+<h1 id="general-information-wzxhzdk2wzxhzdk3">General Information <a id="#general"></a></h1>
+<h2 id="introduction-wzxhzdk4wzxhzdk5">Introduction # <a id="#intro"></a></h2>
<p>The RTFLib package is an open-source, <em>independent</em> package suitable for writing RTF files in a java environment. By <em>independent</em> we mean:</p>
<ul>
<li>
@@ -343,13 +343,13 @@ $(document).ready(function () {
</li>
</ul>
<p>The FOP development team intends to keep the RTFLib package independent so that it can be used for other purposes.</p>
-<h2 id="history">History</h2>
+<h2 id="history-wzxhzdk6wzxhzdk7">History # <a id="#history"></a></h2>
<p>RTFLib was originally developed by <a href="mailto:bdelacretaz@apache.org">Bertrand Delacrétaz</a> and the <a href="http://www.jfor.org">jfor</a> team. jfor was written under an Apache-style license, and the jfor team contributed the code to the Apache Software Foundation in June, 2003. RTFLib is a subset of the original jfor project, which also includes an XSL-FO parsing mechanism for a complete XSL-FO to RTF solution.</p>
-<h2 id="status">Status</h2>
+<h2 id="status-wzxhzdk8wzxhzdk9">Status # <a id="#status"></a></h2>
<p>Although FOP's implementation of the RTFLib package is very incomplete, the RTFLib package itself is relatively mature. RTFLib is only available in the trunk <a href="index.html#lines">line of FOP development</a> .
<warning>This documentation is a work in progress. If you see errors or omissions, please report them to the <a href="index.html#mail-fop-dev">fop-dev mailing list</a> .</warning></p>
-<h1 id="userdoc">User Documentation</h1>
-<h2 id="userdoc-overview">Overview</h2>
+<h1 id="user-documentation-wzxhzdk12wzxhzdk13">User Documentation <a id="#userdoc"></a></h1>
+<h2 id="overview-wzxhzdk14wzxhzdk15">Overview # <a id="#userdoc-overview"></a></h2>
<p>Perhaps the easiest way to see how to use RTFLib is by looking at an example. A set of test documents is part of the package, and can be <a href="http://cvs.apache.org/viewcvs.cgi/xml-fop/src/java/org/apache/fop/rtf/rtflib/testdocs/">viewed online</a> . A quick look at the Abstract <a href="http://cvs.apache.org/viewcvs.cgi/xml-fop/src/java/org/apache/fop/rtf/rtflib/testdocs/TestDocument.java?rev=HEAD&content-type=text/vnd.viewcvs-markup">TestDocument</a> class, and one of the Concrete subclasses, <a href="http://cvs.apache.org/viewcvs.cgi/xml-fop/src/java/org/apache/fop/rtf/rtflib/testdocs/SimpleDocument.java?rev=HEAD&content-type=text/vnd.viewcvs-markup">SimpleDocument</a> will provide the basics of how to use the package.</p>
<p>There are two basic concepts you will need to understand in order to use RTFLib:</p>
<ul>
@@ -361,7 +361,7 @@ $(document).ready(function () {
</li>
</ul>
<p>RTFLib handles the process of converting to and writing the RTF content as the document is created. All you need to do is flush the document at the end to make sure that the last pieces get written.</p>
-<h2 id="userdoc-structure">Document Structure</h2>
+<h2 id="document-structure-wzxhzdk16wzxhzdk17">Document Structure # <a id="#userdoc-structure"></a></h2>
<p><warning>This section is very incomplete.</warning>
The documentation in this section is intended to provide a high-level view of the process of building an RTF document. For more detailed API documentation of the various methods, be sure to consult the Javadocs for RTFLib.</p>
<p>The following table summarizes the various containers that can be created:</p>
@@ -443,16 +443,16 @@ The documentation in this section is int
</tr>
</tbody>
</table>
-<h2 id="userdoc-attributes">Attributes</h2>
+<h2 id="attributes-wzxhzdk20wzxhzdk21">Attributes # <a id="#userdoc-attributes"></a></h2>
<p><warning>This section is very incomplete.</warning>
Attributes can be set for each container and piece of content in the document. The general approach is to build an RtfAttributes object containing the various attributes, then pass that RtfAttributes object to the method that creates the new container or content. See the Javadoc API documentation for RtfAttributes for details on the syntax for creating an RtfAttributes object. The following information lists the various attributes that can be set for each type of container.</p>
-<h3 id="userdoc-attr-ig">Information Group</h3>
+<h3 id="information-group-wzxhzdk24wzxhzdk25">Information Group ## <a id="#userdoc-attr-ig"></a></h3>
<p>These attributes are set when creating a Document.</p>
-<h3 id="userdoc-attr-df">Document Formatting</h3>
+<h3 id="document-formatting-wzxhzdk26wzxhzdk27">Document Formatting ## <a id="#userdoc-attr-df"></a></h3>
<p>These attributes are set when creating a Document.</p>
-<h3 id="userdoc-attr-sf">Section Formatting</h3>
+<h3 id="section-formatting-wzxhzdk28wzxhzdk29">Section Formatting ## <a id="#userdoc-attr-sf"></a></h3>
<p>These attributes are set when creating a Section.</p>
-<h3 id="userdoc-attr-pf">Paragraph Formatting</h3>
+<h3 id="paragraph-formatting-wzxhzdk30wzxhzdk31">Paragraph Formatting ## <a id="#userdoc-attr-pf"></a></h3>
<p>These attributes are set when creating a Paragraph.</p>
<table>
<thead>
@@ -592,7 +592,7 @@ Attributes can be set for each container
</tr>
</tbody>
</table>
-<h3 id="userdoc-attr-cf">Character Formatting</h3>
+<h3 id="character-formatting-wzxhzdk32wzxhzdk33">Character Formatting ## <a id="#userdoc-attr-cf"></a></h3>
<p>These attributes are set when creating a Paragraph, or Text.</p>
<table>
<thead>
Modified: websites/staging/xmlgraphics/trunk/content/fop/dev/svg.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/dev/svg.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/dev/svg.html Tue Oct 23 15:05:41 2012
@@ -332,7 +332,7 @@ $(document).ready(function () {
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/dev/">Dev</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
<p>See also <a href="../trunk/graphics.html#svg">SVG User Documentation</a> for more information.</p>
-<h1 id="Examples">Examples</h1>
+<h1 id="examples-wzxhzdk2wzxhzdk3">Examples <a id="#Examples"></a></h1>
<p>These examples illustrate a number of issues relating to conversion to PDF:</p>
<table>
<thead>
@@ -393,9 +393,9 @@ You will need Acrobat 5.0 to see transpa
<caption>XSL:FO to PDF examples</caption>| | fo file | pdf result |
|--|---------|------------|
| embedding svg | <a href="fo/embedding.fo">embedding.fo</a> | <a href="fo/embedding.fo.pdf">embedding.fo.pdf</a> |</p>
-<h1 id="developer-notes-developernotes">Developer Notes # {#Developer+Notes}</h1>
+<h1 id="developer-notes-wzxhzdk6wzxhzdk7">Developer Notes <a id="#Developer+Notes"></a></h1>
<p>For most output formats in FOP the SVG is simply drawn into an image with Batik. For PDF there are a set of classes to handle drawing the <a href="http://xml.apache.org/batik/architecture.html">GVT (Graphic Vector Toolkit)</a> into PDF markup.</p>
-<h2 id="Classes">Classes</h2>
+<h2 id="classes-wzxhzdk8wzxhzdk9">Classes # <a id="#Classes"></a></h2>
<p>These are the relevant classes, found in the package org.apache.fop.svg :</p>
<ul>
<li>
@@ -408,7 +408,7 @@ You will need Acrobat 5.0 to see transpa
<p><em>PDFTranscoder</em> <br></br>used by Batik to transcode an svg document into a standalone pdf, via PDFDocumentGraphics2D.</p>
</li>
</ul>
-<h2 id="Ideas">Ideas</h2>
+<h2 id="ideas-wzxhzdk10wzxhzdk11">Ideas # <a id="#Ideas"></a></h2>
<p>Batik can convert ttf to svg font. This svg font could be converted into a pdf stroked font (type 3 font).</p></div>
</div>
Modified: websites/staging/xmlgraphics/trunk/content/fop/dev/testing.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/dev/testing.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/dev/testing.html Tue Oct 23 15:05:41 2012
@@ -331,7 +331,7 @@ $(document).ready(function () {
<div id="content" class="grid_16">
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/dev/">Dev</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="build">"Build" Testing</h1>
+<h1 id="build-testing-wzxhzdk2wzxhzdk3">"Build" Testing <a id="#build"></a></h1>
<p>Apache™ projects use an automated build tool called "gump" to create nightly builds from the SVN repository. Gump sends "nag" messages if the build fails. This can be considered a sort of basic test of the build process. To view the most recent logs of the gump builds:</p>
<ul>
<li>
@@ -341,32 +341,32 @@ $(document).ready(function () {
<p><a href="http://gump.cocoondev.org/xml-fop-maintenance.html">Gump build for the Maintenance Branch</a> </p>
</li>
</ul>
-<h1 id="basic">Basic/API Testing</h1>
+<h1 id="basicapi-testing-wzxhzdk5wzxhzdk6">Basic/API Testing <a id="#basic"></a></h1>
<p>There is a group of basic API tests that are included in the build process. For these tests to occur, JUnit must be available to Ant (simply copy junit.jar into Ant's lib directory). The build will then report error(s) if the high-level APIs for Driver and the Transcoders fail. The tests do not check the output, but only ensure that something is generated and without exceptions.</p>
-<h1 id="layoutengine">Layout Engine Testing</h1>
+<h1 id="layout-engine-testing-wzxhzdk7wzxhzdk8">Layout Engine Testing <a id="#layoutengine"></a></h1>
<p>The <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/test/layoutengine/"></a> directory in the repository contains a test suite for checking the functionality of Apache� FOP's layout engine. For information on how to create test cases for the layout engine, please visit the <a href="http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests">Wiki page</a> .</p>
-<h1 id="functional">Functional Testing</h1>
+<h1 id="functional-testing-wzxhzdk9wzxhzdk10">Functional Testing <a id="#functional"></a></h1>
<p><warning>The "functional" testing section on this page is currently inoperative.</warning></p>
-<h2 id="running-and-using-tests-runningandusingtests">Running and Using Tests ## {#Running+and+Using+Tests}</h2>
+<h2 id="running-and-using-tests-wzxhzdk13wzxhzdk14">Running and Using Tests # <a id="#Running+and+Using+Tests"></a></h2>
<p>Testing is an important part of getting FOP to operate correctly and conform to the necessary standards.</p>
<p>A testing system has been set up that works with as a build target when developing with FOP. A developer can run the tests after making changes to the code, the aim is to have the tests run to verfiy that nothing working has been broken.</p>
<p>To setup the testing the developer must place a reference fop.jar in the "<cvs_repository>/test/reference/" directory. This jar will be dynamically loaded to create the reference output.</p>
-<h2 id="w3c-testsuite-w3ctestsuite">W3C TestSuite ## {#W3C+TestSuite}</h2>
+<h2 id="w3c-testsuite-wzxhzdk16wzxhzdk17">W3C TestSuite # <a id="#W3C+TestSuite"></a></h2>
<p>The testing is set up so that you can download the testsuite from<jump href="http://www.w3.org/Style/XSL/TestSuite/">http://www.w3.org/Style/XSL/TestSuite/</jump>, unzip the file into the base directory of FOP. Then you can uncomment the lines in the build.xml file in the test target and itwill run through all the tests in the testsuite distribution.</p>
-<h2 id="writing-a-test-writingatest">Writing a Test ## {#Writing+a+Test}</h2>
+<h2 id="writing-a-test-wzxhzdk20wzxhzdk21">Writing a Test # <a id="#Writing+a+Test"></a></h2>
<p>A test belongs to one of a few catagories. A basic test should excercise one element in a number of situations such as changing a property. This should have at least one normal value, one border value and one invalid value. If the property can be of different types then this should also be included.</p>
<p>A bug test is a test that is specifically aimed at a problem with FOP. That is, the test is not excercising the specification but rather a problem with FOP in handling a particular situation that is not exposed with the other testing.</p>
<p>A system test is one that tests the abitlity of FOP to handle a number of different elements together.</p>
<p>A test can consist of a complete fo document or a part of the document such as some elements that will be placed into the flow of a standard document.</p>
-<h2 id="submitting-a-test-submittingatest">Submitting a Test ## {#Submitting+a+Test}</h2>
+<h2 id="submitting-a-test-wzxhzdk22wzxhzdk23">Submitting a Test # <a id="#Submitting+a+Test"></a></h2>
<p>If you have a test which you think would be useful you should supply the test and a diff to the appropriate test suite xml file. Make sure that the test works as would be expected against the current build.</p>
-<h2 id="how-testing-works-howtestingworks">How Testing Works ## {#How+Testing+Works}</h2>
+<h2 id="how-testing-works-wzxhzdk24wzxhzdk25">How Testing Works # <a id="#How+Testing+Works"></a></h2>
<p>The tests are stored in the "<svn_repository>/test" directory.</p>
<p>You can run the tests by specifying the build target "test" ie:<br></br> <code>ant.sh test</code> (Unix)<br></br> <code>ant test</code> (Windows)<br></br></p>
<p>This will then compare the current code in the local src directory to a specified release of FOP. Any differences between the current code and the output from the reference version will be reported. If the test previously passed then the test run will have failed.</p>
<p>The testing is done by reading a test suite xml file, which corresponds to the standard testsuite.dtd supplied from w3c. This xml file contains a test xml file and an xsl file (which may simply copy the file). It also contains information such as if the test has passed and any comments.</p>
<p>For FOP the testing is done by rendering all the testing documents using the XML renderer. The XML files are then compared to see if there are any differences.</p>
-<h2 id="svg-testing-svgtesting">SVG Testing ## {#SVG+Testing}</h2>
+<h2 id="svg-testing-wzxhzdk33wzxhzdk34">SVG Testing # <a id="#SVG+Testing"></a></h2>
<p>The testing of SVG is not part of this testing system. SVG is tested for its rendering accuracy by using the transcoding mechanism via <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> . So that the only part that needs testing is how the SVG image is embedded inside the flow of the fo document.</p></div>
</div>
Modified: websites/staging/xmlgraphics/trunk/content/fop/dev/tools.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/dev/tools.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/dev/tools.html Tue Oct 23 15:05:41 2012
@@ -332,7 +332,7 @@ $(document).ready(function () {
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a> » <a href="/fop/dev/">Dev</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
<p>This page documents items that may be helpful to other developers, especially to those who are new to Apache™ FOP. Exhaustive treatment of these topics is better suited to other fora, but the information presented here is intended to deal with FOP-specific issues related to these tools, especially "gotchas", and to help developers get jump-started.</p>
-<h1 id="checklist">Developer Checklist</h1>
+<h1 id="developer-checklist-wzxhzdk3wzxhzdk4">Developer Checklist <a id="#checklist"></a></h1>
<p>Here is a (probably not comprehensive) list of tools you will need to be a successful FOP developer:</p>
<ul>
<li>
@@ -351,17 +351,17 @@ $(document).ready(function () {
<p>JUnit (see <a href="testing.html#basic">Basic Testing</a> ).</p>
</li>
</ul>
-<h1 id="general">General Developer Information</h1>
+<h1 id="general-developer-information-wzxhzdk5wzxhzdk6">General Developer Information <a id="#general"></a></h1>
<p>See <a href="http://www.apache.org/dev/contributors.html">the Apache Contributors Tech Guide</a> for useful information and links for Apache developers, including help with tools and procedures.</p>
-<h1 id="svn">Subversion (SVN)</h1>
-<h2 id="svn_general">General</h2>
+<h1 id="subversion-svn-wzxhzdk7wzxhzdk8">Subversion (SVN) <a id="#svn"></a></h1>
+<h2 id="general-wzxhzdk9wzxhzdk10">General # <a id="#svn_general"></a></h2>
<p>Visit <a href="http://xmlgraphics.apache.org/repo.html">Apache XML Graphics Code Repositories</a> for useful information.</p>
<p>You will need a SVN client to be able to gain access to the FOP repository. For general SVN information, visit <a href="http://subversion.tigris.org">Subversion Home</a> . A comprehensive list of clients for all operating systems and many IDEs can be found at <a href="http://subversion.tigris.org/project_links.html">the Subversion Links page</a> . For Microsoft Windows we recommend <a href="http://tortoisesvn.tigris.org">TortoiseSVN</a> . The command-line client that comes with Subversion is also very easy to use.</p>
-<h2 id="svn_download">Step-by-step instruction for downloading FOP using the SVN command-line client</h2>
+<h2 id="step-by-step-instruction-for-downloading-fop-using-the-svn-command-line-client-wzxhzdk11wzxhzdk12">Step-by-step instruction for downloading FOP using the SVN command-line client # <a id="#svn_download"></a></h2>
<p>On the command-line (Windows or Unix), simply run:</p>
<p>svn co http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/ fop-trunk</p>
<p>This will download the FOP trunk into the directory "fop-trunk".</p>
-<h2 id="tortoisesvn_download">Step-by-step instructions for downloading FOP using TortoiseSVN (on Windows)</h2>
+<h2 id="step-by-step-instructions-for-downloading-fop-using-tortoisesvn-on-windows-wzxhzdk13wzxhzdk14">Step-by-step instructions for downloading FOP using TortoiseSVN (on Windows) # <a id="#tortoisesvn_download"></a></h2>
<ul>
<li>
<p>Create a new, empty directory in a place of your choice.</p>
@@ -376,7 +376,7 @@ $(document).ready(function () {
<p>Click "OK" and the download should begin.</p>
</li>
</ul>
-<h2 id="patches">Creating Patches</h2>
+<h2 id="creating-patches-wzxhzdk15wzxhzdk16">Creating Patches # <a id="#patches"></a></h2>
<ul>
<li>
<p><code>cd</code> to a directory that contains all of the changes that you wish to include in the patch. To comprehend the entire distribution, <code>cd</code> to the top directory where you checked out the sources.</p>
@@ -391,7 +391,7 @@ $(document).ready(function () {
<p>If you are running TortoiseSVN, you can select "Create Patch..." in the TortoiseSVN context menu.</p>
</li>
</ul>
-<h2 id="svn-doc">Documentation</h2>
+<h2 id="documentation-wzxhzdk17wzxhzdk18">Documentation # <a id="#svn-doc"></a></h2>
<ul>
<li>
<p>[online resource]<jump href="http://subversion.tigris.org">The Subversion Home Page</jump>.</p>
@@ -403,7 +403,7 @@ $(document).ready(function () {
<p>[online resource]<jump href="http://subversion.tigris.org/project_links.html">Comprehensive list of links to documentation and Subversion clients and plugins.</jump></p>
</li>
</ul>
-<h1 id="ide">Integrated Development Environments (IDEs)</h1>
+<h1 id="integrated-development-environments-ides-wzxhzdk19wzxhzdk20">Integrated Development Environments (IDEs) <a id="#ide"></a></h1>
<p>An IDE is not required, but will generally be found to be helpful, especially for serious debugging and refactoring.</p>
<p>Borland's JBuilder 7/8 does not support Ant builds unless you have the Enterprise Edition (which is quite expensive). This causes problems with any code that is generated by the Ant build. First, you must run the Ant build before you can use the IDE. Second, when you are editing in the IDE, you must be editing the generated files, which means that you must make any changes to the source files in another editor. This is less serious for development on the trunk, but in the maintenance branch, all source files were "generated".</p>
<p>Sun ONE Studio Four does support Ant, but seems to use a built-in version, and as of this writing chokes on the FOP build file, saying that it is not valid. There is awkward because there is no official DTD for Ant, and it may be merely an Ant version issue.</p>
Modified: websites/staging/xmlgraphics/trunk/content/fop/download.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/download.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/download.html Tue Oct 23 15:05:41 2012
@@ -331,7 +331,7 @@ $(document).ready(function () {
<div id="content" class="grid_16">
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="dist-type">Binary or Source?</h1>
+<h1 id="binary-or-source-wzxhzdk2wzxhzdk3">Binary or Source? <a id="#dist-type"></a></h1>
<p>Most Apache™ FOP users will want to download the latest binary distribution, which is ready to run "out of the box." However, a source distribution will be preferable if you fall into one of the following categories:</p>
<ul>
<li>
@@ -344,9 +344,9 @@ $(document).ready(function () {
<p>You wish to build a local copy of the API documentation (javadocs).</p>
</li>
</ul>
-<h1 id="binary">Binary Download</h1>
+<h1 id="binary-download-wzxhzdk5wzxhzdk6">Binary Download <a id="#binary"></a></h1>
<p>Binary distributions include "-bin" in their names, and can be downloaded from a <a href="http://www.apache.org/dyn/closer.cgi/xmlgraphics/fop">FOP Distribution mirror</a> . Nightly builds of trunk code can be downloaded here: <a href="http://ci.apache.org/projects/xmlgraphics/fop/snapshots/">Nightly Snapshots</a> .</p>
-<h1 id="source">Source Download</h1>
+<h1 id="source-download-wzxhzdk7wzxhzdk8">Source Download <a id="#source"></a></h1>
<p>There are several ways to obtain a source distribution. Please note that they are listed from least current to most current:</p>
<ul>
<li>
@@ -399,7 +399,7 @@ $(document).ready(function () {
</tbody>
</table>
<p>With any source distribution, you will need to build FOP from the source files. For details please see the "Build" page on the documentation tab for the version you've downloaded.</p>
-<h1 id="archives">Archive Download</h1>
+<h1 id="archive-download-wzxhzdk9wzxhzdk10">Archive Download <a id="#archives"></a></h1>
<p>FOP Archive distributions are linked from the upper portion of the Apache FOP Download Mirror Page and can be downloaded from the FOP Archives <a href="http://archive.apache.org/dist/xmlgraphics/fop/binaries/">binaries</a> & <a href="http://archive.apache.org/dist/xmlgraphics/fop/source/">source</a> links.</p></div>
</div>
Modified: websites/staging/xmlgraphics/trunk/content/fop/examples.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/examples.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/examples.html Tue Oct 23 15:05:41 2012
@@ -331,7 +331,7 @@ $(document).ready(function () {
<div id="content" class="grid_16">
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a></div> -->
<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="example-documents-using-apachewzxhzdk2-fop-exampledocumentsusingapachee284a2fop">Example Documents Using Apache™ FOP # {#Example+Documents+Using+Apache%E2%84%A2+FOP}</h1>
+<h1 id="example-documents-using-apachewzxhzdk4-fop-wzxhzdk2wzxhzdk3">Example Documents Using Apache™ FOP <a id="#Example+Documents+Using+Apache%E2%84%A2+FOP"></a></h1>
<p>These examples have been rendered using Apache™ FOP:</p>
<table>
<thead>
@@ -398,7 +398,7 @@ $(document).ready(function () {
</ul>
<p>Also, in the directory examples/fo/pagination you will find a suite of examples showing the use of XSL-FO pagination.</p>
<p>Developers will find the first steps to a test suite for all implemented formatting objects and properties in test/xml in the source distribution.</p>
-<h1 id="images-examples-imagesexamples">Images Examples # {#Images+Examples}</h1>
+<h1 id="images-examples-wzxhzdk6wzxhzdk7">Images Examples <a id="#Images+Examples"></a></h1>
<p>Embedding images in FO:</p>
<table>
<thead>
@@ -435,7 +435,7 @@ $(document).ready(function () {
</tbody>
</table>
<p>Look also into the directory examples/fo/svg. There you find some very extensive SVG examples.</p>
-<h1 id="instream-foreign-object-examples-instreamforeignobjectexamples">Instream Foreign Object Examples # {#Instream+Foreign+Object+Examples}</h1>
+<h1 id="instream-foreign-object-examples-wzxhzdk8wzxhzdk9">Instream Foreign Object Examples <a id="#Instream+Foreign+Object+Examples"></a></h1>
<p>Instream Foreign Object images in FO, there are more on the <a href="dev/svg.html">SVG Page</a> :</p>
<table>
<thead>
Modified: websites/staging/xmlgraphics/trunk/content/fop/faq.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/faq.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/faq.html Tue Oct 23 15:05:41 2012
@@ -330,34 +330,34 @@ $(document).ready(function () {
<div id="content" class="grid_16">
<!-- <div id="breadcrumb"><a href="/">Home</a> » <a href="/fop/">Fop</a></div> -->
- <div class="section-content"><h1 id="Questions">Questions</h1>
-<h2 id="part-general">1. Apache™ FOP: General questions</h2>
-<h3 id="fop-general">1.1. What is Apache™ FOP?</h3>
+ <div class="section-content"><h1 id="questions-wzxhzdk1wzxhzdk2">Questions <a id="#Questions"></a></h1>
+<h2 id="1-apachewzxhzdk5-fop-general-questions-wzxhzdk3wzxhzdk4">1. Apache™ FOP: General questions # <a id="#part-general"></a></h2>
+<h3 id="11-what-is-apachewzxhzdk8-fop-wzxhzdk6wzxhzdk7">1.1. What is Apache™ FOP? ## <a id="#fop-general"></a></h3>
<p>FOP is a print formatter for <a href="#XSLFO">XSL formatting objects</a> .</p>
<p>It can be used to render an XML file containing XSL formatting objects into a page layout. The main target is PDF but other rendering targets are supported, such as AWT, PCL, text and direct printing.</p>
-<h3 id="fop-functions">1.2. What can I do with FOP?</h3>
+<h3 id="12-what-can-i-do-with-fop-wzxhzdk9wzxhzdk10">1.2. What can I do with FOP? ## <a id="#fop-functions"></a></h3>
<p>FOP provides both an application and a library that converts an XSL FO document into paginated output.</p>
<p>The FOP command line application can be directly used to transform XML into PDF, PostScript, PCL and other formats, there is also an AWT based viewer integrated.</p>
<p>The library can be used in servlets and other Java applications.</p>
-<h3 id="fop-acronym">1.3. What does "FOP" stand for?</h3>
+<h3 id="13-what-does-fop-stand-for-wzxhzdk11wzxhzdk12">1.3. What does "FOP" stand for? ## <a id="#fop-acronym"></a></h3>
<p>FOP is an acronym for <strong>F</strong> ormatting <strong>O</strong> bject <strong>P</strong> rocessor</p>
-<h3 id="fop-other-apache">1.4. How does FOP interact with other Apache Projects?</h3>
+<h3 id="14-how-does-fop-interact-with-other-apache-projects-wzxhzdk13wzxhzdk14">1.4. How does FOP interact with other Apache Projects? ## <a id="#fop-other-apache"></a></h3>
<p>FOP is distributed with <a href="http://xml.apache.org/cocoon">Cocoon</a> as a PDF serializer for XSL (FO) documents.</p>
<p><a href="http://xmlgraphics.apache.org/batik">Batik</a> can be used with FOP to <a href="http://xmlgraphics.apache.org/batik/svgrasterizer.html">transcode an SVG image</a> into a PDF document.</p>
-<h3 id="xsl-def">1.5. What is XSL?</h3>
+<h3 id="15-what-is-xsl-wzxhzdk15wzxhzdk16">1.5. What is XSL? ## <a id="#xsl-def"></a></h3>
<p>XSL is a W3C standard concerned with publishing XML documents. It consists of two parts: <a href="#XSLT">XSLT</a> and <a href="#XSLFO">XSL-FO</a> . The acronym expands to e <strong>X</strong> tensible <strong>S</strong> tylesheet <strong>L</strong> anguage.</p>
-<h3 id="xslfo">1.6. What is XSL-FO?</h3>
+<h3 id="16-what-is-xsl-fo-wzxhzdk17wzxhzdk18">1.6. What is XSL-FO? ## <a id="#xslfo"></a></h3>
<p>XSLFO (aka XSL-FO) is an XML vocabulary that is used to specify a pagination and other styling for page layout output. The acronym âFOâ stands for <strong>F</strong> ormatting <strong>O</strong> bjects. XSLFO can be used in conjunction with <a href="#XSLT">XSLT</a> to convert from any XML format into a paginated layout ready for printing or displaying.</p>
<p>XSLFO defines a set of elements in XML that describes the way pages are set up. The contents of the pages are filled from flows. There can be static flows that appear on every page (for headers and footers) and the main flow which fills the body of the page.</p>
<p>Synonyms: XSL FO, XSL (FO), XSL:FO, XSL-FO, Formatting Objects</p>
-<h3 id="XSLT">1.7. What is XSLT?</h3>
+<h3 id="17-what-is-xslt-wzxhzdk19wzxhzdk20">1.7. What is XSLT? ## <a id="#XSLT"></a></h3>
<p>XSLT describes the transformation of arbitrary XML input into other XML (like XSLFO), HTML or plain text. The âTâ comes from <strong>T</strong> ransformation. For historical reasons, a transformation is often also called a âstyle sheetâ.</p>
<p>Synonyms: XSL transformation, XSL:T, XSL style sheet.</p>
-<h3 id="when">1.8. When will feature X be implemented?</h3>
+<h3 id="18-when-will-feature-x-be-implemented-wzxhzdk21wzxhzdk22">1.8. When will feature X be implemented? ## <a id="#when"></a></h3>
<p>The short answer is "Don't ask." For more details, see <a href="gethelp.html#limitations">Understand FOP's Limitations</a> .</p>
-<h3 id="next-release">1.9. When is the next released planned?</h3>
+<h3 id="19-when-is-the-next-released-planned-wzxhzdk23wzxhzdk24">1.9. When is the next released planned? ## <a id="#next-release"></a></h3>
<p>When it's ready and the committers have enough time to go through the time-consuming process of creating a release. We released version 1.0 on 21 July 2010, and will release version 1.1 when we accumulated enough additions and bug fixes. If you want to speed up the process, consider <a href="dev/index.html#involved">contributing</a> to FOP.</p>
-<h3 id="redesign">1.10. Why did you redesign FOP?</h3>
+<h3 id="110-why-did-you-redesign-fop-wzxhzdk25wzxhzdk26">1.10. Why did you redesign FOP? ## <a id="#redesign"></a></h3>
<p>The code redesign of FOP was necessary in order to be able to adress following issues:</p>
<ul>
<li>
@@ -376,13 +376,13 @@ $(document).ready(function () {
<p>Table Layout</p>
</li>
</ul>
-<h3 id="contribute">1.11. How can I contribute?</h3>
+<h3 id="111-how-can-i-contribute-wzxhzdk27wzxhzdk28">1.11. How can I contribute? ## <a id="#contribute"></a></h3>
<p>There are numerous ways that you can help. They are outlined in the <a href="dev/index.html">Developer's Introduction</a> page.</p>
-<h2 id="part-running">2. Problems running FOP</h2>
-<h3 id="no-page-master">2.1. I get the error: [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master'</h3>
+<h2 id="2-problems-running-fop-wzxhzdk29wzxhzdk30">2. Problems running FOP # <a id="#part-running"></a></h2>
+<h3 id="21-i-get-the-error-error-master-reference-for-fopage-sequence-matches-no-simple-page-master-or-page-sequence-master-wzxhzdk31wzxhzdk32">2.1. I get the error: [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master' ## <a id="#no-page-master"></a></h3>
<p>FOP was changed to be in accordance with the latest standard (see <a href="resources.html#specs-xslfo">XSL standard</a> ).The page master for a fo:page-sequence is now referenced by the master-reference attribute. Replace the master-name attributes of your fo:page-sequence elements by master-reference attributes. You have to do this also for fo:single-page-master-reference, fo:repeatable-page-master-reference and fo:conditional-page-master-reference elements in you page master definitions.</p>
<p>Update your FO documents and style sheets.</p>
-<h3 id="NoClassDefFound">2.2. I get a NoClassDefFound exception.</h3>
+<h3 id="22-i-get-a-noclassdeffound-exception-wzxhzdk33wzxhzdk34">2.2. I get a NoClassDefFound exception. ## <a id="#NoClassDefFound"></a></h3>
<p>This is typically a problem with your classpath.</p>
<p>If you are running FOP from the command line:</p>
<ul>
@@ -395,37 +395,37 @@ $(document).ready(function () {
</ul>
<p>If you run FOP embedded in your servlet, web application or other Java application, check the classpath of the application. Check the also the information pertaining to <a href="1.0/servlets.html#servlet-engine">servlet engines</a> for further hints.</p>
<p>If you downloaded the source distribution, or a snapshop from the repository, remember you have to build the FOP jars first.</p>
-<h3 id="NoSuchMethodException">2.3. I get a NoSuchMethodException or a NoSuchFieldException exception.</h3>
+<h3 id="23-i-get-a-nosuchmethodexception-or-a-nosuchfieldexception-exception-wzxhzdk35wzxhzdk36">2.3. I get a NoSuchMethodException or a NoSuchFieldException exception. ## <a id="#NoSuchMethodException"></a></h3>
<p>This is usually caused by an older version of one of the FOP jars or old XML tools in the classpath. Check in particular for parser.jar, jaxp.jar, xml4j.jar or lotusxsl.jar.</p>
<p>Incompatible versions of Batik may also cause this problem. Use the version of Batik that comes with FOP. It is not always possible to use a more recent version of Batik.</p>
-<h3 id="OutOfMemoryException">2.4. I get an OutOfMemoryException.</h3>
+<h3 id="24-i-get-an-outofmemoryexception-wzxhzdk37wzxhzdk38">2.4. I get an OutOfMemoryException. ## <a id="#OutOfMemoryException"></a></h3>
<p>See <a href="1.0/running.html#memory">FOP Memory</a> .</p>
-<h3 id="MalformedURLException">2.5. I get a MalformedURLException.</h3>
+<h3 id="25-i-get-a-malformedurlexception-wzxhzdk39wzxhzdk40">2.5. I get a MalformedURLException. ## <a id="#MalformedURLException"></a></h3>
<p><anchor id="MalformedURL"></anchor>
What you probably think of as "file names" are usually URLs, in particular the <code>src</code> attribute of fo:external-graphic.</p>
<p>Because usage of URLs is growing, you should make yourself familiar with it. The relevant specification is <a href="http://www.rfc-editor.org/rfc/rfc2396.txt">RFC 2396</a> .</p>
<p>In a nutshell, the correct syntax for an absolute file URL is <code>file:///some/path/file.ext</code> on Unix and <code>file:///z:/some/path/file.ext</code> on Windows systems. Note the triple slash, and also that only forward slashes are used, even on windows.</p>
<p>A relative file URL starts with anything but a slash, and doesn't have the <code>file:</code> prefix, for example <code>file.ext</code> , <code>path/file.ext</code> or <code>../file.ext</code> . The string <code>file:path/file.ext</code> is <em>not</em> a relative URL, in fact, it isn't a valid URL at all. A relative URL is subject to a resolving process, which transforms it into an absolute URL.</p>
-<h3 id="NullPointerException">2.6. I get an "[ERROR]: null", or a NullPointerException.</h3>
+<h3 id="26-i-get-an-error-null-or-a-nullpointerexception-wzxhzdk43wzxhzdk44">2.6. I get an "[ERROR]: null", or a NullPointerException. ## <a id="#NullPointerException"></a></h3>
<p>This is often caused by an invalid FO document. Currently only very common errors are intercepted and produce a comprehensible error message. If you forgot container elements like <code>fo:page-sequence</code> or <code>fo:flow</code> and put blocks and inline elements directly as children of <code>fo:root</code> or <code>fo:page-sequence</code> , you'll only get a NullPointerException. Check whether your FO file has a proper structure. In some cases there are mandatory properties, like the master-reference in <code>fo:conditional-page-master-reference</code> , check also whether you got them right.</p>
<p>You may find it helpful to use the <a href="#fo-validate">validation tools</a> to validate your FO document. This will catch most problems, but should not be relied upon to catch all.</p>
<p>If you use XSLT, problems in your style sheet and in your source XML also can produce a NullPointerException. <a href="1.0/running.html#check-input">Run the transformation separately</a> to check for this, usually you'll get a detailed error message from the XSLT processor.</p>
<p>If you turn on debugging with the " <code>-d</code> " option you may be able to see more detailed information.</p>
-<h3 id="not-implemented">2.7. FOP returns the message "[ERROR] object|property - 'x' is not implemented yet." When will it be implemented?</h3>
+<h3 id="27-fop-returns-the-message-error-objectproperty-x-is-not-implemented-yet-when-will-it-be-implemented-wzxhzdk45wzxhzdk46">2.7. FOP returns the message "[ERROR] object|property - 'x' is not implemented yet." When will it be implemented? ## <a id="#not-implemented"></a></h3>
<p>See FOP's Standards <a href="compliance.html">Compliance</a> page.</p>
-<h3 id="fop-hangs">2.8. FOP hangs. FOP does not exit.</h3>
+<h3 id="28-fop-hangs-fop-does-not-exit-wzxhzdk47wzxhzdk48">2.8. FOP hangs. FOP does not exit. ## <a id="#fop-hangs"></a></h3>
<p>The most likely reason is a known problem with the Java run time environment which is triggered by rendering SVGs. Suns JDK 1.4 does not have this problem. See also <a href="#svghangs">FOP does not exit if a SVG is included</a> .</p>
<p>Another possibility is that FOP went into a non terminating loop. Usually this is indicated by lots of log messages of the form "[INFO]: [NNNN]" which indicate a new page has been started or <a href="#boxoverflow">box overflows</a> . After some time, FOP will crash with an OutOfMemoryException.</p>
<p>If you called the FOP command line application from some other program, for example from Java using Runtime.exec(), it may hang while trying to write log entries to the output pipe. You have to read the FOP output regularly to empty the pipe buffer. It is best to avoid exec'ing FOP, use the library interface instead.</p>
-<h3 id="boxoverflow">2.9. FOP runs forever, writing lots of ">" to the log.</h3>
+<h3 id="29-fop-runs-forever-writing-lots-of-to-the-log-wzxhzdk49wzxhzdk50">2.9. FOP runs forever, writing lots of ">" to the log. ## <a id="#boxoverflow"></a></h3>
<p>There is something too large to fit into the intended place, usually a large image, a table whose rows are kept together or a block with a space-before or space-after larger than the page size. Catch the first page showing this phenomenon and check it. If it is not obvious which element causes the trouble, remove stuff until the problem goes away. Decrease the dimensions of the offending element or property, or increase the dimension of the enclosing element or container, or remove keep-with-* properties.</p>
-<h3 id="cannot-find-external-graphics">2.10. FOP cannot find a file for fo:external-graphics.</h3>
+<h3 id="210-fop-cannot-find-a-file-for-foexternal-graphics-wzxhzdk51wzxhzdk52">2.10. FOP cannot find a file for fo:external-graphics. ## <a id="#cannot-find-external-graphics"></a></h3>
<p>The src attribute of the <code>fo:external-graphics</code> element requires a URI, not a file name. See <a href="fo.html#external-resources">External Resources</a> for more information about specifying URIs.</p>
-<h3 id="fonts-not-found">2.11. FOP does not find my fonts.</h3>
+<h3 id="211-fop-does-not-find-my-fonts-wzxhzdk53wzxhzdk54">2.11. FOP does not find my fonts. ## <a id="#fonts-not-found"></a></h3>
<p>Did you get: âFailed to read font metrics file C:\foo\arial.xml : File "C:\foo\arial.xml" not foundâ? The value for the metrics-file attribute in the user config file is actually an URL, not a file name. Use "file:///C:/foo/arial.xml" instead.</p>
<p>If you used a relative URL, make sure your application has the working directory you expect. Currently FOP does not use the baseDir for resolving relative URLs pointing to font metric files.</p>
<p>Try also setting the <a href="1.0/configuration.html#general-elements">font-base configuration</a> .</p>
-<h3 id="saxexception-mismatch">2.12. I get a SAXException: Mismatch: page-sequence vs. root (or similar).</h3>
+<h3 id="212-i-get-a-saxexception-mismatch-page-sequence-vs-root-or-similar-wzxhzdk55wzxhzdk56">2.12. I get a SAXException: Mismatch: page-sequence vs. root (or similar). ## <a id="#saxexception-mismatch"></a></h3>
<p>The full exception usually looks similar to this:
Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)
@@ -451,21 +451,21 @@ import javax.xml.transform.TransformerEx
<p>}</p>
-<h3 id="faq-N1026C">2.13. The following message appears after recently upgrading FOP: "I/O exception while reading font cache (org.apache.fop.fonts.EmbedFontInfo; local class incompatible: stream classdesc serialVersionUID = -9075848379822693399, local class serialVersionUID = 8755432068669997367). Discarding font cache file."</h3>
+<h3 id="213-the-following-message-appears-after-recently-upgrading-fop-io-exception-while-reading-font-cache-orgapachefopfontsembedfontinfo-local-class-incompatible-stream-classdesc-serialversionuid-9075848379822693399-local-class-serialversionuid-8755432068669997367-discarding-font-cache-file-wzxhzdk57wzxhzdk58">2.13. The following message appears after recently upgrading FOP: "I/O exception while reading font cache (org.apache.fop.fonts.EmbedFontInfo; local class incompatible: stream classdesc serialVersionUID = -9075848379822693399, local class serialVersionUID = 8755432068669997367). Discarding font cache file." ## <a id="#faq-N1026C"></a></h3>
<p>This message is a warning that FOP failed to read from the Font cache. Which means any Font auto detection or Font directories will be re-scanned. So this failure doesn't break anything.</p>
<p>To avoid the warning you can simply delete the old Font Cache file, which lives in ${base}\conf\font.cache (see <a href="1.0/configuration.html#general-elements">font-base configuration</a> ). Or you can disable Font Caching altogether using the option "use-cache."</p>
-<h2 id="part-output">3. Problems with FOP output</h2>
-<h3 id="leader-expansion">3.1. Leaders don't work in current FOP. Instead of filling the line, only three dots or a short ruler is output.</h3>
+<h2 id="3-problems-with-fop-output-wzxhzdk59wzxhzdk60">3. Problems with FOP output # <a id="#part-output"></a></h2>
+<h3 id="31-leaders-dont-work-in-current-fop-instead-of-filling-the-line-only-three-dots-or-a-short-ruler-is-output-wzxhzdk61wzxhzdk62">3.1. Leaders don't work in current FOP. Instead of filling the line, only three dots or a short ruler is output. ## <a id="#leader-expansion"></a></h3>
<p>Leaders still work, in fact they work better than ever before. You'll just have to add <code>text-align="justify"</code> and/or <code>text-align-last="justify"</code> to the block with the leader. Be sure you haven't accidentally overridden the <code>leader-length.maximum="100%"</code> default value.</p>
<p>Earlier versions of FOP used to expand a leader to fill the rest of the line unconditionally, anything following it, like page numbers in a TOC, was actually shifted beyond the right margin.</p>
<p>The new implementation uses leader-length.optimum to determine where to break the line, and expands the leader only further if the line should be filled, as indicated by the text-align and text-align-last properties.</p>
<p>Actually due to the fuzzyness of the specification both the old and the new method are conformant (although adding text after the expanded leader in the old variant never was).</p>
<p>If you want to have a longer ruler or space in a non-justified line, you have to increase the leader-length.optimum property.</p>
-<h3 id="blank-page-between-page-sequences">3.2. Why does FOP insert a blank page between my page sequences?</h3>
+<h3 id="32-why-does-fop-insert-a-blank-page-between-my-page-sequences-wzxhzdk63wzxhzdk64">3.2. Why does FOP insert a blank page between my page sequences? ## <a id="#blank-page-between-page-sequences"></a></h3>
<p>This is because spec conformance has been improved.</p>
<p>The <a href="http://www.w3.org/TR/xsl11/#force-page-count">force-page-count property</a> controls how a FO processor pads page sequences in order to get certain page counts or last page numbers. The default is " <code>auto</code> ". With this setting, if the next page sequence begins with an odd page number because you set the initial-page-number, and the current page sequence also ends with an odd page number, the processor inserts a blank page to keep odd and even page numbers alternating (similar for the case the current page sequence ends with an even page number and the next page sequence starts with an even page number).</p>
<p>If you don't want to have this blank page, use <code>force-page-count="no-force"</code> .</p>
-<h3 id="graphic-not-displayed">3.3. Why is my graphic not rendered?</h3>
+<h3 id="33-why-is-my-graphic-not-rendered-wzxhzdk65wzxhzdk66">3.3. Why is my graphic not rendered? ## <a id="#graphic-not-displayed"></a></h3>
<p>Most commonly, the external file is not being found by FOP. Check the following:</p>
<ul>
<li>
@@ -490,11 +490,11 @@ import javax.xml.transform.TransformerEx
<p>There may be something (static content) that is obscuring the graphic. (This is very rare).</p>
</li>
</ul>
-<h3 id="png-fails">3.4. My graphical images do not work properly.</h3>
+<h3 id="34-my-graphical-images-do-not-work-properly-wzxhzdk67wzxhzdk68">3.4. My graphical images do not work properly. ## <a id="#png-fails"></a></h3>
<p>See <a href="1.0/graphics.html">FOP Graphics Formats</a> for a list of supported graphics formats and related issues.</p>
-<h3 id="graphic-resolution">3.5. Why is my graphic rendered at a different resolution than it was created?</h3>
+<h3 id="35-why-is-my-graphic-rendered-at-a-different-resolution-than-it-was-created-wzxhzdk69wzxhzdk70">3.5. Why is my graphic rendered at a different resolution than it was created? ## <a id="#graphic-resolution"></a></h3>
<p>See <a href="1.0/graphics.html#resolution">Graphics Resolution</a> .</p>
-<h3 id="keep-with">3.6. Keep-with-next, keep-with-previous, keep-together don't work.</h3>
+<h3 id="36-keep-with-next-keep-with-previous-keep-together-dont-work-wzxhzdk71wzxhzdk72">3.6. Keep-with-next, keep-with-previous, keep-together don't work. ## <a id="#keep-with"></a></h3>
<p>Current FOP releases have extensive support for these properties. The current release, FOP 1.0, still supports the values "always" and "never" only, no numerical values. There may be a few places where keep-* still don't work, this should be very rare.</p>
<p>The concept is called âblind tableâ. The table is used for pure layout reasons and is not obvious in the output.</p>
<p>An example of an image and the image caption to be kept together:
@@ -516,10 +516,10 @@ import javax.xml.transform.TransformerEx
</fo:table-body>
</fo:table>
Consider upgrading to the latest version which supports keeps.</p>
-<h3 id="table-missing">3.7. My tables are missing, or missing their content.</h3>
+<h3 id="37-my-tables-are-missing-or-missing-their-content-wzxhzdk91wzxhzdk92">3.7. My tables are missing, or missing their content. ## <a id="#table-missing"></a></h3>
<p>Check for <code>fo:table-body</code> around the rows. Usually FOP will catch this problem.</p>
<p>Also, the <code>fo:table-with-caption</code> element is not implemented, tables within such an element are dropped too. FOP generates an error message for this problem. Older DocBook style sheets generate <code>fo:table-with-caption</code> elements, so watch out.</p>
-<h3 id="cells-overflow">3.8. Text overflowing table cells and the like is not clipped. Long text flows into adjacent cells/block, obscuring stuff there.</h3>
+<h3 id="38-text-overflowing-table-cells-and-the-like-is-not-clipped-long-text-flows-into-adjacent-cellsblock-obscuring-stuff-there-wzxhzdk93wzxhzdk94">3.8. Text overflowing table cells and the like is not clipped. Long text flows into adjacent cells/block, obscuring stuff there. ## <a id="#cells-overflow"></a></h3>
<p>Since the <code>overflow</code> property doesn't apply to table-cell, you can wrap the cell content in a block-container and specify <code>overflow="hidden"</code> there. Alternatively, if you have long words overflowing table cells, try to get them hyphenated. Artificial names like product identifications or long numbers usually aren't hyphenated. You can try special processing at XSLT level, like</p>
<ul>
<li>
@@ -533,51 +533,51 @@ Consider upgrading to the latest version
</li>
</ul>
<p>Check the <a href="http://dpawson.co.uk/xsl">XSL FAQ</a> and the <a href="http://www.mulberrytech.com/xsl/xsl-list/">XSL list archive</a> for how to perform these tasks.</p>
-<h3 id="table-cell-wrap">3.9. The contents of table cells donât wrap</h3>
+<h3 id="39-the-contents-of-table-cells-dont-wrap-wzxhzdk95wzxhzdk96">3.9. The contents of table cells donât wrap ## <a id="#table-cell-wrap"></a></h3>
<p>You probably have <code>keep-together="always"</code> set on the table cell. See <a href="#keep-together">next question</a> .</p>
-<h3 id="keep-together">3.10. FOP behaves differently from earlier versions when keep-together="always" is set on table cells</h3>
+<h3 id="310-fop-behaves-differently-from-earlier-versions-when-keep-togetheralways-is-set-on-table-cells-wzxhzdk97wzxhzdk98">3.10. FOP behaves differently from earlier versions when keep-together="always" is set on table cells ## <a id="#keep-together"></a></h3>
<p>Support for inline-level keeps has been added in FOP 0.95, and setting <code>keep-together="always"</code> also implicitly sets <code>keep-together.within-line="always"</code> , which forbids FOP to break the text into multiple lines. Set <code>keep-together.within-column="always"</code> on table-cell instead. Itâs a good idea not to use the shorthand <code>keep-together="always"</code> at all!</p>
-<h3 id="row-height-constraint">3.11. FOP tells me: "The contents of row 1 are taller than they should be". What does that mean?</h3>
+<h3 id="311-fop-tells-me-the-contents-of-row-1-are-taller-than-they-should-be-what-does-that-mean-wzxhzdk99wzxhzdk100">3.11. FOP tells me: "The contents of row 1 are taller than they should be". What does that mean? ## <a id="#row-height-constraint"></a></h3>
<p>This is usually caused by setting a "height" on a table-row or table-cell and when the content is higher than the specified height. By setting "height" (a so-called corresponding property) you <a href="http://www.w3.org/TR/xsl11/#d0e4413">implicitely set</a> block-progression-dimension.minimum, block-progression-dimension.optimum and block-progression-dimension.maximum to the same value. You'll get some information about that in the warning message. Look for something like: "MinOptMax[min=opt=max=14000]".</p>
<p>Assuming you set the height on the table-row to 14pt and your content is 75pt high, a constraint (maximum=14pt) is violated. Normally, you just want to make sure with the "height" property that the row has a minimum height. If that is so, the right solution is to specify block-progression-dimension.minimum="14pt" instead of height="14pt".</p>
-<h3 id="page-number-align">3.12. Page numbers are not properly right aligned.</h3>
+<h3 id="312-page-numbers-are-not-properly-right-aligned-wzxhzdk101wzxhzdk102">3.12. Page numbers are not properly right aligned. ## <a id="#page-number-align"></a></h3>
<p>This happens for <code>fo:page-number-citation</code> elements if the citation occurs before FOP formatted the requested page, usually in TOC or index pages. It is caused by the problem that FOP has to guess how much space the yet unknown page number will occupy, and usually the guesses are somewhat off.</p>
<p>The most recent FOP releases should have this problem fixed. Check whether you can upgrade.</p>
-<h3 id="hyphenation-fails">3.13. Hyphenation does not work.</h3>
+<h3 id="313-hyphenation-does-not-work-wzxhzdk103wzxhzdk104">3.13. Hyphenation does not work. ## <a id="#hyphenation-fails"></a></h3>
<p>Make sure you have set the language and optionally the country attributes for an appropriate XSL-FO element (fo:page-sequence, fo:block or fo:character):
<fo:page-sequence language="fi">
See <a href="1.0/hyphenation.html#support">Hyphenation Support</a> for details and instructions on using hyphenation with FOP.</p>
<p>Explicitly enable hyphenation for an appropriate XSL-FO element (fo:block, fo:character):
<fo:block hyphenate="true"></p>
-<h3 id="indent-inheritance">3.14. When I use margins, my content in a nested table or block-containers gets indented twice. Is this a bug?</h3>
+<h3 id="314-when-i-use-margins-my-content-in-a-nested-table-or-block-containers-gets-indented-twice-is-this-a-bug-wzxhzdk107wzxhzdk108">3.14. When I use margins, my content in a nested table or block-containers gets indented twice. Is this a bug? ## <a id="#indent-inheritance"></a></h3>
<p>No, although you might easily think so. The problem has to do with property inheritance of the start-indent and end-indent properties to which the margin properties are mapped. Apache FOP strictly adheres to the XSL-FO specification here which many other commercial FO implementations don't do to better meet end-user expectations. You can make FOP behave like these if you set <code>setBreakIndentInheritanceOnReferenceAreaBoundary(true)</code> on the FOUserAgent. The better way is to reset <code>start-indent</code> and <code>end-indent</code> to "0pt" on table-body or block-container. For further details, please consult the <a href="http://wiki.apache.org/xmlgraphics-fop/IndentInheritance">Wiki page on Indent Inheritance</a> .</p>
-<h3 id="pdf-ps-java2d-differences">3.15. Why is the output of Java2D/AWT-based renderers different than, for example, PDF or PS?</h3>
+<h3 id="315-why-is-the-output-of-java2dawt-based-renderers-different-than-for-example-pdf-or-ps-wzxhzdk109wzxhzdk110">3.15. Why is the output of Java2D/AWT-based renderers different than, for example, PDF or PS? ## <a id="#pdf-ps-java2d-differences"></a></h3>
<p>If you render the same document once to a PNG or TIFF and once into a PDF, the output may not be the same, i.e. line breaks are different or lines may have different heights. The reason for this: The Java2D-based renderers use the font subsystem of Java2D/AWT. The PDF and PS renderers use FOP's own font subsystem which provides much better font metrics than Java2D. These can lead to different layout decisions when the same document is rendered with different renderers. An alternative approach to fix this problem might be available but it hasn't been tested, yet. See also the <a href="1.0/output.html#general-fonts">notes on fonts in the various output formats</a> .</p>
-<h2 id="part-embedding">4. Embedding FOP. Using FOP in a servlet.</h2>
-<h3 id="servlet">4.1. How do I use FOP in a servlet?</h3>
+<h2 id="4-embedding-fop-using-fop-in-a-servlet-wzxhzdk111wzxhzdk112">4. Embedding FOP. Using FOP in a servlet. # <a id="#part-embedding"></a></h2>
+<h3 id="41-how-do-i-use-fop-in-a-servlet-wzxhzdk113wzxhzdk114">4.1. How do I use FOP in a servlet? ## <a id="#servlet"></a></h3>
<p>See <a href="1.0/servlets.html">Using FOP in a Servlet</a> .</p>
-<h3 id="servlet-with-xslt">4.2. How do I use FOP in a servlet with an XSLT transformation?</h3>
+<h3 id="42-how-do-i-use-fop-in-a-servlet-with-an-xslt-transformation-wzxhzdk115wzxhzdk116">4.2. How do I use FOP in a servlet with an XSLT transformation? ## <a id="#servlet-with-xslt"></a></h3>
<p>See <a href="1.0/servlets.html#xslt">Using FOP in a Servlet with XSLT Transformation</a> .</p>
-<h3 id="servlet-xslt-params">4.3. How do I pass parameters to the XSLT transformation?</h3>
+<h3 id="43-how-do-i-pass-parameters-to-the-xslt-transformation-wzxhzdk117wzxhzdk118">4.3. How do I pass parameters to the XSLT transformation? ## <a id="#servlet-xslt-params"></a></h3>
<p>See <a href="1.0/servlets.html#xslt">Using FOP in a Servlet with XSLT Transformation</a> .</p>
-<h3 id="servlet-nonstd-fonts">4.4. How do I use my own fonts when running FOP from a servlet?</h3>
+<h3 id="44-how-do-i-use-my-own-fonts-when-running-fop-from-a-servlet-wzxhzdk119wzxhzdk120">4.4. How do I use my own fonts when running FOP from a servlet? ## <a id="#servlet-nonstd-fonts"></a></h3>
<p>Declare the fonts in the <code>userconfig.xml</code> file as usual. See <a href="#usercfg">loading the user configuration file</a> for further details.</p>
-<h3 id="servlet-baseDir">4.5. How do I set the baseDir property in a servlet environment?</h3>
+<h3 id="45-how-do-i-set-the-basedir-property-in-a-servlet-environment-wzxhzdk121wzxhzdk122">4.5. How do I set the baseDir property in a servlet environment? ## <a id="#servlet-baseDir"></a></h3>
<p>See <a href="1.0/embedding.html#config-internal">Setting the Configuration Programmatically</a> .</p>
-<h3 id="usercfg">4.6. How do I use a user configuration file from a servlet?</h3>
+<h3 id="46-how-do-i-use-a-user-configuration-file-from-a-servlet-wzxhzdk123wzxhzdk124">4.6. How do I use a user configuration file from a servlet? ## <a id="#usercfg"></a></h3>
<p>See <a href="1.0/embedding.html#config-external">Using a Configuration File in an Embedded App</a> .</p>
-<h3 id="servlet-NoClassDefFound">4.7. I keep getting NoClassDefFound and other exceptions. How do I get FOP working for various servlet engines?</h3>
+<h3 id="47-i-keep-getting-noclassdeffound-and-other-exceptions-how-do-i-get-fop-working-for-various-servlet-engines-wzxhzdk125wzxhzdk126">4.7. I keep getting NoClassDefFound and other exceptions. How do I get FOP working for various servlet engines? ## <a id="#servlet-NoClassDefFound"></a></h3>
<p>See <a href="1.0/servlets.html#servlet-engine">Servlet Engines</a> .</p>
-<h3 id="multithreaded">4.8. Can FOP be used in multithreaded environments?</h3>
+<h3 id="48-can-fop-be-used-in-multithreaded-environments-wzxhzdk127wzxhzdk128">4.8. Can FOP be used in multithreaded environments? ## <a id="#multithreaded"></a></h3>
<p>See <a href="1.0/embedding.html#multithreading">Multithreading FOP</a> .</p>
-<h2 id="part-svg">5. SVG specific questions</h2>
-<h3 id="svg-text">5.1. The rendering of SVG text in my PDF is of poor quality. Can I control this?</h3>
+<h2 id="5-svg-specific-questions-wzxhzdk129wzxhzdk130">5. SVG specific questions # <a id="#part-svg"></a></h2>
+<h3 id="51-the-rendering-of-svg-text-in-my-pdf-is-of-poor-quality-can-i-control-this-wzxhzdk131wzxhzdk132">5.1. The rendering of SVG text in my PDF is of poor quality. Can I control this? ## <a id="#svg-text"></a></h3>
<p>See <a href="1.0/graphics.html#svg-pdf-text">Placing SVG Text into PDF</a> .</p>
-<h3 id="svg-headless">5.2. How do I use FOP with SVG on headless servers?</h3>
+<h3 id="52-how-do-i-use-fop-with-svg-on-headless-servers-wzxhzdk133wzxhzdk134">5.2. How do I use FOP with SVG on headless servers? ## <a id="#svg-headless"></a></h3>
<p>See <a href="1.0/graphics.html#batik">FOP: Graphics (Batik)</a> .</p>
-<h3 id="svghangs">5.3. FOP does not exit if a SVG is included.</h3>
+<h3 id="53-fop-does-not-exit-if-a-svg-is-included-wzxhzdk135wzxhzdk136">5.3. FOP does not exit if a SVG is included. ## <a id="#svghangs"></a></h3>
<p>Applies to older FOP versions and JDK 1.3 and older. That's because there is an AWT thread hanging around. The solution is to put a System.exit(0) somewhere.</p>
-<h3 id="svg-url">5.4. I have problems with SVG referring to gradients etc. using "uri(#stuff)". I get a MalformedURLException.</h3>
+<h3 id="54-i-have-problems-with-svg-referring-to-gradients-etc-using-uristuff-i-get-a-malformedurlexception-wzxhzdk137wzxhzdk138">5.4. I have problems with SVG referring to gradients etc. using "uri(#stuff)". I get a MalformedURLException. ## <a id="#svg-url"></a></h3>
<p>This is really a "resolving relative URI" problem with some twists. The problem is that the <code>#stuff</code> URL fragment identifier is resolved within the current SVG document. So the reference must be valid within the XML subset and it cannot reference other SVG documents in the same XML file. Some options to try:</p>
<ul>
<li>
@@ -596,16 +596,16 @@ See <a href="1.0/hyphenation.html#suppor
<p>In any case, the referenced stuff has to be pointed to by an URL. It doesn't necessarily have to be a file URL, HTTP should also work. Also, expect a performance hit in all cases, because another XML file has to be retrieved and parsed.</p>
<p>Ultimately, both FOP and especially Batik should be fixed to make your code work as expected, but this will not only take some time but also some effort by a standard committee in order to make the semantics of this kind of references in embedded SVG clearer.</p>
<p>See also <a href="#MalformedURL">MalformedURLException</a> </p>
-<h3 id="svg-scaling">5.5. Why is my SVG rendered at a size different from that specified in my fo:external-graphic element?</h3>
+<h3 id="55-why-is-my-svg-rendered-at-a-size-different-from-that-specified-in-my-foexternal-graphic-element-wzxhzdk139wzxhzdk140">5.5. Why is my SVG rendered at a size different from that specified in my fo:external-graphic element? ## <a id="#svg-scaling"></a></h3>
<p>See <a href="1.0/graphics.html#svg-scaling">SVG Scaling</a> .</p>
-<h3 id="svg-attribute-required">5.6. FOP fails with something like "The attribute "width" of the element <rect> is required". What's wrong?</h3>
+<h3 id="56-fop-fails-with-something-like-the-attribute-width-of-the-element-wzxhzdk141-is-required-whats-wrong-wzxhzdk142wzxhzdk143">5.6. FOP fails with something like "The attribute "width" of the element <rect> is required". What's wrong? ## <a id="#svg-attribute-required"></a></h3>
<p>This phenomenon is not a bug in FOP, but rather in the dependent packages: Apache Batik, Apache Xalan-J and SAXON. The bug in Apache Batik will be fixed in the next release. In the latest release of Apache Xalan-J, the bug is already fixed. It only occurs in the Xalan version bundled with Sun's JVM, because Sun uses a rather old version.</p>
<p>Bug description: In a namespace-enabled Level 3 DOM, an attribute in the default namespace must be set with <code>"null"</code> as the value for the namespace URI. SAX, on the other side, uses an empty string ("") to designate the default namespace. Many packages appear to not properly handle this difference in which case they still use the empty string as the namespace URI parameter for <code>org.w3c.dom.Element.setAttributeNS()</code> .</p>
<p>Work-around: Use the latest version of Apache Xalan-J. Note that starting with JDK 1.4 it's not enough to replace Xalan-J on the normal application classpath and you need to override the Xalan-J version bundled with the Sun JVM using the <a href="http://java.sun.com/j2se/1.4.2/docs/guide/standards/">Endorsed Standards Override Mechanism</a> , i.e. you must place Xalan-J in the <code>"lib/endorsed"</code> directory of your JRE.</p>
-<h2 id="part-pdf">6. PDF specific (includes Acrobat peculiarities)</h2>
-<h3 id="pdf-embed-font">6.1. How do I embed fonts in PDF?</h3>
+<h2 id="6-pdf-specific-includes-acrobat-peculiarities-wzxhzdk144wzxhzdk145">6. PDF specific (includes Acrobat peculiarities) # <a id="#part-pdf"></a></h2>
+<h3 id="61-how-do-i-embed-fonts-in-pdf-wzxhzdk146wzxhzdk147">6.1. How do I embed fonts in PDF? ## <a id="#pdf-embed-font"></a></h3>
<p>See the <a href="1.0/fonts.html">Fonts</a> page for information about embedding fonts.</p>
-<h3 id="pdf-characters">6.2. Some characters are not displayed, or displayed incorrectly, or displayed as â#â.</h3>
+<h3 id="62-some-characters-are-not-displayed-or-displayed-incorrectly-or-displayed-as-wzxhzdk148wzxhzdk149">6.2. Some characters are not displayed, or displayed incorrectly, or displayed as â#â. ## <a id="#pdf-characters"></a></h3>
<p>This usually means the selected font doesn't have a glyph for the character.</p>
<p>The standard text fonts supplied with Acrobat Reader have mostly glyphs for characters from the ISO Latin 1 character set. For a variety of reasons, even those are not completely guaranteed to work, for example you can't use the fi ligature from the standard serif font. Check the <a href="1.0/output.html#pdf-fonts">overview</a> for the default PDF fonts.</p>
<p>If you use your own fonts, the font must have a glyph for the desired character. Furthermore the font must be available on the machine where the PDF is viewed or it must have been embedded in the PDF file. See <a href="1.0/fonts.html">embedding fonts</a> .</p>
@@ -613,79 +613,79 @@ See <a href="1.0/hyphenation.html#suppor
<fo:inline font-family="Symbol">∅</fo:inline>
The "#" shows up if the selected font does not define a glyph for the required character, for example if you try:
<fo:inline font-family="Helvetica">∅</fo:inline></p>
-<h3 id="pdf-postprocess">6.3. What tools are available for post-processing my PDF document?</h3>
+<h3 id="63-what-tools-are-available-for-post-processing-my-pdf-document-wzxhzdk156wzxhzdk157">6.3. What tools are available for post-processing my PDF document? ## <a id="#pdf-postprocess"></a></h3>
<p>See <a href="1.0/output.html#pdf-postprocess">PDF Post-processing</a> .</p>
-<h3 id="pdf-security">6.4. How do I add security features (encryption, disable printing) to my PDF document?</h3>
+<h3 id="64-how-do-i-add-security-features-encryption-disable-printing-to-my-pdf-document-wzxhzdk158wzxhzdk159">6.4. How do I add security features (encryption, disable printing) to my PDF document? ## <a id="#pdf-security"></a></h3>
<p>See <a href="1.0/pdfencryption.html">PDF Encryption</a> . See also <a href="1.0/output.html#pdf-postprocess">PDF Post-processing</a> .</p>
-<h3 id="pdf-doc-properties">6.5. How do I add document properties (title, author, etc.) to my PDF document?</h3>
+<h3 id="65-how-do-i-add-document-properties-title-author-etc-to-my-pdf-document-wzxhzdk160wzxhzdk161">6.5. How do I add document properties (title, author, etc.) to my PDF document? ## <a id="#pdf-doc-properties"></a></h3>
<p>See <a href="1.0/metadata.html">Metadata</a> .</p>
-<h3 id="pdf-watermark">6.6. How do I add watermarks to my PDF document?</h3>
+<h3 id="66-how-do-i-add-watermarks-to-my-pdf-document-wzxhzdk162wzxhzdk163">6.6. How do I add watermarks to my PDF document? ## <a id="#pdf-watermark"></a></h3>
<p>See <a href="1.0/output.html#pdf-watermark">PDF Watermarks</a> .</p>
-<h3 id="pdf-print-contortion">6.7. The PDF is printed contorted!</h3>
+<h3 id="67-the-pdf-is-printed-contorted-wzxhzdk164wzxhzdk165">6.7. The PDF is printed contorted! ## <a id="#pdf-print-contortion"></a></h3>
<p>Check the paper size in Acrobat settings and the "fit to page" print setting. Contorted printing is often caused by a mismatched paper format, for example if the setting is "US Letter" but the PDF was made for A4. Sometimes also the printer driver interferes, check its settings too.</p>
-<h3 id="pdf-bookmark-display">6.8. How do I control the Acrobat bookmark display?</h3>
+<h3 id="68-how-do-i-control-the-acrobat-bookmark-display-wzxhzdk166wzxhzdk167">6.8. How do I control the Acrobat bookmark display? ## <a id="#pdf-bookmark-display"></a></h3>
<p>FOP supports the starting-state property of the XSL 1.1 <a href="http://www.w3.org/TR/xsl11/#fo_bookmark">fo:bookmark</a> element which can be used for this. The color, font-style and font-weight properties on <a href="http://www.w3.org/TR/xsl11/#fo_bookmark-title">fo:bookmark-title</a> are not yet supported, though.</p>
-<h3 id="acrobat-anti-aliasing">6.9. How can I get rid of strange single-pixel lines inside table borders or between table cells in Adobe Acrobat?</h3>
+<h3 id="69-how-can-i-get-rid-of-strange-single-pixel-lines-inside-table-borders-or-between-table-cells-in-adobe-acrobat-wzxhzdk168wzxhzdk169">6.9. How can I get rid of strange single-pixel lines inside table borders or between table cells in Adobe Acrobat? ## <a id="#acrobat-anti-aliasing"></a></h3>
<p>Since Apache FOP supports the collapsed border model, every border segment consists of two separate shapes. This is due to the fact that each side of the border segment can have a different color. Now, Adobe Acrobat may display thin (1 pixel wide) lines inside the border segment or sometimes even between to adjacent colored rectangles making up the background of a block or table cell. This effect is due to the way Adobe Acrobat does anti-aliasing. Adobe's algorithm seems to cause these artifacts. Other PDF viewers don't have that problem. Or at least we haven't had any reports in that direction.</p>
<p>First of all, these artifacts do not appear in print since no anti-aliasing is done by Adobe Acrobat in this case (except maybe if you tell Acrobat to print the page as a bitmap in which case Adobe fully composes the page itself). So, if the artifacts appear on screen, it doesn't mean they have to appear in print, too.</p>
<p>To get rid of the artifacts, you can call up the "Preferences" dialog of Adobe Acrobat and select the tab "Page display". Enabling "Enhance thin lines" may help in some situations. Otherwise, you can disable "Smooth line art". You may have to disable "Use 2D graphics acceleration", too, so you can disable "Smooth line art" in the first place.</p>
<p>Here an example of how the effect can look like (left: anti-aliasing on, right: anti-aliasing off):
<figure alt="Left: anti-aliasing on, Right: off" src="images/acrobat-anti-aliasing-artifacts.png"></figure>
Unfortunately, it is not possible to control the above settings from within the PDF file. The user has to change these settings himself. Improving FOP to avoid this kind of problem would be possible although rather hard to achieve because we'd need to add a considerable amount of code to combine the various line segments. Something like that has been tried already years ago showing that this is a tricky task. Also, the improvement may not justify the amount of effort required.</p>
-<h2 id="part-iex">7. IEx specific stuff</h2>
-<h3 id="iex-servlet-multiple">7.1. The FOP servlet is called multiple times!</h3>
+<h2 id="7-iex-specific-stuff-wzxhzdk172wzxhzdk173">7. IEx specific stuff # <a id="#part-iex"></a></h2>
+<h3 id="71-the-fop-servlet-is-called-multiple-times-wzxhzdk174wzxhzdk175">7.1. The FOP servlet is called multiple times! ## <a id="#iex-servlet-multiple"></a></h3>
<p>This is a problem of Internet Explorer requesting the content several times. Please see the <a href="1.0/servlets.html#ie">notes on Internet Explorer</a> for more information.</p>
-<h3 id="iex-pdf-print-from-browser">7.2. How do I print PDF directly from the browser?</h3>
+<h3 id="72-how-do-i-print-pdf-directly-from-the-browser-wzxhzdk176wzxhzdk177">7.2. How do I print PDF directly from the browser? ## <a id="#iex-pdf-print-from-browser"></a></h3>
<p>It depends whether you mean "printing to a printer under control of the server" or "printing on the client's printer".</p>
<p>For the first problem, look at the print servlet in the FOP examples. You'll have to gather any printer settings in a HTML form and send it to the server.</p>
<p>For the second task, you can use some client side script to start Acrobat Reader in print mode, or use a Java applet based on the FOP print servlet. This depends heavily on the client installation and should not be relied on except in tightly controlled environments.</p>
<p>See also <a href="http://marc.theaimsgroup.com/?l=fop-dev&m=101065988325115&w=2">http://marc.theaimsgroup.com/?l=fop-dev&m=101065988325115&w=2</a> </p>
-<h2 id="part-input">8. General questions regarding XSLT, XSLFO, and basic XML</h2>
-<h3 id="fo-center">8.1. (FO) How do I vertically center an image or a table (or whatever)?</h3>
+<h2 id="8-general-questions-regarding-xslt-xslfo-and-basic-xml-wzxhzdk178wzxhzdk179">8. General questions regarding XSLT, XSLFO, and basic XML # <a id="#part-input"></a></h2>
+<h3 id="81-fo-how-do-i-vertically-center-an-image-or-a-table-or-whatever-wzxhzdk180wzxhzdk181">8.1. (FO) How do I vertically center an image or a table (or whatever)? ## <a id="#fo-center"></a></h3>
<p>See <a href="fo.html#fo-center-vertical">XSL-FO Vertical Centering</a> .</p>
-<h3 id="fo-center-table-horizon">8.2. (FO) How do I center a table horizontally?</h3>
+<h3 id="82-fo-how-do-i-center-a-table-horizontally-wzxhzdk182wzxhzdk183">8.2. (FO) How do I center a table horizontally? ## <a id="#fo-center-table-horizon"></a></h3>
<p>See <a href="fo.html#fo-center-table-horizon">XSL-FO Horizontal Centering (Tables)</a> .</p>
-<h3 id="fo-page-outer">8.3. (FO) How to get page numbers printed on the "outer side" of the page (for books, for example)?</h3>
+<h3 id="83-fo-how-to-get-page-numbers-printed-on-the-outer-side-of-the-page-for-books-for-example-wzxhzdk184wzxhzdk185">8.3. (FO) How to get page numbers printed on the "outer side" of the page (for books, for example)? ## <a id="#fo-page-outer"></a></h3>
<p>See <a href="fo.html#fo-oddeven">Recto/Verso Static Content Differences</a> .</p>
-<h3 id="oddeven">8.4. (FO) How do I use different static content for odd and even pages?</h3>
+<h3 id="84-fo-how-do-i-use-different-static-content-for-odd-and-even-pages-wzxhzdk186wzxhzdk187">8.4. (FO) How do I use different static content for odd and even pages? ## <a id="#oddeven"></a></h3>
<p>See <a href="fo.html#fo-oddeven">Recto/Verso Static Content Differences</a> .</p>
-<h3 id="fo-first-page-header">8.5. (FO) How do I get a special header on the first page?</h3>
+<h3 id="85-fo-how-do-i-get-a-special-header-on-the-first-page-wzxhzdk188wzxhzdk189">8.5. (FO) How do I get a special header on the first page? ## <a id="#fo-first-page-header"></a></h3>
<p>See <a href="fo.html#fo-first-page">Making the First Page Special</a> .</p>
-<h3 id="fo-omit-headers">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?</h3>
+<h3 id="86-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-wzxhzdk190wzxhzdk191">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? ## <a id="#fo-omit-headers"></a></h3>
<p>See <a href="fo.html#fo-blank-pages">Blank Pages</a> .</p>
-<h3 id="fo-special-symbols">8.7. (FO) How do I print an Euro sign, a checkbox or other some other special symbols?</h3>
+<h3 id="87-fo-how-do-i-print-an-euro-sign-a-checkbox-or-other-some-other-special-symbols-wzxhzdk192wzxhzdk193">8.7. (FO) How do I print an Euro sign, a checkbox or other some other special symbols? ## <a id="#fo-special-symbols"></a></h3>
<p>See <a href="fo.html#xml-special-chars">Special Characters</a> .</p>
-<h3 id="fo-preformat">8.8. (FO) How do I keep linebreaks and hard spaces? How do I get preformatted text displayed as expected?</h3>
+<h3 id="88-fo-how-do-i-keep-linebreaks-and-hard-spaces-how-do-i-get-preformatted-text-displayed-as-expected-wzxhzdk194wzxhzdk195">8.8. (FO) How do I keep linebreaks and hard spaces? How do I get preformatted text displayed as expected? ## <a id="#fo-preformat"></a></h3>
<p>See <a href="fo.html#fo-preformat">Preformatting Content</a> .</p>
-<h3 id="fo-total-pages">8.9. (FO) How do I print the total number of pages, for example "page 1 of 12"</h3>
+<h3 id="89-fo-how-do-i-print-the-total-number-of-pages-for-example-page-1-of-12-wzxhzdk196wzxhzdk197">8.9. (FO) How do I print the total number of pages, for example "page 1 of 12" ## <a id="#fo-total-pages"></a></h3>
<p>See <a href="fo.html#fo-total-pages">Total Document Pages</a> .</p>
-<h3 id="fo-region-overlap">8.10. (FO) The header overlaps body content. The body extends into the footer.</h3>
+<h3 id="810-fo-the-header-overlaps-body-content-the-body-extends-into-the-footer-wzxhzdk198wzxhzdk199">8.10. (FO) The header overlaps body content. The body extends into the footer. ## <a id="#fo-region-overlap"></a></h3>
<p>See <a href="fo.html#fo-region-align">Aligning Regions</a> .</p>
-<h3 id="fo-lines">8.11. (FO) How do I get lines in the document, as separators, side bars or folding marks?</h3>
+<h3 id="811-fo-how-do-i-get-lines-in-the-document-as-separators-side-bars-or-folding-marks-wzxhzdk200wzxhzdk201">8.11. (FO) How do I get lines in the document, as separators, side bars or folding marks? ## <a id="#fo-lines"></a></h3>
<p>See <a href="fo.html#fo-lines">Drawing Lines</a> .</p>
-<h3 id="fo-validate">8.12. (FO) How do I validate my FO document?</h3>
+<h3 id="812-fo-how-do-i-validate-my-fo-document-wzxhzdk202wzxhzdk203">8.12. (FO) How do I validate my FO document? ## <a id="#fo-validate"></a></h3>
<p>See <a href="fo.html#fo-validate">Validating XSL-FO</a> .</p>
-<h3 id="xml-non-breaking-space">8.13. (XML) How do I get a non-breaking space in FO? There are complaints about .</h3>
+<h3 id="813-xml-how-do-i-get-a-non-breaking-space-in-fo-there-are-complaints-about-wzxhzdk206-wzxhzdk204wzxhzdk205">8.13. (XML) How do I get a non-breaking space in FO? There are complaints about . ## <a id="#xml-non-breaking-space"></a></h3>
<p>See <a href="fo.html#xml-special-chars">XML Special Characters</a> .</p>
-<h3 id="xml-undefined-entities">8.14. (XML) How do I enter special characters in XML? There are complaints about undefined entities, such as ü, which work in HTML.</h3>
+<h3 id="814-xml-how-do-i-enter-special-characters-in-xml-there-are-complaints-about-undefined-entities-such-as-wzxhzdk209-which-work-in-html-wzxhzdk207wzxhzdk208">8.14. (XML) How do I enter special characters in XML? There are complaints about undefined entities, such as ü, which work in HTML. ## <a id="#xml-undefined-entities"></a></h3>
<p>See <a href="fo.html#xml-special-chars">XML Special Characters</a> .</p>
-<h3 id="xml-illegal-entities">8.15. (XML) There are complaints about illegal characters and entities in the input.</h3>
+<h3 id="815-xml-there-are-complaints-about-illegal-characters-and-entities-in-the-input-wzxhzdk210wzxhzdk211">8.15. (XML) There are complaints about illegal characters and entities in the input. ## <a id="#xml-illegal-entities"></a></h3>
<p>See <a href="fo.html#xml-entity-chars">Using HTML Character Names</a> .</p>
-<h3 id="xml-illegal-chars">8.16. (XML) There are complaints about illegal bytes or characters in the input. There are odd characters in the result.</h3>
+<h3 id="816-xml-there-are-complaints-about-illegal-bytes-or-characters-in-the-input-there-are-odd-characters-in-the-result-wzxhzdk212wzxhzdk213">8.16. (XML) There are complaints about illegal bytes or characters in the input. There are odd characters in the result. ## <a id="#xml-illegal-chars"></a></h3>
<p>See <a href="fo.html#xml-encoding">XML Encoding Issues</a> .</p>
-<h3 id="xslt-current-date">8.17. (XSLT) How can I use the current date and time in my document?</h3>
+<h3 id="817-xslt-how-can-i-use-the-current-date-and-time-in-my-document-wzxhzdk214wzxhzdk215">8.17. (XSLT) How can I use the current date and time in my document? ## <a id="#xslt-current-date"></a></h3>
<p>See <a href="fo.html#xslt-date">Current Date and Time</a> .</p>
-<h3 id="xhtml-to-pdf">8.18. Can I use FOP to convert XHTML or HTML files to PDF?</h3>
+<h3 id="818-can-i-use-fop-to-convert-xhtml-or-html-files-to-pdf-wzxhzdk216wzxhzdk217">8.18. Can I use FOP to convert XHTML or HTML files to PDF? ## <a id="#xhtml-to-pdf"></a></h3>
<p>You will get better results if you transform your source XML directly into XSLFO. It is tempting to use the XML->XHTML->XSLFO approach, because this apparently means there's only one transformation to maintain, but XHTML and publishing grade PDF are dissimilar enough that an "generic" XHTML->XSLFO(PDF) usually wont cut it, because the XHTML already lacks information from the original XML. It may be worthwhile to go from the source XML to an intermediate custom XML which on one hand is close enough to representation to allow simple transformation to either XHTML or XSLFO for most of the structure, but on the other hand retains enough semantic from the original XML that elements which must be handled differently in the two representations can be handled differently. Setting this up requires experience and most likely extensive prototyping.</p>
-<h3 id="xhtml-to-pdf2">8.19. I know it may be a bad idea to use FOP to convert XHTML or HTML files to PDF, but I want to do it anyway. Are there any tools available to help me?</h3>
+<h3 id="819-i-know-it-may-be-a-bad-idea-to-use-fop-to-convert-xhtml-or-html-files-to-pdf-but-i-want-to-do-it-anyway-are-there-any-tools-available-to-help-me-wzxhzdk218wzxhzdk219">8.19. I know it may be a bad idea to use FOP to convert XHTML or HTML files to PDF, but I want to do it anyway. Are there any tools available to help me? ## <a id="#xhtml-to-pdf2"></a></h3>
<p>The <a href="resources.html">FOP Resources page</a> has links to a tool called <a href="http://html2fo.sourceforge.net/">html2fo</a> which can be used to make such a transformation. In addition, there are tools on the Antenna House <a href="http://www.antennahouse.com/XSLsample/XSLsample.htm">XSL-FO Tutorial and Sample</a> page.</p>
-<h2 id="dev-help">9. Development-related Questions.</h2>
-<h3 id="doc-mgt">9.1. Where can I learn how the FOP docs and web site are built?</h3>
+<h2 id="9-development-related-questions-wzxhzdk220wzxhzdk221">9. Development-related Questions. # <a id="#dev-help"></a></h2>
+<h3 id="91-where-can-i-learn-how-the-fop-docs-and-web-site-are-built-wzxhzdk222wzxhzdk223">9.1. Where can I learn how the FOP docs and web site are built? ## <a id="#doc-mgt"></a></h3>
<p>See FOP <a href="dev/doc.html">Doc Management</a> . ;-)</p>
-<h2 id="part-help">10. General suggestions. How to solve problems.</h2>
-<h3 id="bugs">10.1. I think I have found a bug in FOP. What should I do?</h3>
+<h2 id="10-general-suggestions-how-to-solve-problems-wzxhzdk224wzxhzdk225">10. General suggestions. How to solve problems. # <a id="#part-help"></a></h2>
+<h3 id="101-i-think-i-have-found-a-bug-in-fop-what-should-i-do-wzxhzdk226wzxhzdk227">10.1. I think I have found a bug in FOP. What should I do? ## <a id="#bugs"></a></h3>
<p>See <a href="bugs.html">the Bugs page</a> for information about bugs already reported and how to report new ones.</p>
-<h3 id="postquestions">10.2. I have questions that are not addressed in this FAQ. Where should I post them?</h3>
+<h3 id="102-i-have-questions-that-are-not-addressed-in-this-faq-where-should-i-post-them-wzxhzdk228wzxhzdk229">10.2. I have questions that are not addressed in this FAQ. Where should I post them? ## <a id="#postquestions"></a></h3>
<ul>
<li>
<p>If your question is a development-related question, please see the <a href="dev/faq.html">Developer FAQs</a> .</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org