You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by vh...@apache.org on 2007/08/23 21:00:51 UTC

svn commit: r569118 [2/49] - in /xmlgraphics/site/deploy/fop: ./ 0.93/ 0.94/ 0.94/images/ dev/ dev/design/ skin/ trunk/

Added: xmlgraphics/site/deploy/fop/0.93/configuration.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/configuration.xml?rev=569118&view=auto
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/configuration.xml (added)
+++ xmlgraphics/site/deploy/fop/0.93/configuration.xml Thu Aug 23 12:00:37 2007
@@ -0,0 +1,331 @@
+<?xml version="1.0" encoding="ISO-8859-1"?><!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--><!-- $Id$ --><!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
+<document>
+  <header>
+    <title>Apache FOP: Configuration</title>
+    <version>$Revision: 569104 $</version>
+  </header>
+
+  <body>
+  <section id="general">
+    <title>Configuration File Basics</title>
+    <p>
+      The FOP configuration file is an XML file containing a variety of settings that are useful 
+      for controlling FOP's behavior, and for helping it find resources that you wish it to use.
+    </p>
+    <p>
+      The easiest way to get started using a FOP configuration file is to copy the sample found 
+      at <code>{fop-dir}/conf/fop.xconf</code> to a location of your choice, and then to 
+      edit it according to your needs.
+      It contains templates for the various configuration options, most of which are commented 
+      out. Remove the comments and change the settings for entries that you wish to use.
+      Be sure to follow any instructions, including comments which specify the value range.
+      Also, since the configuration file is XML, be sure to keep it well-formed.
+    </p>
+    <section id="general-available">
+      <title>Making Configuration Available to FOP</title>
+      <p>After creating your configuration file, you must tell FOP how to find it:</p>
+      <ul>
+        <li>
+          If running FOP from the command-line, see the "-c" command-line option in 
+          <link href="running.html">Running FOP</link>.
+        </li>
+        <li>
+          If running FOP as an embedded application, see 
+          <link href="embedding.html#config-external">Embedding, Using a Configuration File</link>.
+        </li>
+      </ul>
+      <p>
+        See <link href="embedding.html#config-internal">Setting the Configuration Programmatically</link>
+        for instructions on how to do so in an embedded environment.
+      </p>
+    </section>
+  </section>
+  <section id="general-elements">
+    <title>Summary of the General Configuration Options</title>
+    <table>
+      <tr>
+        <th colspan="1" rowspan="1">Element</th>
+        <th colspan="1" rowspan="1">Data Type (for the value)</th>
+        <th colspan="1" rowspan="1">Default Value</th>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">base</td>
+        <td colspan="1" rowspan="1">URL or directory</td>
+        <td colspan="1" rowspan="1">Specifies the base URL based on which relative URL will be resolved.</td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">font-base</td>
+        <td colspan="1" rowspan="1">URL or directory</td>
+        <td colspan="1" rowspan="1">Specifies the base URL based on which relative font URLs will be resolved.
+        If not specified defaults to the base URL above.
+        </td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">hyphenation-base</td>
+        <td colspan="1" rowspan="1">URL or directory</td>
+        <td colspan="1" rowspan="1">Specifies the base URL based on which relative URLs to hyphenation pattern 
+        files will be resolved. If not specified, support for user-supplied hyphenation 
+        patterns remains disabled.
+        </td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">source-resolution</td>
+        <td colspan="1" rowspan="1">Integer, dpi</td>
+        <td colspan="1" rowspan="1">
+          Resolution in dpi (dots per inch) which is used internally to determine the pixel 
+          size for SVG images and bitmap images without resolution information.
+        </td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">target-resolution</td>
+        <td colspan="1" rowspan="1">Integer, dpi</td>
+        <td colspan="1" rowspan="1">
+          Resolution in dpi (dots per inch) used to specify the output resolution for bitmap
+          images generated by bitmap renderers (such as the TIFF renderer) and by bitmaps
+          generated by Apache Batik for filter effects and such.
+        </td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">strict-validation</td>
+        <td colspan="1" rowspan="1">Boolean (true, false)</td>
+        <td colspan="1" rowspan="1">
+          Setting this option to 'false' causes FOP to be more forgiving about XSL-FO validity, 
+          for example, you're allowed to specify a border on a region-body which is supported 
+          by some FO implementations but is non-standard. Note that such a border would 
+          currently have no effect in Apache FOP.</td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">break-indent-inheritance</td>
+        <td colspan="1" rowspan="1">Boolean (true, false)</td>
+        <td colspan="1" rowspan="1">
+          Setting this option to 'true' causes FOP to use an alternative rule set to determine
+          text indents specified through margins, start-indent and end-indent. Many commercial
+          FO implementations have chosen to break the XSL specification in this aspect. This
+          option tries to mimic their behaviour. Please note that Apache FOP may still not
+          behave exactly like those implementations either because FOP has not fully matched
+          the desired behaviour and because the behaviour among the commercial implementations
+          varies. The default for this option (i.e. false) is to behave exactly like the 
+          specification describes.</td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">default-page-settings</td>
+        <td colspan="1" rowspan="1">n/a</td>
+        <td colspan="1" rowspan="1">
+          Specifies the default width and height of a page if "auto" is specified 
+          for either or both values. Use "height" and "width" attributes on the 
+          default-page-settings element to specify the two values.</td>
+      </tr>
+      <tr>
+        <td colspan="1" rowspan="1">renderers</td>
+        <td colspan="1" rowspan="1">(see text below)</td>
+        <td colspan="1" rowspan="1">Contains the configuration for each renderer. See below.</td>
+      </tr>
+    </table>
+    <p>
+      This is an excerpt from the example configuration file coming with FOP:
+    </p>
+    <source xml:space="preserve"><![CDATA[
+<fop version="1.0">
+
+  <!-- Base URL for resolving relative URLs -->
+  <base>./</base>
+
+  <!-- Font Base URL for resolving relative font URLs -->
+  <font-base>./</font-base>
+
+  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
+  <source-resolution>72</source-resolution>
+  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
+  <target-resolution>72</target-resolution>
+
+  <!-- default page-height and page-width, in case
+       value is specified as auto -->
+  <default-page-settings height="11in" width="8.26in"/>
+  
+  <!-- etc. etc..... -->
+</fop>]]></source>
+  </section>
+  <section id="renderers">
+    <title>Renderer configuration</title>
+    <p>
+      Each Renderer has its own configuration section which is identified by the
+      MIME type the Renderer is written for, ex. "application/pdf" for the PDF Renderer.
+    </p>
+    <p>
+      The configuration for the PDF Renderer could look like this:
+    </p>
+    <source xml:space="preserve"><![CDATA[
+  <renderers>
+    <renderer mime="application/pdf">
+      <filterList>
+        <!-- provides compression using zlib flate (default is on) -->
+        <value>flate</value>
+      </filterList>
+      <fonts>
+        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
+          <font-triplet name="Arial" style="normal" weight="normal"/>
+          <font-triplet name="ArialMT" style="normal" weight="normal"/>
+        </font>
+        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
+          <font-triplet name="Arial" style="normal" weight="bold"/>
+          <font-triplet name="ArialMT" style="normal" weight="bold"/>
+        </font>
+      </fonts>
+    </renderer>
+    
+    <renderer mime="application/postscript">
+    <!-- etc. etc..... -->]]></source>
+    <p>
+      The details on the font configuration can be found on the separate <link href="fonts.html">Fonts</link> page.
+      Note especially the section entitled <link href="fonts.html#register">Register Fonts with FOP</link>.
+    </p>
+    <section id="pdf-renderer">
+      <title>Special Settings for the PDF Renderer</title>
+      <p>
+        The configuration element for the PDF renderer contains two elements. One is for the font configuration
+        (please follow the link above) and one is for the "filter list". The filter list controls how the
+        individual objects in a PDF file are encoded. By default, all objects get "flate" encoded (i.e. simply 
+        compressed with the same algorithm that is also used in ZIP files). Most users don't need to change that
+        setting. For debugging purposes, it may be desired not to compress the internal objects at all so the
+        generated PDF commands can be read. In that case, you can simply use the following filter list. The 
+        second filter list (type="image") ensures that all images still get compressed but also ASCII-85 encoded
+        so the produced PDF file is still easily readable in a text editor.
+      </p>
+    <source xml:space="preserve"><![CDATA[
+    <renderer mime="application/pdf">
+      <filterList>
+        <value>null</value>
+      </filterList>
+      <filterList type="image">
+        <value>flate</value>
+        <value>ascii-85</value>
+      </filterList>
+      
+      <fonts....
+    </renderer>]]></source>
+      <p>
+        Another (optional) setting specific to the PDF Renderer is an output color profile, an ICC 
+        color profile which indicates the target color space the PDF file is generated for. This 
+        setting is mainly used in conjunction with the <link href="pdfx.html">PDF/X</link> feature. 
+        An example:
+      </p>
+    <source xml:space="preserve"><![CDATA[
+    <renderer mime="application/pdf">
+      <filterList...
+      
+      <output-profile>C:\FOP\Color\EuropeISOCoatedFOGRA27.icc</output-profile>
+      
+      <fonts....
+    </renderer>]]></source>
+    </section>
+    <section id="ps-renderer">
+      <title>Special Settings for the PostScript Renderer</title>
+      <p>
+        Besides the normal font configuration (the same "fonts" element as for the PDF renderer) the PostScript
+        renderer has an additional setting to force landscape pages to be rotated to fit on a page inserted into
+        the printer in portrait mode. Set the value to "true" to activate this feature. The default is "false".
+        Example:
+      </p>
+    <source xml:space="preserve"><![CDATA[
+    <renderer mime="application/postscript">
+      <auto-rotate-landscape>true</auto-rotate-landscape>
+      
+      <fonts>
+        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
+          <font-triplet name="Arial" style="normal" weight="normal"/>
+          <font-triplet name="ArialMT" style="normal" weight="normal"/>
+        </font>
+        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
+          <font-triplet name="Arial" style="normal" weight="bold"/>
+          <font-triplet name="ArialMT" style="normal" weight="bold"/>
+        </font>
+      </fonts>
+    </renderer>]]></source>
+    </section>
+    <section id="pcl-renderer">
+      <title>Special Settings for the PCL Renderer</title>
+      <p>
+        Non-standard fonts for the PCL renderer are made available through the Java2D subsystem which means that
+        you don't have to do any custom font configuration in this case but you have to use the font names
+        offered by Java.
+      </p>
+      <p>
+        Additionally, there are certain settings that control who the renderer handles various elements.
+      </p>
+<source xml:space="preserve"><![CDATA[<renderer mime="application/vnd.hp-PCL">
+  <rendering>quality</rendering>
+  <text-rendering>bitmap</text-rendering>
+</renderer>]]></source>
+      <p>
+        The default value for the "rendering" setting is "speed" which causes borders 
+        to be painted as plain rectangles. In this mode, no special borders (dotted, 
+        dashed etc.) are available. If you want support for all border modes, set the
+        value to "quality" as indicated above. This will cause the borders to be painted
+        as bitmaps.
+      </p>
+      <p>
+        The default value for the "text-rendering" setting is "auto" which paints the
+        base fonts using PCL fonts. Non-base fonts are painted as bitmaps through Java2D.
+        If the mix of painting methods results in unwelcome output, you can set this
+        to "bitmap" which causes all text to be rendered as bitmaps.
+      </p>
+    </section>
+  </section>
+
+  <section>
+    <title>When it does not work</title>
+
+    <p>FOP searches the configuration file for the information it
+expects, at the position it expects. When that information is not
+present, FOP will not complain, it will just continue. When there is
+other information in the file, FOP will not complain, it will just
+ignore it. That means that when your configuration information is in
+the file but in a different XML element, or in a different XML path,
+than FOP expects, it will be silently ignored.</p>
+
+    <p>Check the following possibilities:</p>
+
+    <ul>
+    <li>The format of the configuration file has changed
+considerably between FOP 0.20.5 and FOP 1.0 and its beta versions. Did
+you convert your file to the new format?</li>
+
+    <li>The FOP distribution contains a schema for configuration
+files, at src/foschema/fop-configuration.xsd. Did you validate your
+configuration file against it? Add the following schema location to
+the <code>schema</code> element:
+
+<source xml:space="preserve"><![CDATA[<fop
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:noNamespaceSchemaLocation=
+"http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd?view=co">
+]]></source>
+
+and run the configuration file through a validating schema
+parser. Note that the schema cannot detect all errors, and that it is
+stricter about the order of some elements than FOP itself is.</li>
+
+    <li>Run FOP in debug mode (command line option
+<code>-d</code>). This makes FOP report which configuration
+information it finds. Check if FOP finds what you expect.</li>
+
+    </ul>
+
+  </section>
+  </body>
+</document>
\ No newline at end of file

Propchange: xmlgraphics/site/deploy/fop/0.93/configuration.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/site/deploy/fop/0.93/configuration.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: xmlgraphics/site/deploy/fop/0.93/embedding.html
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/embedding.html?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/embedding.html (original)
+++ xmlgraphics/site/deploy/fop/0.93/embedding.html Thu Aug 23 12:00:37 2007
@@ -57,13 +57,13 @@
 <li>
 <a class="base-not-selected" href="../index.html">Home</a>
 </li>
-<li>
-<a class="base-not-selected" href="../0.20.5/index.html">Version 0.20.5</a>
-</li>
 <li class="current">
 <a class="base-selected" href="../0.93/index.html">Version 0.93</a>
 </li>
 <li>
+<a class="base-not-selected" href="../0.94/index.html">Version 0.94</a>
+</li>
+<li>
 <a class="base-not-selected" href="../trunk/index.html">FOP Trunk</a>
 </li>
 <li>
@@ -187,10 +187,20 @@
     |start content
     +-->
 <div id="content">
+<div title="raw XML" class="xmllink">
+<a class="dida" href="embedding.xml"><img alt="XML - icon" src="../skin/images/xmldoc.gif" class="skin"><br>
+        XML</a>
+</div>
 <div title="Portable Document Format" class="pdflink">
 <a class="dida" href="embedding.pdf"><img alt="PDF -icon" src="../skin/images/pdfdoc.gif" class="skin"><br>
         PDF</a>
 </div>
+<div class="trail">
+<text>Font size:</text> 
+	          &nbsp;<input value="Reset" class="resetfont" title="Reset text" onclick="ndeSetTextSize('reset'); return false;" type="button">      
+	          &nbsp;<input value="-a" class="smallerfont" title="Shrink text" onclick="ndeSetTextSize('decr'); return false;" type="button">
+	          &nbsp;<input value="+a" class="biggerfont" title="Enlarge text" onclick="ndeSetTextSize('incr'); return false;" type="button">
+</div>
 <h1>Apache FOP: Embedding</h1>
 <h3>How to Embed FOP in a Java application</h3>
 <div id="minitoc-area">
@@ -444,7 +454,7 @@
 <h3 class="underlined_5">Logging</h3>
 <p>
         Logging is now a little different than it was in FOP 0.20.5. We've switched from
-        Avalon Logging to <a href="http://jakarta.apache.org/commons/logging/">Jakarta Commons Logging</a>.
+        Avalon Logging to <a class="external" href="http://jakarta.apache.org/commons/logging/">Jakarta Commons Logging</a>.
         While with Avalon Logging the loggers were directly given to FOP, FOP now retrieves
         its logger(s) through a statically available LogFactory. This is similar to the
         general pattern that you use when you work with Apache Log4J directly, for example.
@@ -463,15 +473,15 @@
         interesting for a developer working on FOP and for advanced users who are debugging 
         FOP. We don't consider the logging output to be useful to normal FOP users. Please
         have some patience until we can add this feature or jump in and help us build it. We've
-        set up a <a href="http://wiki.apache.org/xmlgraphics-fop/ProcessingFeedback">Wiki page</a>
+        set up a <a class="external" href="http://wiki.apache.org/xmlgraphics-fop/ProcessingFeedback">Wiki page</a>
         which documents what we're going to build.
       </div>
 </div>
 <p>
-        By default, <a href="http://jakarta.apache.org/commons/logging/">Jakarta Commons Logging</a> uses
+        By default, <a class="external" href="http://jakarta.apache.org/commons/logging/">Jakarta Commons Logging</a> uses
         JDK logging (available in JDKs 1.4 or higher) as its backend. You can configure Commons
         Logging to use an alternative backend, for example Log4J. Please consult the
-        <a href="http://jakarta.apache.org/commons/logging/">documentation for Jakarta Commons Logging</a> on
+        <a class="external" href="http://jakarta.apache.org/commons/logging/">documentation for Jakarta Commons Logging</a> on
         how to configure alternative backends.
       </p>
 <a name="N10098"></a><a name="render"></a>
@@ -564,7 +574,7 @@
       For example, you may have a DOM and an XSL stylesheet; or you may want to
       set variables in the stylesheet. Interface documentation and some cookbook 
       solutions to these situations are provided in 
-      <a href="http://xml.apache.org/xalan-j/usagepatterns.html">Xalan Basic Usage Patterns</a>.
+      <a class="external" href="http://xml.apache.org/xalan-j/usagepatterns.html">Xalan Basic Usage Patterns</a>.
     </p>
 </div>
   
@@ -649,7 +659,7 @@
 <p>
             Set a <strong>URIResolver</strong> for custom URI resolution. By supplying a JAXP URIResolver you can add
             custom URI resolution functionality to FOP. For example, you can use 
-            <a href="http://xml.apache.org/commons/components/resolver/">Apache XML Commons Resolver</a> to make use of XCatalogs. Example:
+            <a class="external" href="http://xml.apache.org/commons/components/resolver/">Apache XML Commons Resolver</a> to make use of XCatalogs. Example:
           </p>
           
 <pre class="code">fopFactory.setURIResolver(myResolver); // myResolver is a javax.xml.transform.URIResolver</pre>
@@ -797,7 +807,7 @@
 <p>
             Set a <strong>URIResolver</strong> for custom URI resolution. By supplying a JAXP URIResolver you can add
             custom URI resolution functionality to FOP. For example, you can use 
-            <a href="http://xml.apache.org/commons/components/resolver/">Apache XML Commons Resolver</a> to make use of XCatalogs. Example:
+            <a class="external" href="http://xml.apache.org/commons/components/resolver/">Apache XML Commons Resolver</a> to make use of XCatalogs. Example:
           </p>
           
 <pre class="code">userAgent.setURIResolver(myResolver); // myResolver is a javax.xml.transform.URIResolver</pre>
@@ -917,11 +927,11 @@
         Cache the stylesheet. If you use the same stylesheet multiple times 
         you can set up a JAXP <span class="codefrag">Templates</span> object and reuse it each time you do
         the XSL transformation.  (More information can be found
-        <a target="_blank" class="fork" href="http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl.html">here</a>.)
+        <a class="external" href="http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl.html">here</a>.)
       </li>
       
 <li>
-        Use an XSLT compiler like <a target="_blank" class="fork" href="http://xml.apache.org/xalan-j/xsltc_usage.html">XSLTC</a>
+        Use an XSLT compiler like <a class="external" href="http://xml.apache.org/xalan-j/xsltc_usage.html">XSLTC</a>
         that comes with Xalan-J.
       </li>
       
@@ -957,7 +967,7 @@
 <a name="N102C5"></a><a name="ExampleFO2PDF"></a>
 <h3 class="underlined_5">ExampleFO2PDF.java</h3>
 <p>This
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup">
             example</a>
 demonstrates the basic usage pattern to transform an XSL-FO
 file to PDF using FOP.
@@ -967,19 +977,19 @@
 <a name="N102D7"></a><a name="ExampleXML2FO"></a>
 <h3 class="underlined_5">ExampleXML2FO.java</h3>
 <p>This 
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2FO.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2FO.java?view=markup">
             example</a>
 has nothing to do with FOP. It is there to show you how an XML 
 file can be converted to XSL-FO using XSLT. The JAXP API is used to do the
 transformation. Make sure you've got a JAXP-compliant XSLT processor in your 
-classpath (ex. <a href="http://xml.apache.org/xalan-j">Xalan</a>).
+classpath (ex. <a class="external" href="http://xml.apache.org/xalan-j">Xalan</a>).
     </p>
 <div id="" style="text-align: center;">
 <img id="" class="figure" alt="Example XML to XSL-FO" src="images/EmbeddingExampleXML2FO.png"></div>
 <a name="N102ED"></a><a name="ExampleXML2PDF"></a>
 <h3 class="underlined_5">ExampleXML2PDF.java</h3>
 <p>This 
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup">
         example</a>
 demonstrates how you can convert an arbitrary XML file to PDF 
 using XSLT and XSL-FO/FOP. It is a combination of the first two examples 
@@ -999,7 +1009,7 @@
 <a name="N10302"></a><a name="ExampleObj2XML"></a>
 <h3 class="underlined_5">ExampleObj2XML.java</h3>
 <p>This 
-    <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2XML.java?view=markup">
+    <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2XML.java?view=markup">
         example</a>
 is a preparatory example for the next one. It's an example that 
 shows how an arbitrary Java object can be converted to XML. It's an often 
@@ -1027,12 +1037,12 @@
 <p>
 Have a look at the source of ExampleObj2XML.java to find out how this is 
 used. For more detailed information see other resources on JAXP (ex. 
-<a target="_blank" class="fork" href="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/3_generate.html">An older JAXP tutorial</a>).
+<a class="external" href="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/3_generate.html">An older JAXP tutorial</a>).
     </p>
 <a name="N10322"></a><a name="ExampleObj2PDF"></a>
 <h3 class="underlined_5">ExampleObj2PDF.java</h3>
 <p>This 
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup">
             example</a>
 combines the previous and the third to demonstrate 
 how you can transform a Java object to a PDF directly in one smooth run
@@ -1045,7 +1055,7 @@
 <a name="N10334"></a><a name="ExampleDOM2PDF"></a>
 <h3 class="underlined_5">ExampleDOM2PDF.java</h3>
 <p>This 
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleDOM2PDF.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleDOM2PDF.java?view=markup">
             example</a>
 has FOP use a DOMSource instead of a StreamSource in order to 
 use a DOM tree as input for an XSL transformation.
@@ -1053,7 +1063,7 @@
 <a name="N10342"></a><a name="ExampleSVG2PDF"></a>
 <h3 class="underlined_5">ExampleSVG2PDF.java (PDF Transcoder example)</h3>
 <p>This 
-        <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java?view=markup">
+        <a class="external" href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java?view=markup">
             example</a>
 shows the usage of the PDF Transcoder, a sub-application within FOP.  
 It is used to generate a PDF document from an SVG file.

Modified: xmlgraphics/site/deploy/fop/0.93/embedding.pdf
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/embedding.pdf?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/embedding.pdf (original)
+++ xmlgraphics/site/deploy/fop/0.93/embedding.pdf Thu Aug 23 12:00:37 2007
@@ -1412,8 +1412,8 @@
 176 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F3
-/BaseFont /Helvetica-Bold
+/Name /F1
+/BaseFont /Helvetica
 /Encoding /WinAnsiEncoding >>
 endobj
 177 0 obj
@@ -1426,22 +1426,22 @@
 178 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F1
-/BaseFont /Helvetica
+/Name /F3
+/BaseFont /Helvetica-Bold
 /Encoding /WinAnsiEncoding >>
 endobj
 179 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F9
-/BaseFont /Courier
+/Name /F2
+/BaseFont /Helvetica-Oblique
 /Encoding /WinAnsiEncoding >>
 endobj
 180 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F2
-/BaseFont /Helvetica-Oblique
+/Name /F9
+/BaseFont /Courier
 /Encoding /WinAnsiEncoding >>
 endobj
 181 0 obj
@@ -1465,7 +1465,7 @@
 endobj
 3 0 obj
 << 
-/Font << /F3 176 0 R /F5 177 0 R /F1 178 0 R /F9 179 0 R /F2 180 0 R /F7 181 0 R >> 
+/Font << /F1 176 0 R /F5 177 0 R /F3 178 0 R /F2 179 0 R /F9 180 0 R /F7 181 0 R >> 
 /ProcSet [ /PDF /ImageC /Text ] >> 
 endobj
 9 0 obj
@@ -1802,10 +1802,10 @@
 0000053644 00000 n 
 0000054021 00000 n 
 0000054191 00000 n 
-0000054305 00000 n 
-0000054416 00000 n 
+0000054300 00000 n 
+0000054411 00000 n 
 0000054525 00000 n 
-0000054632 00000 n 
+0000054642 00000 n 
 0000054749 00000 n 
 trailer
 <<

Added: xmlgraphics/site/deploy/fop/0.93/embedding.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/embedding.xml?rev=569118&view=auto
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/embedding.xml (added)
+++ xmlgraphics/site/deploy/fop/0.93/embedding.xml Thu Aug 23 12:00:37 2007
@@ -0,0 +1,677 @@
+<?xml version="1.0" encoding="ISO-8859-1"?><!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--><!-- $Id$ --><!-- Embedding FOP --><!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
+<document>
+  <header>
+    <title>Apache FOP: Embedding</title>
+    <subtitle>How to Embed FOP in a Java application</subtitle>
+    <version>$Revision: 493717 $</version>
+  </header>
+
+  <body>
+  <section id="overview">
+    <title>Overview</title>
+    <p>
+      Review <link href="running.html">Running FOP</link> for important information that applies 
+      to embedded applications as well as command-line use, such as options and performance.
+    </p>
+    <p>
+      To embed Apache FOP in your application, first create a new
+      org.apache.fop.apps.FopFactory instance. This object can be used to launch multiple
+      rendering runs. For each run, create a new org.apache.fop.apps.Fop instance through
+      one of the factory methods of FopFactory. In the method call you specify which output
+      format (i.e. Renderer) to use and, if the selected renderer requires an OutputStream,
+      which OutputStream to use for the results of the rendering. You can customize FOP's
+      behaviour in a rendering run by supplying your own FOUserAgent instance. The
+      FOUserAgent can, for example, be used to set your own Renderer instance (details
+      below). Finally, you retrieve a SAX DefaultHandler instance from the Fop object and
+      use that as the SAXResult of your transformation.
+    </p>
+    <note>
+      We recently changed FOP's outer API to what we consider the final API. This might require
+      some changes in your application. The main reasons for these changes were performance
+      improvements due to better reuse of reusable objects and reduced use of static variables
+      for added flexibility in complex environments.
+    </note>
+  </section>
+  <section id="basics">
+    <title>Basic Usage Pattern</title>
+    <p>
+      Apache FOP relies heavily on JAXP. It uses SAX events exclusively to receive the XSL-FO 
+      input document. It is therefore a good idea that you know a few things about JAXP (which
+      is a good skill anyway). Let's look at the basic usage pattern for FOP...
+    </p>
+    <p>Here is the basic pattern to render an XSL-FO file to PDF:
+    </p>
+    <source xml:space="preserve"><![CDATA[
+import org.apache.fop.apps.FopFactory;
+import org.apache.fop.apps.Fop;
+import org.apache.fop.apps.MimeConstants;
+
+/*..*/
+
+// Step 1: Construct a FopFactory
+// (reuse if you plan to render multiple documents!)
+FopFactory fopFactory = FopFactory.newInstance();
+
+// Step 2: Set up output stream.
+// Note: Using BufferedOutputStream for performance reasons (helpful with FileOutputStreams).
+OutputStream out = new BufferedOutputStream(new FileOutputStream(new File("C:/Temp/myfile.pdf")));
+
+try {
+  // Step 3: Construct fop with desired output format
+  Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
+
+  // Step 4: Setup JAXP using identity transformer
+  TransformerFactory factory = TransformerFactory.newInstance();
+  Transformer transformer = factory.newTransformer(); // identity transformer
+           
+  // Step 5: Setup input and output for XSLT transformation 
+  // Setup input stream
+  Source src = new StreamSource(new File("C:/Temp/myfile.fo"));
+
+  // Resulting SAX events (the generated FO) must be piped through to FOP
+  Result res = new SAXResult(fop.getDefaultHandler());
+            
+  // Step 6: Start XSLT transformation and FOP processing
+  transformer.transform(src, res);
+
+} finally {
+  //Clean-up
+  out.close();
+}]]></source>
+    <p>
+      Let's discuss these 5 steps in detail:
+    </p>
+    <ul>
+      <li>
+        <strong>Step 1:</strong> You create a new FopFactory instance. The FopFactory instance holds 
+        references to configuration information and cached data. It's important to reuse this
+        instance if you plan to render multiple documents during a JVM's lifetime.
+      </li>
+      <li>
+        <strong>Step 2:</strong> You set up an OutputStream that the generated document
+        will be written to. It's a good idea to buffer the OutputStream as demonstrated 
+        to improve performance.
+      </li>
+      <li>
+        <strong>Step 3:</strong> You create a new Fop instance through one of the factory
+        methods on the FopFactory. You tell the FopFactory what your desired output format
+        is. This is done by using the MIME type of the desired output format (ex. "application/pdf").
+        You can use one of the MimeConstants.* constants. The second parameter is the
+        OutputStream you've setup up in step 2.
+      </li>
+      <li>
+        <strong>Step 4</strong> We recommend that you use JAXP Transformers even 
+        if you don't do XSLT transformations to generate the XSL-FO file. This way 
+        you can always use the same basic pattern. The example here sets up an 
+        "identity transformer" which just passes the input (Source) unchanged to the 
+        output (Result). You don't have to work with a SAXParser if you don't do any 
+        XSLT transformations.
+      </li>
+      <li>
+        <strong>Step 5:</strong> Here you set up the input and output for the XSLT 
+        transformation. The Source object is set up to load the "myfile.fo" file. 
+        The Result is set up so the output of the XSLT transformation is sent to FOP. 
+        The FO file is sent to FOP in the form of SAX events which is the most efficient 
+        way. Please always avoid saving intermediate results to a file or a memory buffer 
+        because that affects performance negatively.
+      </li>
+      <li>
+        <strong>Step 6:</strong> Finally, we start the XSLT transformation by starting 
+        the JAXP Transformer. As soon as the JAXP Transformer starts to send its output 
+        to FOP, FOP itself starts its processing in the background. When the 
+        <code>transform()</code> method returns FOP will also have finished converting 
+        the FO file to a PDF file and you can close the OutputStream.
+        <note label="Tip!">
+          It's a good idea to enclose the whole conversion in a try..finally statement. If
+          you close the OutputStream in the finally section, this will make sure that the
+          OutputStream is properly closed even if an exception occurs during the conversion.
+        </note>
+      </li>
+    </ul>
+    <p>
+      If you're not totally familiar with JAXP Transformers, please have a look at the 
+      <link href="#examples">Embedding examples</link> below. The section contains examples
+      for all sorts of use cases. If you look at all of them in turn you should be able
+      to see the patterns in use and the flexibility this approach offers without adding
+      too much complexity.
+    </p>
+    <p>
+      This may look complicated at first, but it's really just the combination of an 
+      XSL transformation and a FOP run. It's also easy to comment out the FOP part
+      for debugging purposes, for example when you're tracking down a bug in your 
+      stylesheet. You can easily write the XSL-FO output from the XSL transformation
+      to a file to check if that part generates the expected output. An example for that
+      can be found in the <link href="#examples">Embedding examples</link> (See "ExampleXML2FO").
+    </p>
+    <section id="basic-logging">
+      <title>Logging</title>
+      <p>
+        Logging is now a little different than it was in FOP 0.20.5. We've switched from
+        Avalon Logging to <link href="ext:jakarta/commons/logging">Jakarta Commons Logging</link>.
+        While with Avalon Logging the loggers were directly given to FOP, FOP now retrieves
+        its logger(s) through a statically available LogFactory. This is similar to the
+        general pattern that you use when you work with Apache Log4J directly, for example.
+        We call this "static logging" (Commons Logging, Log4J) as opposed to "instance logging" 
+        (Avalon Logging). This has a consequence: You can't give FOP a logger for each
+        processing run anymore. The log output of multiple, simultaneously running FOP instances
+        is sent to the same logger.
+      </p>
+      <note>
+        We know this may be an issue in multi-threaded server environments if you'd like to 
+        know what's going on in every single FOP processing run. We're planning to add an
+        additional feedback facility to FOP which can be used to obtain all sorts of specific
+        feedback (validation messages, layout problems etc.). "Static logging" is mainly 
+        interesting for a developer working on FOP and for advanced users who are debugging 
+        FOP. We don't consider the logging output to be useful to normal FOP users. Please
+        have some patience until we can add this feature or jump in and help us build it. We've
+        set up a <link href="http://wiki.apache.org/xmlgraphics-fop/ProcessingFeedback">Wiki page</link>
+        which documents what we're going to build.
+      </note>
+      <p>
+        By default, <link href="ext:jakarta/commons/logging">Jakarta Commons Logging</link> uses
+        JDK logging (available in JDKs 1.4 or higher) as its backend. You can configure Commons
+        Logging to use an alternative backend, for example Log4J. Please consult the
+        <link href="ext:jakarta/commons/logging">documentation for Jakarta Commons Logging</link> on
+        how to configure alternative backends.
+      </p>
+    </section>
+  
+    <section id="render">
+      <title>Processing XSL-FO</title>
+      <p>
+        Once the Fop instance is set up, call <code>getDefaultHandler()</code> to obtain a SAX 
+        DefaultHandler instance to which you can send the SAX events making up the XSL-FO 
+        document you'd like to render. FOP processing starts as soon as the DefaultHandler's
+        <code>startDocument()</code> method is called. Processing stops again when the
+        DefaultHandler's <code>endDocument()</code> method is called. Please refer to the basic
+        usage pattern shown above to render a simple XSL-FO document.
+      </p>
+    </section>
+
+    <section id="render-with-xslt">
+      <title>Processing XSL-FO generated from XML+XSLT</title>
+      <p>
+        If you want to process XSL-FO generated from XML using XSLT we recommend 
+        again using standard JAXP to do the XSLT part and piping the generated SAX 
+        events directly through to FOP. The only thing you'd change to do that 
+        on the basic usage pattern above is to set up the Transformer differently:
+      </p>
+      <source xml:space="preserve"><![CDATA[
+  //without XSLT:
+  //Transformer transformer = factory.newTransformer(); // identity transformer
+  
+  //with XSLT:
+  Source xslt = new StreamSource(new File("mystylesheet.xsl"));
+  Transformer transformer = factory.newTransformer(xslt);]]></source>
+    </section>
+  </section>
+  <section id="input">
+    <title>Input Sources</title>
+    <p>
+      The input XSL-FO document is always received by FOP as a SAX stream (see the 
+      <link href="../dev/design/parsing.html">Parsing Design Document</link> for the rationale).
+    </p>
+    <p>
+      However, you may not always have your input document available as a SAX stream. 
+      But with JAXP it's easy to convert different input sources to a SAX stream so you
+      can pipe it into FOP. That sounds more difficult than it is. You simply have
+      to set up the right Source instance as input for the JAXP transformation. 
+      A few examples:
+    </p>
+    <ul>
+      <li>
+        <strong>URL:</strong> <code>Source src = new StreamSource("http://localhost:8080/testfile.xml");</code>
+      </li>
+      <li>
+        <strong>File:</strong> <code>Source src = new StreamSource(new File("C:/Temp/myinputfile.xml"));</code>
+      </li>
+      <li>
+        <strong>String:</strong> <code>Source src = new StreamSource(new StringReader(myString)); // myString is a String</code>
+      </li>
+      <li>
+        <strong>InputStream:</strong> <code>Source src = new StreamSource(new MyInputStream(something));</code>
+      </li>
+      <li>
+        <strong>Byte Array:</strong> <code>Source src = new StreamSource(new ByteArrayInputStream(myBuffer)); // myBuffer is a byte[] here</code>
+      </li>
+      <li>
+        <strong>DOM:</strong> <code>Source src = new DOMSource(myDocument); // myDocument is a Document or a Node</code>
+      </li>
+      <li>
+        <strong>Java Objects:</strong> Please have a look at the <link href="#examples">Embedding examples</link> which contain an example for this.
+      </li>
+    </ul>
+    <p>
+      There are a variety of upstream data manipulations possible.
+      For example, you may have a DOM and an XSL stylesheet; or you may want to
+      set variables in the stylesheet. Interface documentation and some cookbook 
+      solutions to these situations are provided in 
+      <link href="http://xml.apache.org/xalan-j/usagepatterns.html">Xalan Basic Usage Patterns</link>.
+    </p>
+  </section>
+  <section id="config-internal">
+    <title>Configuring Apache FOP Programmatically</title>
+    <p>
+      Apache FOP provides two levels on which you can customize FOP's
+      behaviour: the FopFactory and the user agent.
+    </p>
+    <section id="fop-factory">
+      <title>Customizing the FopFactory</title>
+      <p>
+        The FopFactory holds configuration data and references to objects which are reusable over
+        multiple rendering runs. It's important to instantiate it only once (except in special 
+        environments) and reuse it every time to create new FOUserAgent and Fop instances.
+      </p>
+      <p>
+        You can set all sorts of things on the FopFactory:
+      </p>
+      <ul>
+        <li>
+          <p>
+            The <strong>font base URL</strong> to use when resolving relative URLs for fonts. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.setFontBaseURL("file:///C:/Temp/fonts");]]></source>
+        </li>
+        <li>
+          <p>
+            Disable <strong>strict validation</strong>. When disabled FOP is less strict about the rules 
+            established by the XSL-FO specification. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.setStrictValidation(false);]]></source>
+        </li>
+        <li>
+          <p>
+            Enable an <strong>alternative set of rules for text indents</strong> that tries to mimic the behaviour of many commercial 
+            FO implementations, that chose to break the specification in this respect. The default of this option is 
+            'false', which causes Apache FOP to behave exactly as described in the specification. To enable the 
+            alternative behaviour, call:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.setBreakIndentInheritanceOnReferenceAreaBoundary(true);]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>source resolution</strong> for the document. This is used internally to determine the pixel 
+            size for SVG images and bitmap images without resolution information. Default: 72 dpi. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.setSourceResolution(96); // =96dpi (dots/pixels per Inch)]]></source>
+        </li>
+        <li>
+          <p>
+            Manually add an <strong>ElementMapping instance</strong>. If you want to supply a special FOP extension
+            you can give the instance to the FOUserAgent. Normally, the FOP extensions can be automatically detected 
+            (see the documentation on extension for more info). Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.addElementMapping(myElementMapping); // myElementMapping is a org.apache.fop.fo.ElementMapping]]></source>
+        </li>
+        <li>
+          <p>
+            Set a <strong>URIResolver</strong> for custom URI resolution. By supplying a JAXP URIResolver you can add
+            custom URI resolution functionality to FOP. For example, you can use 
+            <link href="ext:xml.apache.org/commons/resolver">Apache XML Commons Resolver</link> to make use of XCatalogs. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[fopFactory.setURIResolver(myResolver); // myResolver is a javax.xml.transform.URIResolver]]></source>
+          <note>
+            Both the FopFactory and the FOUserAgent have a method to set a URIResolver. The URIResolver on the FopFactory
+            is primarily used to resolve URIs on factory-level (hyphenation patterns, for example) and it is always used 
+            if no other URIResolver (for example on the FOUserAgent) resolved the URI first.
+          </note>
+        </li>
+      </ul>
+    </section>
+    <section id="user-agent">
+      <title>Customizing the User Agent</title>
+      <p>
+        The user agent is the entity that allows you to interact with a single rendering run, i.e. the processing of a single 
+        document. If you wish to customize the user agent's behaviour, the first step is to create your own instance
+        of FOUserAgent using the appropriate factory method on FopFactory and pass that 
+        to the factory method that will create a new Fop instance:
+      </p>
+      <source xml:space="preserve"><![CDATA[
+  FopFactory fopFactory = FopFactory.newInstance(); // Reuse the FopFactory if possible!
+  // do the following for each new rendering run
+  FOUserAgent userAgent = fopFactory.newFOUserAgent();
+  // customize userAgent
+  Fop fop = fopFactory.newFop(MimeConstants.MIME_POSTSCRIPT, userAgent, out);]]></source>
+      <p>
+        You can do all sorts of things on the user agent:
+      </p>
+      <ul>
+        <li>
+          <p>
+            The <strong>base URL</strong> to use when resolving relative URLs. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setBaseURL("file:///C:/Temp/");]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>producer</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. The default producer is "Apache FOP". Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setProducer("MyKillerApplication");]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>creating user</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setCreator("John Doe");]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>author</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setAuthor("John Doe");]]></source>
+        </li>
+        <li>
+          <p>
+            Override the <strong>creation date and time</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setCreationDate(new Date());]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>title</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setTitle("Invoice No 138716847");]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>keywords</strong> of the document. This is metadata information that can be used for certain output formats such as PDF. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setKeywords("XML XSL-FO");]]></source>
+        </li>
+        <li>
+          <p>
+            Set the <strong>target resolution</strong> for the document. This is used to 
+            specify the output resolution for bitmap images generated by bitmap renderers 
+            (such as the TIFF renderer) and by bitmaps generated by Apache Batik for filter 
+            effects and such. Default: 72 dpi. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setTargetResolution(300); // =300dpi (dots/pixels per Inch)]]></source>
+        </li>
+        <li>
+          <p>
+            Set <strong>your own Renderer instance</strong>. If you want to supply your own renderer or 
+            configure a Renderer in a special way you can give the instance to the FOUserAgent. Normally,
+            the Renderer instance is created by FOP. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setRendererOverride(myRenderer); // myRenderer is an org.apache.fop.render.Renderer]]></source>
+        </li>
+        <li>
+          <p>
+            Set <strong>your own FOEventHandler instance</strong>. If you want to supply your own FOEventHandler or 
+            configure an FOEventHandler subclass in a special way you can give the instance to the FOUserAgent. Normally, 
+            the FOEventHandler instance is created by FOP. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setFOEventHandlerOverride(myFOEventHandler); // myFOEventHandler is an org.apache.fop.fo.FOEventHandler]]></source>
+        </li>
+        <li>
+          <p>
+            Set a <strong>URIResolver</strong> for custom URI resolution. By supplying a JAXP URIResolver you can add
+            custom URI resolution functionality to FOP. For example, you can use 
+            <link href="ext:xml.apache.org/commons/resolver">Apache XML Commons Resolver</link> to make use of XCatalogs. Example:
+          </p>
+          <source xml:space="preserve"><![CDATA[userAgent.setURIResolver(myResolver); // myResolver is a javax.xml.transform.URIResolver]]></source>
+          <note>
+            Both the FopFactory and the FOUserAgent have a method to set a URIResolver. The URIResolver on the FOUserAgent is
+            used for resolving URIs which are document-related. If it's not set or cannot resolve a URI, the URIResolver
+            from the FopFactory is used.
+          </note>
+        </li>
+      </ul>
+      <note>
+        You should not reuse an FOUserAgent instance between FOP rendering runs although you can. Especially
+        in multi-threaded environment, this is a bad idea.
+      </note>
+    </section>
+  </section>
+  <section id="config-external">
+    <title>Using a Configuration File</title>
+    <p>
+      Instead of setting the parameters manually in code as shown above you can also set 
+      many values from an XML configuration file:
+    </p>
+    <source xml:space="preserve"><![CDATA[
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
+
+/*..*/
+
+DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder();
+Configuration cfg = cfgBuilder.buildFromFile(new File("C:/Temp/mycfg.xml"));
+fopFactory.setUserConfig(cfg);
+
+/* ..or.. */
+
+fopFactory.setUserConfig(new File("C:/Temp/mycfg.xml"));]]></source>
+    <p>
+      The layout of the configuration file is described on the <link href="configuration.html">Configuration page</link>.
+    </p>
+  </section>
+  <section id="hints">
+    <title>Hints</title>
+    <section id="object-reuse">
+      <title>Object reuse</title>
+      <p>
+        Fop instances shouldn't (and can't) be reused. Please recreate
+        Fop and FOUserAgent instances for each rendering run using the FopFactory.
+        This is a cheap operation as all reusable information is held in the 
+        FopFactory. That's why it's so important to reuse the FopFactory instance.
+     </p>
+    </section>
+    <section id="awt">
+      <title>AWT issues</title>
+      <p>
+        If your XSL-FO files contain SVG then Apache Batik will be used. When Batik is
+        initialised it uses certain classes in <code>java.awt</code> that
+        intialise the Java AWT classes. This means that a daemon thread
+        is created by the JVM and on Unix it will need to connect to a
+        DISPLAY.
+      </p>
+      <p>
+        The thread means that the Java application may not automatically quit
+        when finished, you will need to call <code>System.exit()</code>. These
+        issues should be fixed in the JDK 1.4.
+      </p>
+      <p>
+        If you run into trouble running FOP on a head-less server, please see the
+        <link href="graphics.html#batik">notes on Batik</link>.
+      </p>
+    </section>
+    <section id="render-info">
+      <title>Getting information on the rendering process</title>
+      <p>
+        To get the number of pages that were rendered by FOP you can call 
+        <code>Fop.getResults()</code>. This returns a <code>FormattingResults</code> object 
+        where you can look up the number of pages produced. It also gives you the 
+        page-sequences that were produced along with their id attribute and their 
+        numbers of pages. This is particularly useful if you render multiple 
+        documents (each enclosed by a page-sequence) and have to know the number of 
+        pages of each document.
+      </p>
+    </section>
+  </section>
+  <section id="performance">
+    <title>Improving performance</title>
+    <p>
+      There are several options to consider:
+    </p>
+    <ul>
+      <li>
+        Whenever possible, try to use SAX to couple the individual components involved 
+        (parser, XSL transformer, SQL datasource etc.).
+      </li>
+      <li>
+        Depending on the target OutputStream (in case of a FileOutputStream, but not 
+        for a ByteArrayOutputStream, for example) it may improve performance considerably 
+        if you buffer the OutputStream using a BufferedOutputStream: 
+        <code>out = new java.io.BufferedOutputStream(out);</code>
+        <br/>
+        Make sure you properly close the OutputStream when FOP is finished.
+      </li>
+      <li>
+        Cache the stylesheet. If you use the same stylesheet multiple times 
+        you can set up a JAXP <code>Templates</code> object and reuse it each time you do
+        the XSL transformation.  (More information can be found
+        <link class="fork" href="http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl.html">here</link>.)
+      </li>
+      <li>
+        Use an XSLT compiler like <link class="fork" href="http://xml.apache.org/xalan-j/xsltc_usage.html">XSLTC</link>
+        that comes with Xalan-J.
+      </li>
+      <li>
+        Fine-tune your stylesheet to make the XSLT process more efficient and to create XSL-FO that can
+        be processed by FOP more efficiently. Less is more: Try to make use of property inheritance where possible.
+      </li>
+    </ul>
+  </section>
+  <section id="multithreading">
+    <title>Multithreading FOP</title>
+    <p>
+      Apache FOP may currently not be completely thread safe.
+      The code has not been fully tested for multi-threading issues, yet.
+      If you encounter any suspicious behaviour, please notify us.
+    </p>
+    <p>
+      There is also a known issue with fonts being jumbled between threads when using 
+      the Java2D/AWT renderer (which is used by the -awt and -print output options).
+      In general, you cannot safely run multiple threads through the AWT renderer.
+    </p>
+  </section>
+<section id="examples">
+  <title>Examples</title>
+  <p>
+   The directory "{fop-dir}/examples/embedding" contains several working examples. 
+  </p>
+  <section id="ExampleFO2PDF">
+    <title>ExampleFO2PDF.java</title>
+    <p>This
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup">
+            example</link>
+demonstrates the basic usage pattern to transform an XSL-FO
+file to PDF using FOP.
+    </p>
+    <figure src="images/EmbeddingExampleFO2PDF.png" alt="Example XSL-FO to PDF"/>
+  </section>
+  <section id="ExampleXML2FO">
+    <title>ExampleXML2FO.java</title>
+    <p>This 
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2FO.java?view=markup">
+            example</link>
+has nothing to do with FOP. It is there to show you how an XML 
+file can be converted to XSL-FO using XSLT. The JAXP API is used to do the
+transformation. Make sure you've got a JAXP-compliant XSLT processor in your 
+classpath (ex. <link href="http://xml.apache.org/xalan-j">Xalan</link>).
+    </p>
+    <figure src="images/EmbeddingExampleXML2FO.png" alt="Example XML to XSL-FO"/>
+  </section>
+  <section id="ExampleXML2PDF">
+    <title>ExampleXML2PDF.java</title>
+    <p>This 
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup">
+        example</link>
+demonstrates how you can convert an arbitrary XML file to PDF 
+using XSLT and XSL-FO/FOP. It is a combination of the first two examples 
+above. The example uses JAXP to transform the XML file to XSL-FO and FOP to 
+transform the XSL-FO to PDF.
+    </p>
+    <figure src="images/EmbeddingExampleXML2PDF.png" alt="Example XML to PDF (via XSL-FO)"/>
+    <p>
+The output (XSL-FO) from the XSL transformation is piped through to FOP using 
+SAX events. This is the most efficient way to do this because the 
+intermediate result doesn't have to be saved somewhere. Often, novice users 
+save the intermediate result in a file, a byte array or a DOM tree. We 
+strongly discourage you to do this if it isn't absolutely necessary. The 
+performance is significantly higher with SAX.
+    </p>
+  </section>
+  <section id="ExampleObj2XML">
+    <title>ExampleObj2XML.java</title>
+    <p>This 
+    <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2XML.java?view=markup">
+        example</link>
+is a preparatory example for the next one. It's an example that 
+shows how an arbitrary Java object can be converted to XML. It's an often 
+needed task to do this. Often people create a DOM tree from a Java object and 
+use that. This is pretty straightforward. The example here, however, shows how
+to do this using SAX, which will probably be faster and not even more 
+complicated once you know how this works.
+    </p>
+    <figure src="images/EmbeddingExampleObj2XML.png" alt="Example Java object to XML"/>
+    <p>
+For this example we've created two classes: ProjectTeam and ProjectMember 
+(found in xml-fop/examples/embedding/java/embedding/model). They represent 
+the same data structure found in 
+xml-fop/examples/embedding/xml/xml/projectteam.xml. We want to serialize to XML a 
+project team with several members which exist as Java objects. 
+Therefore we created the two classes: ProjectTeamInputSource and 
+ProjectTeamXMLReader (in the same place as ProjectTeam above).
+    </p>
+    <p>
+The XMLReader implementation (regard it as a special kind of XML parser) is 
+responsible for creating SAX events from the Java object. The InputSource 
+class is only used to hold the ProjectTeam object to be used.
+    </p>
+    <p>
+Have a look at the source of ExampleObj2XML.java to find out how this is 
+used. For more detailed information see other resources on JAXP (ex. 
+<link class="fork" href="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/3_generate.html">An older JAXP tutorial</link>).
+    </p>
+  </section>
+  <section id="ExampleObj2PDF">
+    <title>ExampleObj2PDF.java</title>
+    <p>This 
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup">
+            example</link>
+combines the previous and the third to demonstrate 
+how you can transform a Java object to a PDF directly in one smooth run
+by generating SAX events from the Java object that get fed to an XSL 
+transformation. The result of the transformation is then converted to PDF 
+using FOP as before.
+    </p>
+    <figure src="images/EmbeddingExampleObj2PDF.png" alt="Example Java object to PDF (via XML and XSL-FO)"/>
+  </section>
+  <section id="ExampleDOM2PDF">
+    <title>ExampleDOM2PDF.java</title>
+    <p>This 
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleDOM2PDF.java?view=markup">
+            example</link>
+has FOP use a DOMSource instead of a StreamSource in order to 
+use a DOM tree as input for an XSL transformation.
+    </p>
+  </section>
+  <section id="ExampleSVG2PDF">
+    <title>ExampleSVG2PDF.java (PDF Transcoder example)</title>
+    <p>This 
+        <link href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java?view=markup">
+            example</link>
+shows the usage of the PDF Transcoder, a sub-application within FOP.  
+It is used to generate a PDF document from an SVG file.
+    </p>
+  </section>
+  <section id="example-notes">
+    <title>Final notes</title>
+    <p>
+These examples should give you an idea of what's possible. It should be easy 
+to adjust these examples to your needs. Also, if you have other examples that you
+think should be added here, please let us know via either the fop-users or fop-dev
+mailing lists.  Finally, for more help please send your questions to the fop-users
+mailing list.
+    </p>
+  </section>
+</section>
+  </body>
+</document>
\ No newline at end of file

Propchange: xmlgraphics/site/deploy/fop/0.93/embedding.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/site/deploy/fop/0.93/embedding.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: xmlgraphics/site/deploy/fop/0.93/extensions.html
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/extensions.html?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/extensions.html (original)
+++ xmlgraphics/site/deploy/fop/0.93/extensions.html Thu Aug 23 12:00:37 2007
@@ -57,13 +57,13 @@
 <li>
 <a class="base-not-selected" href="../index.html">Home</a>
 </li>
-<li>
-<a class="base-not-selected" href="../0.20.5/index.html">Version 0.20.5</a>
-</li>
 <li class="current">
 <a class="base-selected" href="../0.93/index.html">Version 0.93</a>
 </li>
 <li>
+<a class="base-not-selected" href="../0.94/index.html">Version 0.94</a>
+</li>
+<li>
 <a class="base-not-selected" href="../trunk/index.html">FOP Trunk</a>
 </li>
 <li>
@@ -187,10 +187,20 @@
     |start content
     +-->
 <div id="content">
+<div title="raw XML" class="xmllink">
+<a class="dida" href="extensions.xml"><img alt="XML - icon" src="../skin/images/xmldoc.gif" class="skin"><br>
+        XML</a>
+</div>
 <div title="Portable Document Format" class="pdflink">
 <a class="dida" href="extensions.pdf"><img alt="PDF -icon" src="../skin/images/pdfdoc.gif" class="skin"><br>
         PDF</a>
 </div>
+<div class="trail">
+<text>Font size:</text> 
+	          &nbsp;<input value="Reset" class="resetfont" title="Reset text" onclick="ndeSetTextSize('reset'); return false;" type="button">      
+	          &nbsp;<input value="-a" class="smallerfont" title="Shrink text" onclick="ndeSetTextSize('decr'); return false;" type="button">
+	          &nbsp;<input value="+a" class="biggerfont" title="Enlarge text" onclick="ndeSetTextSize('incr'); return false;" type="button">
+</div>
 <h1>Standard FOP Extensions</h1>
 <div id="minitoc-area">
 <ul class="minitoc">
@@ -270,7 +280,7 @@
 <p>
           In previous versions of Apache FOP there was a <span class="codefrag">fox:outline</span> element
           which was used to create outlines in PDF files. The redesigned code makes use
-          of the new <a href="http://www.w3.org/TR/xsl11/#fo_bookmark-tree">bookmark feature defined in the latest XSL 1.1 working draft</a>.
+          of the new <a class="external" href="http://www.w3.org/TR/xsl11/#fo_bookmark-tree">bookmark feature defined in the latest XSL 1.1 working draft</a>.
         </p>
 <a name="N10057"></a><a name="named-destinations"></a>
 <h3 class="underlined_5">Anchors or Named Destinations</h3>

Modified: xmlgraphics/site/deploy/fop/0.93/extensions.pdf
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/extensions.pdf?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/extensions.pdf (original)
+++ xmlgraphics/site/deploy/fop/0.93/extensions.pdf Thu Aug 23 12:00:37 2007
@@ -319,8 +319,8 @@
 46 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F3
-/BaseFont /Helvetica-Bold
+/Name /F1
+/BaseFont /Helvetica
 /Encoding /WinAnsiEncoding >>
 endobj
 47 0 obj
@@ -333,22 +333,22 @@
 48 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F1
-/BaseFont /Helvetica
+/Name /F3
+/BaseFont /Helvetica-Bold
 /Encoding /WinAnsiEncoding >>
 endobj
 49 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F9
-/BaseFont /Courier
+/Name /F2
+/BaseFont /Helvetica-Oblique
 /Encoding /WinAnsiEncoding >>
 endobj
 50 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F2
-/BaseFont /Helvetica-Oblique
+/Name /F9
+/BaseFont /Courier
 /Encoding /WinAnsiEncoding >>
 endobj
 51 0 obj
@@ -372,7 +372,7 @@
 endobj
 3 0 obj
 << 
-/Font << /F3 46 0 R /F5 47 0 R /F1 48 0 R /F9 49 0 R /F2 50 0 R /F7 51 0 R >> 
+/Font << /F1 46 0 R /F5 47 0 R /F3 48 0 R /F2 49 0 R /F9 50 0 R /F7 51 0 R >> 
 /ProcSet [ /PDF /ImageC /Text ] >> 
 endobj
 9 0 obj
@@ -471,10 +471,10 @@
 0000009041 00000 n 
 0000009299 00000 n 
 0000009705 00000 n 
-0000009818 00000 n 
-0000009928 00000 n 
+0000009813 00000 n 
+0000009923 00000 n 
 0000010036 00000 n 
-0000010142 00000 n 
+0000010152 00000 n 
 0000010258 00000 n 
 trailer
 <<

Added: xmlgraphics/site/deploy/fop/0.93/extensions.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/extensions.xml?rev=569118&view=auto
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/extensions.xml (added)
+++ xmlgraphics/site/deploy/fop/0.93/extensions.xml Thu Aug 23 12:00:37 2007
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="ISO-8859-1"?><!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--><!-- $Id$ --><!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "document-v13.dtd">
+<document>
+  <header>
+    <title>Standard FOP Extensions</title>
+    <version>$Revision: 493717 $</version>
+  </header>
+  <body>
+    <p>
+      By "extension", we mean any data that can be placed in the input XML document that 
+      is not addressed by the XSL-FO standard.
+      By having a mechanism for supporting extensions, FOP is able to add features that 
+      are not covered in the specification.
+    </p>
+    <p>
+      The extensions documented here are included with FOP, and are automatically available 
+      to you. If you wish to add an extension of your own to FOP, please see the 
+      <link href="../dev/extensions.html">Developers' Extension Page</link>.
+    </p>
+    <note>All extensions required the correct use of an appropriate namespace in your input document.</note>
+    <section id="svg">
+      <title>SVG</title>
+      <p>
+        Please see the <link href="graphics.html#svg">SVG documentation</link> for more details.
+      </p>
+    </section>
+    <section id="fo-extensions">
+      <title>FO Extensions</title>
+      <section id="fox-namespace">
+        <title>Namespace</title>
+        <p>
+          By convention, FO extensions in FOP use the "fox" namespace prefix.
+          To use any of the FO extensions, add a namespace entry for 
+          <code>http://xml.apache.org/fop/extensions</code> to the root element:
+        </p>
+        <source xml:space="preserve"><![CDATA[<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
+               xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">]]></source>
+        <note>
+          Currently, no extension elements are implemented in FOP Trunk which use the 
+          FOP extension namespace.
+        </note>
+      </section>
+      <section id="bookmarks">
+        <title>PDF Bookmarks</title>
+        <p>
+          In previous versions of Apache FOP there was a <code>fox:outline</code> element
+          which was used to create outlines in PDF files. The redesigned code makes use
+          of the new <link href="http://www.w3.org/TR/xsl11/#fo_bookmark-tree">bookmark feature defined in the latest XSL 1.1 working draft</link>.
+        </p>
+      </section>
+      <section id="named-destinations">
+        <title>Anchors or Named Destinations</title>
+        <p>This extension element hasn't been reimplemented for the redesigned code, yet.</p>
+        <!--p>Use the fox:destination element to define "named destinations" inside a PDF document.
+These are useful as fragment identifiers, e.g. "http://server/document.pdf#anchor-name".
+fox:destination elements can be placed almost anywhere in the fo document, including a child of
+root, a block-level element, or an inline-level element.
+For the destination to actually work, it must correspond to an "id" attribute on some fo element
+within the document. In other words, the "id" attribute actually creates the "view" within the
+PDF document. The fox:destination simply gives that view an independent name.
+</p>
+        <source><![CDATA[<fox:destination internal-destination="table-of-contents"/>
+...
+<fo:block id="table-of-contents">Table of Contents</fo:block>]]></source>
+        <warning>It is possible that in some future release of FOP, <em>all </em>elements with
+"id" attributes will generate named-destinations, which will eliminate the need for
+fox:destination.</warning-->
+      </section>
+      <section id="table-continue-label">
+        <title>Table Continuation Label</title>
+        <p>This extension element hasn't been reimplemented for the redesigned code, yet.</p>
+        <!--p>Use the fox:continued-label element to create content in table-header and
+table-footer cells that will appear only on pages after the first page that the table
+appears. fox:continued-label is itself inline content, and is a container of fo:inline
+content. This content will be laid out only if the table does not fit on a single page and flows
+to following pages. Here is an example of FO code creating such a table-header:</p>
+<source><![CDATA[<fo:table-header>
+  <fo:table-row>
+    <fo:table-cell>
+      <fo:block>Header column 1 with continued label
+          <fox:continued-label><fo:inline> (cont.)</fo:inline></fox:continued-label>
+      </fo:block>
+    </fo:table-cell>
+    <fo:table-cell>
+      <fo:block>Header column 2 with no continued label</fo:block>
+    </fo:table-cell>
+  </fo:table-row>
+</fo:table-header>]]></source-->
+      </section>
+      <section id="widow-orphan-content-limit">
+        <title>fox:orphan-content-limit and fox:widow-content-limit</title>
+        <p>
+          The two proprietary extension properties, fox:orphan-content-limit and
+          fox:widow-content-limit, are used to improve the layout of list-blocks and tables.
+          If you have a table with many entries, you don't want a single row to be left over
+          on a page. You will want to make sure that at least two or three lines are kept
+          together. The properties take an absolute length which specifies the area at the
+          beginning (fox:widow-content-limit) or at the end (fox:orphan-content-limit) of a
+          table or list-block. The properties are inherited and only have an effect on fo:table
+          and fo:list-block. An example: fox:widow-content-limit="3 * 1.2em" would make sure
+          the you'll have at least three lines (assuming line-height="1.2") together on a table
+          or list-block.
+        </p>
+      </section>
+    </section>
+  </body>
+</document>
\ No newline at end of file

Propchange: xmlgraphics/site/deploy/fop/0.93/extensions.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/site/deploy/fop/0.93/extensions.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: xmlgraphics/site/deploy/fop/0.93/fonts.html
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/fonts.html?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/fonts.html (original)
+++ xmlgraphics/site/deploy/fop/0.93/fonts.html Thu Aug 23 12:00:37 2007
@@ -57,13 +57,13 @@
 <li>
 <a class="base-not-selected" href="../index.html">Home</a>
 </li>
-<li>
-<a class="base-not-selected" href="../0.20.5/index.html">Version 0.20.5</a>
-</li>
 <li class="current">
 <a class="base-selected" href="../0.93/index.html">Version 0.93</a>
 </li>
 <li>
+<a class="base-not-selected" href="../0.94/index.html">Version 0.94</a>
+</li>
+<li>
 <a class="base-not-selected" href="../trunk/index.html">FOP Trunk</a>
 </li>
 <li>
@@ -187,10 +187,20 @@
     |start content
     +-->
 <div id="content">
+<div title="raw XML" class="xmllink">
+<a class="dida" href="fonts.xml"><img alt="XML - icon" src="../skin/images/xmldoc.gif" class="skin"><br>
+        XML</a>
+</div>
 <div title="Portable Document Format" class="pdflink">
 <a class="dida" href="fonts.pdf"><img alt="PDF -icon" src="../skin/images/pdfdoc.gif" class="skin"><br>
         PDF</a>
 </div>
+<div class="trail">
+<text>Font size:</text> 
+	          &nbsp;<input value="Reset" class="resetfont" title="Reset text" onclick="ndeSetTextSize('reset'); return false;" type="button">      
+	          &nbsp;<input value="-a" class="smallerfont" title="Shrink text" onclick="ndeSetTextSize('decr'); return false;" type="button">
+	          &nbsp;<input value="+a" class="biggerfont" title="Enlarge text" onclick="ndeSetTextSize('incr'); return false;" type="button">
+</div>
 <h1>Apache FOP: Fonts</h1>
 <div id="minitoc-area">
 <ul class="minitoc">
@@ -373,11 +383,11 @@
 <ul>
         
 <li>
-<a href="http://partners.adobe.com/asn/developer/type/ftypes.html">Adobe font types</a>
+<a class="external" href="http://partners.adobe.com/asn/developer/type/ftypes.html">Adobe font types</a>
 </li>
         
 <li>
-<a href="http://partners.adobe.com/asn/developer/technotes/fonts.html">Adobe Font Technote</a>
+<a class="external" href="http://partners.adobe.com/asn/developer/technotes/fonts.html">Adobe Font Technote</a>
 
 </li>
       

Modified: xmlgraphics/site/deploy/fop/0.93/fonts.pdf
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.93/fonts.pdf?rev=569118&r1=569117&r2=569118&view=diff
==============================================================================
--- xmlgraphics/site/deploy/fop/0.93/fonts.pdf (original)
+++ xmlgraphics/site/deploy/fop/0.93/fonts.pdf Thu Aug 23 12:00:37 2007
@@ -587,8 +587,8 @@
 79 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F3
-/BaseFont /Helvetica-Bold
+/Name /F1
+/BaseFont /Helvetica
 /Encoding /WinAnsiEncoding >>
 endobj
 80 0 obj
@@ -601,22 +601,22 @@
 81 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F1
-/BaseFont /Helvetica
+/Name /F3
+/BaseFont /Helvetica-Bold
 /Encoding /WinAnsiEncoding >>
 endobj
 82 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F9
-/BaseFont /Courier
+/Name /F2
+/BaseFont /Helvetica-Oblique
 /Encoding /WinAnsiEncoding >>
 endobj
 83 0 obj
 << /Type /Font
 /Subtype /Type1
-/Name /F2
-/BaseFont /Helvetica-Oblique
+/Name /F9
+/BaseFont /Courier
 /Encoding /WinAnsiEncoding >>
 endobj
 84 0 obj
@@ -640,7 +640,7 @@
 endobj
 3 0 obj
 << 
-/Font << /F3 79 0 R /F5 80 0 R /F1 81 0 R /F9 82 0 R /F2 83 0 R /F7 84 0 R >> 
+/Font << /F1 79 0 R /F5 80 0 R /F3 81 0 R /F2 82 0 R /F9 83 0 R /F7 84 0 R >> 
 /ProcSet [ /PDF /ImageC /Text ] >> 
 endobj
 9 0 obj
@@ -796,10 +796,10 @@
 0000025993 00000 n 
 0000026163 00000 n 
 0000026492 00000 n 
-0000026605 00000 n 
-0000026715 00000 n 
+0000026600 00000 n 
+0000026710 00000 n 
 0000026823 00000 n 
-0000026929 00000 n 
+0000026939 00000 n 
 0000027045 00000 n 
 trailer
 <<



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org