xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r835960 [7/18] - 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/
Date Wed, 24 Oct 2012 04:04:05 GMT
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/intermediate.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/intermediate.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/intermediate.html Wed Oct 24 04:04:00 2012
@@ -330,15 +330,16 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version>
+      	<div class="section-content"><h1 id="apachetm-fop-intermediate-format">Apache(tm) FOP: Intermediate Format</h1>
+<p><version>$Revision: 1298724 $</version>
 Please note that the intermediate formats described here are <strong>advanced features</strong> and can be ignored by most users of Apache&trade; FOP.</p>
 <h1 id="introduction-wzxhzdk5wzxhzdk6">Introduction  <a id="introduction"></a></h1>
 <p>Apache FOP now provides two different so-called intermediate formats. The first one (let's call it the area tree XML format) is basically a 1:1 XML representation of FOP's area tree as generated by the layout engine. The area tree is conceptually defined in the <a href="http://www.w3.org/TR/2001/REC-xsl-20011015/slice1.html#section-N742-Formatting">XSL-FO specification in chapter 1.1.2</a> . Even though the area tree is mentioned in the XSL-FO specification, this part is not standardized. Therefore, the area tree XML format is a FOP-proprietary XML file format. The area tree XML can be generated through the area tree XML Renderer (the XMLRenderer).</p>
 <p>The second intermediate format (which we shall name exactly like this: the intermediate format) is a recent addition which tries to meet a slightly different set of goals. It is highly optimized for speed.</p>
 <p>The intermediate format can be used to generate intermediate documents that are modified before they are finally rendered to their ultimate output format. Modifications include adjusting and changing trait values, adding or modifying area objects, inserting prefabricated pages, overlays, imposition (n-up, rotation, scaling etc.). Multiple IF files can be combined to a single output file.</p>
-<h1 id="which-intermediate-format-to-choose-wzxhzdk7wzxhzdk8">Which Intermediate Format to choose?  <a id="which-if"></a></h1>
+<h2 id="which-intermediate-format-to-choose-wzxhzdk7wzxhzdk8">Which Intermediate Format to choose?  <a id="which-if"></a></h2>
 <p>Both formats have their use cases, so the choice you will make will depend on your particular situation. Here is a list of strengths and use cases for both formats:</p>
-<h2 id="area-tree-xml-at-xml-wzxhzdk9wzxhzdk10">Area Tree XML (AT XML) # <a id="strengths-at"></a></h2>
+<h3 id="area-tree-xml-at-xml-wzxhzdk9wzxhzdk10">Area Tree XML (AT XML) # <a id="strengths-at"></a></h3>
 <ul>
 <li>
 <p>1:1 representation of FOP's area tree in XML.</p>
@@ -350,7 +351,7 @@ Please note that the intermediate format
 <p>Used in FOP's layout engine test suite for regression testing.</p>
 </li>
 </ul>
-<h2 id="intermediate-format-if-wzxhzdk11wzxhzdk12">Intermediate Format (IF) # <a id="strengths-if"></a></h2>
+<h3 id="intermediate-format-if-wzxhzdk11wzxhzdk12">Intermediate Format (IF) # <a id="strengths-if"></a></h3>
 <ul>
 <li>
 <p>Highly optimized for speed.</p>
@@ -369,7 +370,7 @@ Please note that the intermediate format
 </li>
 </ul>
 <p>More technical information about the two formats can be found on the <a href="http://wiki.apache.org/xmlgraphics-fop/AreaTreeIntermediateXml/NewDesign">FOP Wiki</a> .</p>
-<h1 id="architectural-overview-wzxhzdk13wzxhzdk14">Architectural Overview  <a id="architecture"></a></h1>
+<h2 id="architectural-overview-wzxhzdk13wzxhzdk14">Architectural Overview  <a id="architecture"></a></h2>
 <p><figure alt="Diagram with an architectural overview over the intermediate formats" src="images/if-architecture-overview.png"></figure></p>
 <h1 id="usage-of-the-area-tree-xml-format-at-xml-wzxhzdk17wzxhzdk18">Usage of the Area Tree XML format (AT XML)  <a id="usage"></a></h1>
 <p>As already mentioned, the area tree XML format is generated by using the <strong>XMLRenderer</strong> (MIME type: <strong>application/X-fop-areatree</strong> ). So, you basically set the right MIME type for the output format and process your FO files as if you would create a PDF file.</p>
@@ -404,14 +405,14 @@ try {
 }
 This example simply reads an area tree file and renders it to a PDF file. Please note, that in normal FOP operation you're shielded from having to instantiate the FontInfo object yourself. This is normally a task of the AreaTreeHandler which is not present in this scenario. The same applies to the AreaTreeModel instance, in this case an instance of a subclass called RenderPagesModel. RenderPagesModel is ideal in this case as it has very little overhead processing the individual pages. An important line in the example is the call to <code>endDocument()</code> on the AreaTreeModel. This lets the Renderer know that the processing is now finished.</p>
 <p>The area tree XML format can also be used from the <a href="running.html#standalone-start">command-line</a> by using the "-atin" parameter for specifying the area tree XML as input file. You can also specify a "mimic renderer" by inserting a MIME type between "-at" and the output file.</p>
-<h2 id="concatenating-documents-wzxhzdk19wzxhzdk20">Concatenating Documents # <a id="concat"></a></h2>
+<h3 id="concatenating-documents-wzxhzdk19wzxhzdk20">Concatenating Documents # <a id="concat"></a></h3>
 <p>This initial example is obviously not very useful. It would be faster to create the PDF file directly. As the <a href="http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/embedding/java/embedding/atxml/ExampleConcat.java">ExampleConcat.java</a> example shows you can easily parse multiple area tree files in a row and add the parsed pages to the same AreaTreeModel instance which essentially concatenates all the input document to one single output document.</p>
-<h2 id="modifying-documents-wzxhzdk21wzxhzdk22">Modifying Documents # <a id="modifying"></a></h2>
+<h3 id="modifying-documents-wzxhzdk21wzxhzdk22">Modifying Documents # <a id="modifying"></a></h3>
 <p>One of the most important use cases for this format is obviously modifying the area tree XML before finally rendering it to the target format. You can easily use XSLT to process the AT XML file according to your needs. Please note, that we will currently not formally describe the area tree XML format. You need to have a good understanding its structure so you don't create any non-parseable files. We may add an XML Schema and more detailed documentation at a later time. You're invited to help us with that.
 The area tree XML format is sensitive to changes in whitespace. If you're not careful, the modified file may not render correctly.</p>
 <h2 id="advanced-use-wzxhzdk23wzxhzdk24">Advanced Use # <a id="advanced"></a></h2>
 <p>The generation of the area tree format as well as it parsing process has been designed to allow for maximum flexibility and optimization. Please note that you can call <code>setTransformerHandler()</code> on XMLRenderer to give the XMLRenderer your own TransformerHandler instance in case you would like to do custom serialization (to a W3C DOM, for example) and/or to directly modify the area tree using XSLT. The AreaTreeParser on the other side allows you to retrieve a ContentHandler instance where you can manually send SAX events to to start the parsing process (see <code>getContentHandler()</code> ).</p>
-<h1 id="usage-of-the-intermediate-format-if-wzxhzdk25wzxhzdk26">Usage of the Intermediate Format (IF)  <a id="usage-if"></a></h1>
+<h2 id="usage-of-the-intermediate-format-if-wzxhzdk25wzxhzdk26">Usage of the Intermediate Format (IF)  <a id="usage-if"></a></h2>
 <p>The Intermediate Format (IF) is generated by the <strong>IFSerializer</strong> (MIME type: <strong>application/X-fop-intermediate-format</strong> ). So, you basically set the right MIME type for the output format and process your FO files as if you would create a PDF file.</p>
 <p>The IFSerializer is an implementation of the <strong>IFDocumentHandler</strong> and <strong>IFPainter</strong> interfaces. The <strong>IFRenderer</strong> class is responsible for converting FOP's area tree into calls against these two interfaces.</p>
 <ul>
@@ -455,13 +456,13 @@ try {
     out.close();
 }
 This example simply reads an intermediate file and renders it to a PDF file. Here IFParser.parse() is used, but you can also just get a SAX ContentHandler by using the IFParser.getContentHandler() method.</p>
-<h2 id="concatenating-documents-wzxhzdk27wzxhzdk28">Concatenating Documents # <a id="concat-if"></a></h2>
+<h3 id="concatenating-documents-wzxhzdk27wzxhzdk28">Concatenating Documents # <a id="concat-if"></a></h3>
 <p>This initial example is obviously not very useful. It would be faster to create the PDF file directly (without the intermediate step). As the <a href="http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/ExampleConcat.java">ExampleConcat.java</a> example shows you can easily parse multiple intermediate files in a row and use the IFConcatenator class to concatenate page sequences from multiple source files to a single output file. This particular example does the concatenation on the level of the IFDocumentHandler interface. You could also do this in XSLT or using SAX on the XML level. Whatever suits your process best.</p>
-<h2 id="modifying-documents-wzxhzdk29wzxhzdk30">Modifying Documents # <a id="modifying-if"></a></h2>
+<h3 id="modifying-documents-wzxhzdk29wzxhzdk30">Modifying Documents # <a id="modifying-if"></a></h3>
 <p>One of the most important use cases for this format is obviously modifying the intermediate format before finally rendering it to the target format. You can easily use XSLT to process the IF file according to your needs.</p>
 <p>There is an XML Schema (located under <a href="http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/documentation/intermediate-format-ng/">src/documentation/intermediate-format-ng</a> ) that helps you verify that your modified content is correct.</p>
 <p>For certain output formats there's a caveat: Formats like AFP and PCL do not support arbitrary transformations on the IF's "viewport" and "g" elements. Possible are only rotations in 90 degree steps and translations.</p>
-<h2 id="advanced-use-wzxhzdk31wzxhzdk32">Advanced Use # <a id="advanced-if"></a></h2>
+<h3 id="advanced-use-wzxhzdk31wzxhzdk32">Advanced Use # <a id="advanced-if"></a></h3>
 <p>The generation of the intermediate format as well as it parsing process has been designed to allow for maximum flexibility and optimization. So rather than just passing in a StreamResult to IFSerializer's setResult() method, you can also use a SAXResult or a DOMResult. And as you've already seen , the IFParser on the other side allows you to retrieve a ContentHandler instance where you can manually send SAX events to start the parsing process (see <code>getContentHandler()</code> ).</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/knownissues_overview.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/knownissues_overview.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/knownissues_overview.html Wed Oct 24 04:04:00 2012
@@ -330,8 +330,9 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="known-issues-wzxhzdk2wzxhzdk3">Known issues  <a id="Known+issues"></a></h1>
+      	<div class="section-content"><h1 id="apachetm-fop-known-issues">Apache(tm) FOP: Known Issues</h1>
+<p><version>$Revision: 1298724 $</version></p>
+<h2 id="known-issues-wzxhzdk2wzxhzdk3">Known issues  <a id="Known+issues"></a></h2>
 <p>This page lists currently known issues in the current release.</p>
 <p>For additional information on known issues in Apache&trade; FOP, please have a look at the following pages, too:</p>
 <ul>
@@ -343,11 +344,11 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>Apache&trade; FOP has an extensive automated testing infrastructure. Parts of this infrastructure are several sets of test cases. When a test case is listed in disabled-testcases.xml it is disabled in the JUnit tests during the normal build process. This indicates a problem in the current codebase. When a bug is fixed or a missing feature is added the entry for the relevant test case(s) are removed.</p>
-<h2 id="fo-tree-wzxhzdk6wzxhzdk7">FO Tree # <a id="FO+Tree"></a></h2>
+<h3 id="fo-tree-wzxhzdk6wzxhzdk7">FO Tree # <a id="FO+Tree"></a></h3>
 <p>This section lists disabled test cases in the test suite for the FO tree tests, at the time of the release.</p>
 <p><strong>demo-test-failure.fo</strong> (demo test failure):<br></br> <em>TODO: Add missing description in disabled-testcases.xml!</em> </p>
 <p><strong>from-table-column_marker.fo</strong> (Markers and core function evaluation):<br></br>The code currently evaluates this function according to the column in which the marker appears in the source document, rather than the column it is retrieved in.</p>
-<h2 id="layout-engine-wzxhzdk12wzxhzdk13">Layout Engine # <a id="Layout+Engine"></a></h2>
+<h3 id="layout-engine-wzxhzdk12wzxhzdk13">Layout Engine # <a id="Layout+Engine"></a></h3>
 <p>This section lists disabled test cases in the test suite for the layout engine tests, at the time of the release.</p>
 <p><strong>basic-link_external-destination_2.xml</strong> (External link around an SVG not properly sized):<br></br>The bpd trait of the inlineparent area for the basic-link is not sized correctly if it wraps an image that is higher than the nominal line.</p>
 <p><strong>block-container_space-before_space-after_3.xml</strong> (Auto-height block-containers produce fences):<br></br>Block-containers with no height currently don't create a fence for spaces as they should (they behave like a normal block).</p>
@@ -383,7 +384,7 @@ $(document).ready(function () {
 <p><strong>table_border-width_conditionality.xml</strong> (Border conditionality on table):<br></br>The code should be ok, but the test case uses shorthands and therefore is probably not expressing the indended outcome according to the spec. The test case should be revisited.</p>
 <p><strong>block_shy_linebreaking_hyph.xml</strong> (Soft hyphen with normal hyphenation enabled):<br></br>A soft hyphen should be a preferred as break compared to a normal hyphenation point but is not.</p>
 <p><strong>keep_within-page_multi-column_overflow.xml</strong> (Page-keep not respected in multi-column layout):<br></br>The block should cause overflow in the last column on the page, rather than be broken.</p>
-<h2 id="other-known-issues-wzxhzdk84wzxhzdk85">Other known issues # <a id="Other+known+issues"></a></h2>
+<h3 id="other-known-issues-wzxhzdk84wzxhzdk85">Other known issues # <a id="Other+known+issues"></a></h3>
 <p>This section lists other known issues.</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/metadata.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/metadata.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/metadata.html Wed Oct 24 04:04:00 2012
@@ -330,12 +330,13 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><h1 id="overview-wzxhzdk0wzxhzdk1">Overview  <a id="overview"></a></h1>
+      	<div class="section-content"><h1 id="apachetm-fop-metadata">Apache(tm) FOP: Metadata</h1>
+<h2 id="overview-wzxhzdk0wzxhzdk1">Overview  <a id="overview"></a></h2>
 <p>Document metadata is an important tool for categorizing and finding documents. Various formats support different kinds of metadata representation and to different levels. One of the more popular and flexible means of representing document or object metadata is <a href="http://www.adobe.com/products/xmp/">XMP (eXtensible Metadata Platform, specified by Adobe)</a> . PDF 1.4 introduced the use of XMP. The XMP specification lists recommendation for embedding XMP metdata in other document and image formats. Given its flexibility it makes sense to make use this approach in the XSL-FO context. Unfortunately, unlike SVG which also refers to XMP, XSL-FO doesn't recommend a preferred way of specifying document and object metadata. Therefore, there's no portable way to represent metadata in XSL-FO documents. Each implementation does it differently.</p>
-<h1 id="embedding-xmp-in-an-xsl-fo-document-wzxhzdk2wzxhzdk3">Embedding XMP in an XSL-FO document  <a id="xmp-in-fo"></a></h1>
+<h2 id="embedding-xmp-in-an-xsl-fo-document-wzxhzdk2wzxhzdk3">Embedding XMP in an XSL-FO document  <a id="xmp-in-fo"></a></h2>
 <p>As noted above, there's no officially recommended way to embed metadata in XSL-FO. Apache FOP supports embedding XMP in XSL-FO. Currently, only support for document-level metadata is implemented. Object-level metadata will be implemented when there's interest.</p>
 <p>Document-level metadata can be specified in the <code>fo:declarations</code> element. XMP specification recommends to use <code>x:xmpmeta</code> , <code>rdf:RDF</code> , and <code>rdf:Description</code> elements as shown in example below. Both <code>x:xmpmeta</code> and <code>rdf:RDF</code> elements are recognized as the top-level element introducing an XMP fragment (as per the XMP specification).</p>
-<h2 id="example-wzxhzdk4wzxhzdk5">Example # <a id="xmp-example"></a></h2>
+<h3 id="example-wzxhzdk4wzxhzdk5">Example # <a id="xmp-example"></a></h3>
 <p class="."></p>
 <h1 id="implementation-in-apache-fop-wzxhzdk6wzxhzdk7">Implementation in Apache FOP  <a id="xmp-impl-in-fop"></a></h1>
 <p>Currently, XMP support is only available for PDF output.</p>
@@ -430,7 +431,7 @@ $(document).ready(function () {
 </table>
 <p>Please refer to the <a href="http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf">XMP Specification</a> for information on other metadata namespaces.</p>
 <p>Property sets (Namespaces) not listed here are simply passed through to the final document (if supported). That is useful if you want to specify a custom metadata schema.</p>
-<h1 id="links-wzxhzdk8wzxhzdk9">Links  <a id="links"></a></h1>
+<h2 id="links-wzxhzdk8wzxhzdk9">Links  <a id="links"></a></h2>
 <ul>
 <li>
 <p><a href="http://www.adobe.com/products/xmp/">Adobe's Extensible Metadata Platform (XMP) website</a> </p>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/output.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/output.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/output.html Wed Oct 24 04:04:00 2012
@@ -330,10 +330,11 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version><authors><person email="keiron@aftexsw.com" name="Keiron Liddle"></person><person email="" name="Art Welch"></person></authors></p>
+      	<div class="section-content"><h1 id="apachetm-fop-output-formats">Apache(tm) FOP Output Formats</h1>
+<p><version>$Revision: 1298724 $</version><authors><person email="keiron@aftexsw.com" name="Keiron Liddle"></person><person email="" name="Art Welch"></person></authors></p>
 <p>Apache&trade; FOP supports multiple output formats by using a different renderer for each format. The renderers do not all have the same set of capabilities, sometimes because of the output format itself, sometimes because some renderers get more development attention than others.</p>
-<h1 id="general-information-wzxhzdk30wzxhzdk31">General Information  <a id="general"></a></h1>
-<h2 id="fonts-wzxhzdk32wzxhzdk33">Fonts # <a id="general-fonts"></a></h2>
+<h2 id="general-information-wzxhzdk30wzxhzdk31">General Information  <a id="general"></a></h2>
+<h3 id="fonts-wzxhzdk32wzxhzdk33">Fonts # <a id="general-fonts"></a></h3>
 <p>Most FOP renderers use a FOP-specific system for font registration. However, the Java2D/AWT and print renderers use the Java AWT package, which gets its font information from the operating system registration. This can result in several differences, including actually using different fonts, and having different font metrics for the same font. The net effect is that the layout of a given FO document can be quite different between renderers that do not use the same font information.</p>
 <p>Theoretically, there's some potential to make the output of the PDF/PS renderers match the output of the Java2D-based renderers. If FOP used the font metrics from its own font subsystem but still used Java2D for text painting in the Java2D-based renderers, this could probably be achieved. However, this approach hasn't been implemented, yet.</p>
 <p>With a work-around, it is possible to match the PDF/PS output in a Java2D-based renderer pretty closely. The clue is to use the <a href="intermediate.html">intermediate format</a> . The trick is to layout the document using FOP's own font subsystem but then render the document using Java2D. Here are the necessary steps (using the command-line):</p>
@@ -357,7 +358,7 @@ $(document).ready(function () {
 <p><code>fop -atin myfile.at.xml -tiff myfile.tiff</code> </p>
 </li>
 </ol>
-<h2 id="output-to-a-printer-or-other-device-wzxhzdk34wzxhzdk35">Output to a Printer or Other Device # <a id="general-direct-output"></a></h2>
+<h3 id="output-to-a-printer-or-other-device-wzxhzdk34wzxhzdk35">Output to a Printer or Other Device # <a id="general-direct-output"></a></h3>
 <p>The most obvious way to print your document is to use the FOP <a href="#print">print renderer</a> , which uses the Java2D API (AWT). However, you can also send output from the Postscript renderer directly to a Postscript device, or output from the PCL renderer directly to a PCL device.</p>
 <p>Here are Windows command-line examples for Postscript and PCL:
 fop ... -ps \computername\printerfop ... -pcl \computername\printer
@@ -365,12 +366,12 @@ Here is some Java code to accomplish the
 proc = Runtime.getRuntime().exec("lp -d" + print_queue + " -o -dp -");
 out = proc.getOutputStream();
 Set the output MIME type to "application/x-pcl" (MimeConstants.MIME_PCL) and it happily sends the PCL to the UNIX printer queue.</p>
-<h1 id="pdf-wzxhzdk36wzxhzdk37">PDF  <a id="pdf"></a></h1>
+<h2 id="pdf-wzxhzdk36wzxhzdk37">PDF  <a id="pdf"></a></h2>
 <p>PDF is the best supported output format. It is also the most accurate with text and layout. This creates a PDF document that is streamed out as each page is rendered. This means that the internal page index information is stored near the end of the document. The PDF version supported is 1.4. PDF versions are forwards/backwards compatible.</p>
 <p>Note that FOP does not currently support PDF/A-1a. Support for <a href="accessibility.html">Tagged PDF</a> , <a href="pdfa.html">PDF/A-1b</a> and <a href="pdfx.html">PDF/X</a> has recently been added, however.</p>
-<h2 id="fonts-wzxhzdk38wzxhzdk39">Fonts # <a id="pdf-fonts"></a></h2>
+<h3 id="fonts-wzxhzdk38wzxhzdk39">Fonts # <a id="pdf-fonts"></a></h3>
 <p>PDF has a set of fonts that are always available to all PDF viewers; to quote from the PDF Specification: <em>"PDF prescribes a set of 14 standard fonts that can be used without prior definition. These include four faces each of three Latin text typefaces (Courier, Helvetica, and Times), as well as two symbolic fonts (Symbol and ITC Zapf Dingbats). These fonts, or suitable substitute fonts with the same metrics, are guaranteed to be available in all PDF viewer applications."</em> </p>
-<h2 id="post-processing-wzxhzdk40wzxhzdk41">Post-processing # <a id="pdf-postprocess"></a></h2>
+<h3 id="post-processing-wzxhzdk40wzxhzdk41">Post-processing # <a id="pdf-postprocess"></a></h3>
 <p>FOP does not currently support several desirable PDF features: watermarks and signatures. One workaround is to use Adobe Acrobat (the full version, not the Reader) to process the file manually or with scripting that it supports.</p>
 <p>Another popular post-processing tool is <a href="http://www.lowagie.com/iText">iText</a> , which has tools for adding security features, document properties, watermarks, and many other features to PDF files.
 <warning>Caveat: iText may swallow PDF bookmarks. But <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=37589">Jens Stavnstrup tells us</a> that this doesn't happen if you use iText's PDFStamper.</warning>
@@ -419,7 +420,7 @@ public static void main(String args[]) {
   }
 }
 Check the iText tutorial and documentation for setting access flags, password, encryption strength and other parameters.</p>
-<h2 id="watermarks-wzxhzdk44wzxhzdk45">Watermarks # <a id="pdf-watermark"></a></h2>
+<h3 id="watermarks-wzxhzdk44wzxhzdk45">Watermarks # <a id="pdf-watermark"></a></h3>
 <p>In addition to the <a href="#pdf-postprocess">PDF Post-processing</a> options, consider the following workarounds:</p>
 <ul>
 <li>
@@ -429,9 +430,9 @@ Check the iText tutorial and documentati
 <p>(submitted by Trevor Campbell) Place an image in a region that overlaps the flowing text. For example, make region-before large enough to contain your image. Then include a block (if necessary, use an absolutely positioned block-container) containing the watermark image in the static-content for the region-before. Note that the image will be drawn on top of the normal content.</p>
 </li>
 </ul>
-<h1 id="postscript-wzxhzdk46wzxhzdk47">PostScript  <a id="ps"></a></h1>
+<h2 id="postscript-wzxhzdk46wzxhzdk47">PostScript  <a id="ps"></a></h2>
 <p>The PostScript renderer has been brought up to a similar quality as the PDF renderer, but may still be missing certain features. It provides good support for most text and layout. Images and SVG are not fully supported, yet. Currently, the PostScript renderer generates PostScript Level 3 with most DSC comments. Actually, the only Level 3 features used are the FlateDecode and DCTDecode filter (the latter is used for 1:1 embedding of JPEG images), everything else is Level 2.</p>
-<h2 id="configuration-wzxhzdk48wzxhzdk49">Configuration # <a id="ps-configuration"></a></h2>
+<h3 id="configuration-wzxhzdk48wzxhzdk49">Configuration # <a id="ps-configuration"></a></h3>
 <p>The PostScript renderer configuration currently allows the following settings:
 <renderer mime="application/postscript">
   <auto-rotate-landscape>false</auto-rotate-landscape>
@@ -445,7 +446,7 @@ The default value for the "auto-rotate-l
 <p>The default value for the "optimize-resources" setting is "false". Setting it to "true" will produce the PostScript file in two steps. A temporary file will be written first which will then be processed to add only the fonts which were really used and images are added to the stream only once as PostScript forms. This will reduce file size but can potentially increase the memory needed in the interpreter to process.</p>
 <p>The default value for the "safe-set-page-device" setting is "false". Setting it to "true" will cause the renderer to invoke a postscript macro which guards against the possibility of invalid/unsupported postscript key/values being issued to the implementing postscript page device.</p>
 <p>The default value for the "dsc-compliant" setting is "true". Setting it to "false" will break DSC compliance by minimizing the number of setpagedevice calls in the postscript document output. This feature may be useful when unwanted blank pages are experienced in your postscript output. This problem is caused by the particular postscript implementation issuing unwanted postscript subsystem initgraphics/erasepage calls on each setpagedevice call.</p>
-<h2 id="limitations-wzxhzdk62wzxhzdk63">Limitations # <a id="ps-limitations"></a></h2>
+<h3 id="limitations-wzxhzdk62wzxhzdk63">Limitations # <a id="ps-limitations"></a></h3>
 <ul>
 <li>
 <p>Images and SVG may not be displayed correctly. SVG support is far from being complete. No image transparency is available.</p>
@@ -460,10 +461,10 @@ The default value for the "auto-rotate-l
 <p>PPD support is still missing.</p>
 </li>
 </ul>
-<h1 id="pcl-wzxhzdk64wzxhzdk65">PCL  <a id="pcl"></a></h1>
+<h2 id="pcl-wzxhzdk64wzxhzdk65">PCL  <a id="pcl"></a></h2>
 <p>This format is for the Hewlett-Packard PCL printers and other printers supporting PCL. It should produce output as close to identical as possible to the printed output of the PDFRenderer within the limitations of the renderer, and output device.</p>
 <p>The output created by the PCLRenderer is generic PCL 5, HP GL/2 and PJL. This should allow any device fully supporting PCL 5 to be able to print the output generated by the PCLRenderer. PJL is used to control the print job and switch to the PCL language. PCL 5 is used for text, raster graphics and rectangular fill graphics. HP GL/2 is used for more complex painting operations. Certain painting operations are done off-screen and rendered to PCL as bitmaps because of limitations in PCL 5.</p>
-<h2 id="references-wzxhzdk66wzxhzdk67">References # <a id="pcl-references"></a></h2>
+<h3 id="references-wzxhzdk66wzxhzdk67">References # <a id="pcl-references"></a></h3>
 <ul>
 <li>
 <p><a href="http://en.wikipedia.org/wiki/Printer_Control_Language">WikiPedia entry on PCL</a> </p>
@@ -472,7 +473,7 @@ The default value for the "auto-rotate-l
 <p><a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568">Technical reference documents on PCL from Hewlett-Packard</a> </p>
 </li>
 </ul>
-<h2 id="limitations-wzxhzdk68wzxhzdk69">Limitations # <a id="pcl-limitations"></a></h2>
+<h3 id="limitations-wzxhzdk68wzxhzdk69">Limitations # <a id="pcl-limitations"></a></h3>
 <ul>
 <li>
 <p>Text or graphics outside the left or top of the printable area are not rendered properly. This is a limitation of PCL, not FOP. In general, things that should print to the left of the printable area are shifted to the right so that they start at the left edge of the printable area.</p>
@@ -499,7 +500,7 @@ The default value for the "auto-rotate-l
 <p>Currently, there's no support for clipping and image transparency, largely because PCL 5 has certain limitations.</p>
 </li>
 </ul>
-<h2 id="configuration-wzxhzdk70wzxhzdk71">Configuration # <a id="pcl-configuration"></a></h2>
+<h3 id="configuration-wzxhzdk70wzxhzdk71">Configuration # <a id="pcl-configuration"></a></h3>
 <p>The PCL renderer configuration currently allows the following settings:
 <renderer mime="application/vnd.hp-PCL">
   <rendering>quality</rendering>
@@ -510,14 +511,14 @@ The default value for the "rendering" se
 <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>
 <p>The default value for the "disable-pjl" setting is "false". This means that the PCL renderer usually generates PJL commands before and after the document in order to switch a printer into PCL language. PJL commands can be disabled if you set this value to "true".</p>
 <p>You can control the output resolution for the PCL using the "target resolution" setting on the FOUserAgent. The actual value will be rounded up to the next supported PCL resolution. Currently, only 300 and 600 dpi are supported which should be enough for most use cases. Note that this setting directly affects the size of the output file and the print quality.</p>
-<h2 id="extensions-wzxhzdk80wzxhzdk81">Extensions # <a id="pcl-extensions"></a></h2>
+<h3 id="extensions-wzxhzdk80wzxhzdk81">Extensions # <a id="pcl-extensions"></a></h3>
 <p>The PCL Renderer supports some PCL specific extensions which can be embedded into the input FO document. To use the extensions the appropriate namespace must be declared in the fo:root element like this:</p>
 <div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
            <span class="n">xmlns:pcl</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/pcl&quot;</span><span class="o">&gt;</span>
 </pre></div>
 
 
-<h3 id="page-source-tray-selection-wzxhzdk82wzxhzdk83">Page Source (Tray selection) ## <a id="pcl-page-source"></a></h3>
+<h4 id="page-source-tray-selection-wzxhzdk82wzxhzdk83">Page Source (Tray selection) ## <a id="pcl-page-source"></a></h4>
 <p>The page-source extension attribute on fo:simple-page-master allows to select the paper tray the sheet for a particular simple-page-master is to be taken from. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span> <span class="na">pcl:paper-source=</span><span class="s">&quot;2&quot;</span><span class="nt">&gt;</span>
@@ -528,7 +529,7 @@ The default value for the "rendering" se
 
 
 <p>Note: the tray number is a positive integer and the value depends on the target printer. Not all PCL printers support the same paper trays. Usually, "1" is the default tray, "2" is the manual paper feed, "3" is the manual envelope feed, "4" is the "lower" tray and "7" is "auto-select". Consult the technical reference for your printer for all available values.</p>
-<h3 id="output-bin-wzxhzdk84wzxhzdk85">Output Bin ## <a id="pcl-output-bin"></a></h3>
+<h4 id="output-bin-wzxhzdk84wzxhzdk85">Output Bin ## <a id="pcl-output-bin"></a></h4>
 <p>The <code>output-bin</code> extension attribute on fo:simple-page-master allows to select the output bin into which the printed output should be fed. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span> <span class="na">pcl:output-bin=</span><span class="s">&quot;2&quot;</span><span class="nt">&gt;</span>
@@ -539,7 +540,7 @@ The default value for the "rendering" se
 
 
 <p>Note: the output bin number is a positive integer and the value depends on the target printer. Not all PCL printers support the same output bins. Usually, "1" is the upper output bin, "2" is the lower (rear) output bin. Consult the technical reference for your printer for all available values.</p>
-<h3 id="page-duplex-mode-wzxhzdk86wzxhzdk87">Page Duplex Mode ## <a id="pcl-duplex-mode"></a></h3>
+<h4 id="page-duplex-mode-wzxhzdk86wzxhzdk87">Page Duplex Mode ## <a id="pcl-duplex-mode"></a></h4>
 <p>The duplex-mode extension attribute on fo:simple-page-master allows to select the duplex mode to be used for a particular simple-page-master. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span> <span class="na">pcl:duplex-mode=</span><span class="s">&quot;0&quot;</span><span class="nt">&gt;</span>
@@ -550,7 +551,7 @@ The default value for the "rendering" se
 
 
 <p>Note: the duplex is a positive integer and the value depends on the target printer. Not all PCL printers support duplexing. Usually, "0" is simplex, "1" is duplex (long-edge binding), "2" is duplex (short-edge binding). Consult the technical reference for your printer for all available values.</p>
-<h1 id="afp-wzxhzdk88wzxhzdk89">AFP  <a id="afp"></a></h1>
+<h2 id="afp-wzxhzdk88wzxhzdk89">AFP  <a id="afp"></a></h2>
 <p>The FOP AFP Renderer deals with creating documents conforming to the IBM AFP document architecture also refered to as MO:DCA (Mixed Object Document Content Architecture).</p>
 <p>The mapping of XSL-FO elements to the major MO:DCA structures is as follows:</p>
 <table>
@@ -576,7 +577,7 @@ The default value for the "rendering" se
 </tbody>
 </table>
 <p>FOP creates exactly one Document per Printfile with an optional Resource Group at the beginning. FOP does not create document indices.</p>
-<h2 id="references-wzxhzdk90wzxhzdk91">References # <a id="afp-references"></a></h2>
+<h3 id="references-wzxhzdk90wzxhzdk91">References # <a id="afp-references"></a></h3>
 <ul>
 <li>
 <p><a href="http://en.wikipedia.org/wiki/Advanced_Function_Presentation">AFP (Advanced Function Presentation)</a> </p>
@@ -588,7 +589,7 @@ The default value for the "rendering" se
 <p><a href="http://wiki.apache.org/xmlgraphics-fop/AFPOutput">Technical notes on AFP output in FOP</a> </p>
 </li>
 </ul>
-<h2 id="limitations-wzxhzdk92wzxhzdk93">Limitations # <a id="afp-limitations"></a></h2>
+<h3 id="limitations-wzxhzdk92wzxhzdk93">Limitations # <a id="afp-limitations"></a></h3>
 <p>This list is most likely badly incomplete.</p>
 <ul>
 <li>
@@ -598,10 +599,10 @@ The default value for the "rendering" se
 <p>Only IBM outline and raster fonts and to a limited extend the original fonts built into FOP are supported. Support for TrueType fonts may be added later.</p>
 </li>
 </ul>
-<h2 id="deployment-in-older-environments-wzxhzdk94wzxhzdk95">Deployment in older environments # <a id="afp-compatibility"></a></h2>
+<h3 id="deployment-in-older-environments-wzxhzdk94wzxhzdk95">Deployment in older environments # <a id="afp-compatibility"></a></h3>
 <p>There are still a big number of older (or limited) MO:DCA/IPDS environments in production out there. AFP has grown in functionality over time and not every environment supports the latest features. We're trying to make AFP output work in as many environments as possible. However, to make AFP output work on older environments it is recommended to set to configuration to 1 bit per pixel (see below on how to do this). In this case, all images are converted to bi-level images using IOCA function set 10 (FS10) and are enclosed in page-segments since some implementation cannot deal with IOCA objects directly. If a higher number of bits per pixel is configured, FOP has to switch to at least FS11 which may not work everywhere.</p>
-<h2 id="configuration-wzxhzdk96wzxhzdk97">Configuration # <a id="afp-configuration"></a></h2>
-<h3 id="fonts-wzxhzdk98wzxhzdk99">Fonts ## <a id="afp-font-config"></a></h3>
+<h3 id="configuration-wzxhzdk96wzxhzdk97">Configuration # <a id="afp-configuration"></a></h3>
+<h4 id="fonts-wzxhzdk98wzxhzdk99">Fonts ## <a id="afp-font-config"></a></h4>
 <p>The AFP Renderer requires special configuration particularly related to fonts. AFP Render configuration is done through the normal FOP configuration file. The MIME type for the AFP Renderer is application/x-afp which means the AFP Renderer section in the FOP configuration file looks like:
 <renderer mime="application/x-afp">
   <!-- AFP Renderer -->
@@ -739,7 +740,7 @@ A CID-keyed font (Type 0, double-byte ou
 
 
 <p>By default, all manually configured fonts are embedded, unless they are matched in the <a href="fonts.html#embedding">section of the configuration file</a> . However, the default fonts shown above will not be embedded.</p>
-<h3 id="output-resolution-wzxhzdk163wzxhzdk164">Output Resolution ## <a id="afp-renderer-resolution-config"></a></h3>
+<h4 id="output-resolution-wzxhzdk163wzxhzdk164">Output Resolution ## <a id="afp-renderer-resolution-config"></a></h4>
 <p>By default the AFP Renderer creates output with a resolution of 240 dpi. This can be overridden by the <renderer-resolution/> configuration element. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;renderer-resolution&gt;</span>240<span class="nt">&lt;/renderer-resolution&gt;</span>
 </pre></div>
@@ -779,7 +780,7 @@ A CID-keyed font (Type 0, double-byte ou
 </pre></div>
 
 
-<h3 id="resource-group-file-wzxhzdk171wzxhzdk172">Resource Group File ## <a id="afp-resource-group-file"></a></h3>
+<h4 id="resource-group-file-wzxhzdk171wzxhzdk172">Resource Group File ## <a id="afp-resource-group-file"></a></h4>
 <p>By default the AFP Renderer will place all data resource objects such as images within the document of the main output datastream. An external resource group file where document resources may be specified with the <resource-group-file/> configuration element. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;resource-group-file&gt;</span>external_resources.afp<span class="nt">&lt;/resource-group-file&gt;</span>
 </pre></div>
@@ -791,14 +792,14 @@ A CID-keyed font (Type 0, double-byte ou
 <p>It is possible to override these defaults, either per image (see the <a href="#afp-foreign-attributes-resource">afp:resource-level</a> extension attribute below) or by specifying different defaults in the configuration:</p>
 <p><default-resource-levels goca="print-file" bitmap="inline"/>
 "goca" refers to GOCA graphics and "bitmap" refers to IOCA images. The possible values for the attributes are "inline" and "print-file". In the future, additional possibilities may be added.</p>
-<h2 id="extensions-wzxhzdk177wzxhzdk178">Extensions # <a id="afp-extensions"></a></h2>
+<h3 id="extensions-wzxhzdk177wzxhzdk178">Extensions # <a id="afp-extensions"></a></h3>
 <p>The AFP Renderer supports some AFP specific extensions which can be embedded into the input fo document. To use the extensions the appropriate namespace must be declared in the fo:root element like this:</p>
 <div class="codehilite"><pre>  <span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
            <span class="n">xmlns:afp</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="o">&gt;</span>
 </pre></div>
 
 
-<h3 id="page-overlay-ipo-extension-wzxhzdk179wzxhzdk180">Page Overlay (IPO) Extension ## <a id="afp-page-overlay"></a></h3>
+<h4 id="page-overlay-ipo-extension-wzxhzdk179wzxhzdk180">Page Overlay (IPO) Extension ## <a id="afp-page-overlay"></a></h4>
 <p>The include-page-overlay extension element allows to define on a per simple-page-master basis a page overlay resource. Example:</p>
 <div class="codehilite"><pre>  <span class="nt">&lt;fo:layout-master-set&gt;</span>
     <span class="nt">&lt;fo:simple-page-master</span> <span class="na">master-name=</span><span class="s">&quot;simple&quot;</span><span class="nt">&gt;</span>
@@ -810,7 +811,7 @@ A CID-keyed font (Type 0, double-byte ou
 
 
 <p>The mandatory name attribute must refer to an 8 character (space padded) resource name that must be known in the AFP processing environment. Optional x and y attributes can be specified to place the Overlay at an offset from the top left of the page.</p>
-<h3 id="page-segment-ips-extension-wzxhzdk181wzxhzdk182">Page Segment (IPS) Extension ## <a id="afp-page-segment"></a></h3>
+<h4 id="page-segment-ips-extension-wzxhzdk181wzxhzdk182">Page Segment (IPS) Extension ## <a id="afp-page-segment"></a></h4>
 <p>The include-page-segment extension element allows to define resource substitution for fo:external-graphics elements. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
  <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
@@ -825,7 +826,7 @@ A CID-keyed font (Type 0, double-byte ou
 
 <p>The include-page-segment extension element can only occur within a simple-page-master. Multiple include-page-segment extension elements within a simple-page-master are allowed. The mandatory name attribute must refer to an 8 character (space padded) resource name that must be known in the AFP processing environment. The value of the mandatory src attribute is compared against the value of the src attribute in fo:external-graphic elements and if it is identical (string matching is used) in the generated AFP the external graphic is replaced by a reference to the given resource.</p>
 <p>The effect here is that whenever FOP encounters the URI specified in the extension, it will effectively generate code to include the page segment with the given name instead of embedding the image referenced by the URI. The URI is still required as the underlying image serves as a provider for the intrinsic size of the image (At the moment, FOP is unable to extract the intrinsic size of the page segment from an AFP resource file). For the image to appear in an AFP viewer or to be printed, the AFP resource must be available on the target device. FOP does not embed the page segment in the generated file. Please also note that page segments cannot be scaled. They are always rendered in their intrinsic size.</p>
-<h3 id="tag-logical-element-tle-extension-wzxhzdk183wzxhzdk184">Tag Logical Element (TLE) Extension ## <a id="afp-tag-logical-element"></a></h3>
+<h4 id="tag-logical-element-tle-extension-wzxhzdk183wzxhzdk184">Tag Logical Element (TLE) Extension ## <a id="afp-tag-logical-element"></a></h4>
 <p>The tag-logical-element extension element allows to injects TLEs into the AFP output stream. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
  <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
@@ -844,7 +845,7 @@ A CID-keyed font (Type 0, double-byte ou
 
 
 <p>The tag-logical-element extension element can appear within a simple-page-master (page level) or it can appear as child of page-sequence (page group level). Multiple tag-logical-element extension elements within a simple-page-master or page-sequence are allowed. The name and value attributes are mandatory.</p>
-<h3 id="no-operation-nop-extension-wzxhzdk185wzxhzdk186">No Operation (NOP) Extension ## <a id="afp-no-operation"></a></h3>
+<h4 id="no-operation-nop-extension-wzxhzdk185wzxhzdk186">No Operation (NOP) Extension ## <a id="afp-no-operation"></a></h4>
 <p>The no-operation extension provides the ability to carry up to 32K of comments or any other type of unarchitected data into the AFP output stream. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
  <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
@@ -857,7 +858,7 @@ A CID-keyed font (Type 0, double-byte ou
 
 
 <p>The no-operation extension element can only occur within a simple-page-master. Multiple no-operation extension elements within a simple-page-master are allowed. The name attribute is mandatory.</p>
-<h3 id="invoke-medium-map-imm-extension-wzxhzdk187wzxhzdk188">Invoke Medium Map (IMM) Extension ## <a id="afp-invoke-medium-map"></a></h3>
+<h4 id="invoke-medium-map-imm-extension-wzxhzdk187wzxhzdk188">Invoke Medium Map (IMM) Extension ## <a id="afp-invoke-medium-map"></a></h4>
 <p>The invoke-medium-map extension allows to generate IMM fields (Invoke Medium Map) in the generated AFP output. Example:</p>
 <div class="codehilite"><pre><span class="o">&lt;</span><span class="n">fo:root</span> <span class="n">xmlns:fo</span><span class="o">=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
  <span class="n">xmlns:afp</span><span class="o">=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="o">&gt;</span>
@@ -870,14 +871,14 @@ A CID-keyed font (Type 0, double-byte ou
 
 
 <p>The invoke-medium-map element is allowed as child of fo:page-sequence (page group level) or fo:simple-page-master. It is NOT supported on document level (fo:root), yet. FOP also doesn't support specifying medium maps inside XML (using BMM/EMM). It can only reference an existing medium map by name. The medium map has to be constructed through different means and available on the target platform.</p>
-<h3 id="form-mapsdefs-wzxhzdk189wzxhzdk190">Form Maps/Defs ## <a id="afp-form-maps"></a></h3>
+<h4 id="form-mapsdefs-wzxhzdk189wzxhzdk190">Form Maps/Defs ## <a id="afp-form-maps"></a></h4>
 <p>Apache FOP supports embedding an external form map resource in the generated AFP output. This is done using the <code>afp:include-form-map</code> extension. An example:</p>
 <p class="."><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
      xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp"></p>
 <p>The <code>afp:include-form-map</code> is to be placed as a direct child of <code>fo:declarations</code> . The <code>name</code> is an AFP resource name (max. 8 characters) and the <code>src</code> attribute is the URI identifying the external form map resource. When such a form map is embedded, you can use the <code>afp:invoke-medium-map</code> extension (described above) to invoke any medium map included in the form map.
 Apache FOP doesn't support a way to define a form map or medium map using XML means inside an XSL-FO document. You will have to build the form map with some third-party tool.</p>
 <h2 id="foreign-attributes-wzxhzdk192wzxhzdk193">Foreign Attributes # <a id="afp-foreign-attributes"></a></h2>
-<h3 id="resource-wzxhzdk194wzxhzdk195">Resource ## <a id="afp-foreign-attributes-resource"></a></h3>
+<h4 id="resource-wzxhzdk194wzxhzdk195">Resource ## <a id="afp-foreign-attributes-resource"></a></h4>
 <p>The resource foreign attributes provides the ability to name and control where data object resources (e.g. images/scalable vector graphics) will reside in the AFP output. The afp foreign attributes are only used in conjuntion with <fo:external-graphic/> and <instream-foreign-object/>. Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;fo:root</span> <span class="na">xmlns:fo=</span><span class="s">&quot;http://www.w3.org/1999/XSL/Format&quot;</span>
  <span class="na">xmlns:afp=</span><span class="s">&quot;http://xmlgraphics.apache.org/fop/extensions/afp&quot;</span><span class="nt">&gt;</span>
@@ -903,7 +904,7 @@ Apache FOP doesn't support a way to defi
 
 
 <p>The resource-level attribute where the resource object will reside in the AFP output datastream. The possible values for this are "inline", "print-file" and "external". When "external" is used a resource-group-file attribute must also be specified. Please refer to the <a href="#afp-resource-level-defaults">Resource Level Defaults</a> above to see what is used if the resource-level attribute is not specified.</p>
-<h1 id="rtf-wzxhzdk198wzxhzdk199">RTF  <a id="rtf"></a></h1>
+<h2 id="rtf-wzxhzdk198wzxhzdk199">RTF  <a id="rtf"></a></h2>
 <p>JFOR, an open source XSL-FO to RTF converter has been integrated into Apache FOP. This will create an RTF (rich text format) document that will attempt to contain as much information from the XSL-FO document as possible. It should be noted that is not possible (due to RTF's limitations) to map all XSL-FO features to RTF. For complex documents, the RTF output will never reach the feature level from PDF, for example. Thus, using RTF output is only recommended for simple documents such as letters.</p>
 <p>The RTF output follows Microsoft's RTF specifications and produces best results on Microsoft Word.
 RTF output is currently unmaintained and lacks many features compared to other output formats. Using other editable formats like Open Document Format, instead of producing XSL-FO then RTF through FOP, might give better results.
@@ -939,21 +940,21 @@ These are some known restrictions compar
 <p>percentages are not supported everywhere</p>
 </li>
 </ul>
-<h1 id="xml-area-tree-xml-wzxhzdk200wzxhzdk201">XML (Area Tree XML)  <a id="xml"></a></h1>
+<h2 id="xml-area-tree-xml-wzxhzdk200wzxhzdk201">XML (Area Tree XML)  <a id="xml"></a></h2>
 <p>This is primarily for testing and verification. The XML created is simply a representation of the internal area tree put into XML. We use that to verify the functionality of FOP's layout engine.</p>
 <p>The other use case of the Area Tree XML is as FOP's "intermediate format". More information on that can be found on the page dedicated to the <a href="intermediate.html">Intermediate Format</a> .</p>
-<h1 id="java2dawt-wzxhzdk202wzxhzdk203">Java2D/AWT  <a id="awt"></a></h1>
+<h2 id="java2dawt-wzxhzdk202wzxhzdk203">Java2D/AWT  <a id="awt"></a></h2>
 <p>The Java2DRenderer provides the basic functionality for all Java2D-based output formats (AWT viewer, direct print, PNG, TIFF).</p>
 <p>The AWT viewer shows a window with the pages displayed inside a Java graphic. It displays one page at a time. The fonts used for the formatting and viewing depend on the fonts available to your JRE.</p>
-<h1 id="print-wzxhzdk204wzxhzdk205">Print  <a id="print"></a></h1>
+<h2 id="print-wzxhzdk204wzxhzdk205">Print  <a id="print"></a></h2>
 <p>It is possible to directly print the document from the command line. This is done with the same code that renders to the Java2D/AWT renderer.</p>
-<h2 id="known-issues-wzxhzdk206wzxhzdk207">Known issues # <a id="print-issues"></a></h2>
+<h3 id="known-issues-wzxhzdk206wzxhzdk207">Known issues # <a id="print-issues"></a></h3>
 <p>If you run into the problem that the printed output is incomplete on Windows: this often happens to users printing to a PCL printer. There seems to be an incompatibility between Java and certain PCL printer drivers on Windows. Since most network-enabled laser printers support PostScript, try switching to the PostScript printer driver for that printer model.</p>
-<h1 id="bitmap-tiffpng-wzxhzdk208wzxhzdk209">Bitmap (TIFF/PNG)  <a id="bitmap"></a></h1>
+<h2 id="bitmap-tiffpng-wzxhzdk208wzxhzdk209">Bitmap (TIFF/PNG)  <a id="bitmap"></a></h2>
 <p>It is possible to directly create bitmap images from the individual pages generated by the layout engine. This is done with the same code that renders to the Java2D/AWT renderer.</p>
 <p>Currently, two output formats are supported: PNG and TIFF. TIFF produces one file with multiple pages, while PNG output produces one file per page. Note: FOP can only produce multiple files (with PNG output) if you can set a <code>java.io.File</code> indicating the primary PNG file using the <code>FOUserAgent.setOutputFile(File)</code> method.</p>
 <p>The quality of the bitmap depends on the target resolution setting on the FOUserAgent and on further settings described below.</p>
-<h2 id="configuration-wzxhzdk210wzxhzdk211">Configuration # <a id="bitmap-configuration"></a></h2>
+<h3 id="configuration-wzxhzdk210wzxhzdk211">Configuration # <a id="bitmap-configuration"></a></h3>
 <p>The TIFF and PNG renderer configuration currently allows the following settings:
 <renderer mime="image/png">
   <color-mode>rgba</color-mode>
@@ -983,7 +984,7 @@ The default value for the <code>"color-m
 <p>The default value for the <code>"background-color"</code> setting is <code>"white"</code> . The color specifies in which color the page background is painted. It will only be painted if <code>"transparent-page-background"</code> is not set to <code>"true"</code> . All XSL-FO colors (including color functions) can be used.</p>
 <p>The default value for the <code>"anti-aliasing"</code> setting is <code>"true"</code> . You can set this value to <code>"false"</code> to disable anti-aliasing and thus improve rendering speeds a bit at the loss of some image quality.</p>
 <p>The default value for the <code>"rendering"</code> setting is <code>"true"</code> . You can set this value to <code>"false"</code> to improve rendering speeds a bit at the loss of some image quality. If this setting has an actual effect depends on the JVM's Java2D backend.</p>
-<h2 id="tiff-specific-configuration-wzxhzdk227wzxhzdk228">TIFF-specific Configuration # <a id="tiff-configuration"></a></h2>
+<h3 id="tiff-specific-configuration-wzxhzdk227wzxhzdk228">TIFF-specific Configuration # <a id="tiff-configuration"></a></h3>
 <p>In addition to the above values the TIFF renderer configuration allows some additional settings:
 <renderer mime="image/tiff">
   <transparent-page-background>true</transparent-page-background>
@@ -1038,15 +1039,15 @@ userAgent.getRenderingOptions().put(
 <p>line-height="10.5pt"</p>
 </li>
 </ul>
-<h1 id="output-formats-in-the-sandbox-wzxhzdk242wzxhzdk243">Output Formats in the Sandbox  <a id="sandbox"></a></h1>
+<h2 id="output-formats-in-the-sandbox-wzxhzdk242wzxhzdk243">Output Formats in the Sandbox  <a id="sandbox"></a></h2>
 <p>Due to the state of certain renderers we moved some of them to a "sandbox" area until they are ready for more serious use. The renderers and FOEventHandlers in the sandbox can be found under src/sandbox and are compiled into build/fop-sandbox.jar during the main build. The output formats in the sandbox are marked as such below.</p>
-<h2 id="mif-wzxhzdk244wzxhzdk245">MIF # <a id="mif"></a></h2>
+<h3 id="mif-wzxhzdk244wzxhzdk245">MIF # <a id="mif"></a></h3>
 <p><warning>The MIF handler is in the sandbox and not yet functional in FOP Trunk!!! Please help us ressurrect this feature.</warning>
 This format is the Maker Interchange Format which is used by Adobe Framemaker.</p>
-<h2 id="svg-wzxhzdk248wzxhzdk249">SVG # <a id="svg"></a></h2>
+<h3 id="svg-wzxhzdk248wzxhzdk249">SVG # <a id="svg"></a></h3>
 <p><warning>The SVG renderer is in the sandbox and may not work as expected in FOP Trunk!!! Please help us improve this feature.</warning>
 This format creates an SVG document that has links between the pages. This is primarily for slides and creating svg images of pages. Large documents will create SVG files that are far too large for an SVG viewer to handle. Since FO documents usually have text the SVG document will have a large number of text elements. The font information for the text is obtained from the JVM in the same way as for the AWT viewer. If the SVG is viewed on a system where the fonts are different, such as another platform, then the page may look wrong.</p>
-<h1 id="wish-list-wzxhzdk252wzxhzdk253">Wish list  <a id="wishlist"></a></h1>
+<h2 id="wish-list-wzxhzdk252wzxhzdk253">Wish list  <a id="wishlist"></a></h2>
 <p>Apache FOP is easily extensible and allows you to add new output formats to enhance FOP's functionality. There's a number of output formats which are on our wish list. We're looking for volunteers to help us implement them.</p>
 <ul>
 <li><a href="http://en.wikipedia.org/wiki/OpenDocument">ODF (Open Document Format)</a> : The standardized successor to OpenOffice's file format.</li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfa.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfa.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfa.html Wed Oct 24 04:04:00 2012
@@ -330,24 +330,25 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version><authors><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
-<h1 id="overview-wzxhzdk6wzxhzdk7">Overview  <a id="overview"></a></h1>
+      	<div class="section-content"><h1 id="apachetm-fop-pdfa-iso-19005">Apache(tm) FOP: PDF/A (ISO 19005)</h1>
+<p><version>$Revision: 1298724 $</version><authors><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
+<h2 id="overview-wzxhzdk6wzxhzdk7">Overview  <a id="overview"></a></h2>
 <p>PDF/A is a standard which turns PDF into an "electronic document file format for long-term preservation". PDF/A-1 is the first part of the standard and is documented in <a href="http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=38920&amp;ICS1=37&amp;ICS2=100&amp;ICS3=99">ISO 19005-1:2005(E)</a> . Work on PDF/A-2 is in progress at <a href="http://www.aiim.org/standards.asp?ID=25013">AIIM</a> .</p>
 <p>Design documentation on PDF/A can be found on FOP's Wiki on the <a href="http://wiki.apache.org/xmlgraphics-fop/PDFA1ConformanceNotes">PDFA1ConformanceNotes</a> page.</p>
-<h1 id="implementation-status-wzxhzdk8wzxhzdk9">Implementation Status  <a id="status"></a></h1>
+<h2 id="implementation-status-wzxhzdk8wzxhzdk9">Implementation Status  <a id="status"></a></h2>
 <p><strong>PDF/A-1b</strong> is implemented to the degree that FOP supports the creation of the elements described in ISO 19005-1.</p>
 <p>Tests have been performed against jHove and Adobe Acrobat 7.0.7 (Preflight function). FOP does not validate completely against Apago's PDF Appraiser. Reasons unknown due to lack of a full license to get a detailed error protocol.</p>
 <p><strong>PDF/A-1a</strong> is based on PDF-A-1b and adds accessibility features (such as Tagged PDF). This format is available within the limitation described on the <a href="accessibility.html">Accessibility page</a> .</p>
-<h1 id="usage-command-line-wzxhzdk10wzxhzdk11">Usage (command line)  <a id="command-line"></a></h1>
+<h2 id="usage-command-line-wzxhzdk10wzxhzdk11">Usage (command line)  <a id="command-line"></a></h2>
 <p>To activate PDF/A-1b from the command-line, specify "-pdfprofile PDF/A-1b" as a parameter. If there is a violation of one of the validation rules for PDF/A, an error message is presented and the processing stops.</p>
 <p>PDF/A-1a is enabled by specifying "-pdfprofile PDF/A-1a".</p>
-<h1 id="usage-embedded-wzxhzdk12wzxhzdk13">Usage (embedded)  <a id="embedded"></a></h1>
+<h2 id="usage-embedded-wzxhzdk12wzxhzdk13">Usage (embedded)  <a id="embedded"></a></h2>
 <p>When FOP is embedded in another Java application you can set a special option on the renderer options in the user agent to activate the PDF/A-1b profile. Here's an example:</p>
 <p class=".">userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
 </p>
 <p>For PDF/A-1a, just use the string "PDF/A-1a" instead of "PDF/A-1b".</p>
-<h1 id="pdfa-in-action-wzxhzdk14wzxhzdk15">PDF/A in Action  <a id="rules"></a></h1>
+<h2 id="pdfa-in-action-wzxhzdk14wzxhzdk15">PDF/A in Action  <a id="rules"></a></h2>
 <p>There are a number of things that must be looked after if you activate a PDF/A profile. If you receive a PDFConformanceException, have a look at the following list (not necessarily comprehensive):</p>
 <ul>
 <li>
@@ -375,7 +376,7 @@ There are additional requirements if you
 </ul>
 <h1 id="pdf-profile-compatibility-wzxhzdk16wzxhzdk17">PDF profile compatibility  <a id="profile-compatibility"></a></h1>
 <p>The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" (or "PDF/A-1a") are compatible and can both be activated at the same time.</p>
-<h1 id="interoperability-wzxhzdk18wzxhzdk19">Interoperability  <a id="interoperability"></a></h1>
+<h2 id="interoperability-wzxhzdk18wzxhzdk19">Interoperability  <a id="interoperability"></a></h2>
 <p>There has been some confusion about the namespace for the PDF/A indicator in the XMP metadata. At least three variants have been seen in the wild:</p>
 <table>
 <thead>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfencryption.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfencryption.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfencryption.html Wed Oct 24 04:04:00 2012
@@ -330,17 +330,18 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version><authors><person email="pietsch@apache.org" name="J.Pietschmann"></person><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
-<h1 id="overview-wzxhzdk8wzxhzdk9">Overview  <a id="Overview"></a></h1>
+      	<div class="section-content"><h1 id="apachetm-fop-pdf-encryption">Apache(tm) FOP: PDF encryption.</h1>
+<p><version>$Revision: 1298724 $</version><authors><person email="pietsch@apache.org" name="J.Pietschmann"></person><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
+<h2 id="overview-wzxhzdk8wzxhzdk9">Overview  <a id="Overview"></a></h2>
 <p>Apache&trade; FOP supports encryption of PDF output, thanks to Patrick C. Lankswert. This feature is commonly used to prevent unauthorized viewing, printing, editing, copying text from the document and doing annotations. It is also possible to ask the user for a password in order to view the contents. Note that there already exist third party applications which can decrypt an encrypted PDF without effort and allow the aforementioned operations, therefore the degree of protection is limited.</p>
 <p>For further information about features and restrictions regarding PDF encryption, look at the documentation coming with Adobe Acrobat or the technical documentation on the Adobe web site.</p>
-<h1 id="usage-command-line-wzxhzdk11wzxhzdk12">Usage (command line)  <a id="Usage+%28command+line%29"></a></h1>
+<h2 id="usage-command-line-wzxhzdk11wzxhzdk12">Usage (command line)  <a id="Usage+%28command+line%29"></a></h2>
 <p>Encryption is enabled by supplying any of the encryption related options.</p>
 <p>An owner password is set with the <code>-o</code> option. This password is actually used as encryption key. Many tools for PDF processing ask for this password to disregard any restriction imposed on the PDF document.</p>
 <p>If no owner password has been supplied but FOP was asked to apply some restrictions, a random password is used. In this case it is obviously impossiible to disregard restrictions in PDF processing tools.</p>
 <p>A user password, supplied with the <code>-u</code> option, will cause the PDF display software to ask the reader for this password in order to view the contents of the document. If no user password was supplied, viewing the content is not restricted.</p>
 <p>Further restrictions can be imposed by using the <code>-noprint</code> , <code>-nocopy</code> , <code>-noedit</code> and <code>-noannotations</code> options, which disable printing, copying text, editing in Adobe Acrobat and making annotations, respectively.</p>
-<h1 id="usage-embedded-wzxhzdk13wzxhzdk14">Usage (embedded)  <a id="Usage+%28embedded%29"></a></h1>
+<h2 id="usage-embedded-wzxhzdk13wzxhzdk14">Usage (embedded)  <a id="Usage+%28embedded%29"></a></h2>
 <p>When FOP is embedded in another Java application you need to set an options map on the renderer. These are the supported options:</p>
 <table>
 <thead>
@@ -450,13 +451,13 @@ Fop fop = fopFactory.newFop(MimeConstant
 <p>noannotations: Boolean or "true"/"false"</p>
 </li>
 </ol>
-<h1 id="environment-wzxhzdk15wzxhzdk16">Environment  <a id="Environment"></a></h1>
+<h2 id="environment-wzxhzdk15wzxhzdk16">Environment  <a id="Environment"></a></h2>
 <p>In order to use PDF encryption, FOP has to be compiled with cryptography support. Currently, only <a href="http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html">JCE</a> is supported. JCE is part of JDK 1.4. For earlier JDKs, it can be installed separately. The build process automatically detects JCE presence and installs PDF encryption support if possible, otherwise a stub is compiled in.</p>
 <p>Cryptography support must also be present at run time. In particular, a provider for the RC4 cipher is needed. Unfortunately, the sample JCE provider in Sun's JDK 1.4 does <strong>not</strong> provide RC4. If you get a message saying
 "Cannot find any provider supporting RC4"
 then you don't have the needed infrastructure.</p>
 <p>There are several commercial and a few Open Source packages which provide RC4. A pure Java implementation is produced by <a href="http://www.bouncycastle.org/">The Legion of the Bouncy Castle</a> . <a href="http://www.mozilla.org/projects/security/pki/jss/">Mozilla JSS</a> is an interface to a native implementation.</p>
-<h1 id="installing-a-crypto-provider-wzxhzdk17wzxhzdk18">Installing a crypto provider  <a id="install_crypto"></a></h1>
+<h2 id="installing-a-crypto-provider-wzxhzdk17wzxhzdk18">Installing a crypto provider  <a id="install_crypto"></a></h2>
 <p>The pure Java implementation from <a href="http://www.bouncycastle.org/">Bouncy Castle</a> is easy to install.</p>
 <ol>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfx.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfx.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/pdfx.html Wed Oct 24 04:04:00 2012
@@ -330,23 +330,24 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version><authors><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
-<h1 id="overview-wzxhzdk6wzxhzdk7">Overview  <a id="overview"></a></h1>
+      	<div class="section-content"><h1 id="apachetm-fop-pdfx-iso-15930">Apache(tm) FOP: PDF/X (ISO 15930)</h1>
+<p><version>$Revision: 1298724 $</version><authors><person email="jeremias@apache.org" name="Jeremias Märki"></person></authors></p>
+<h2 id="overview-wzxhzdk6wzxhzdk7">Overview  <a id="overview"></a></h2>
 <p><warning>Support for PDF/X is available beginning with Apache&trade; FOP version 0.93. This feature is new and may not be 100% complete, yet. Feedback is welcome.</warning>
 PDF/X is a standard which faciliates prepress digital data exchange using PDF. Currently, only PDF/X-3:2003 is implemented out of the many different flavours of PDF/X profiles. PDF/X-3:2003 is documented in <a href="http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=39940&amp;ICS1=37&amp;ICS2=100&amp;ICS3=99">ISO 15930-6:2003(E)</a> . More info on PDF/X can be found on the <a href="http://www.pdfx.info/">PDF/X info site</a> .</p>
-<h1 id="implementation-status-wzxhzdk11wzxhzdk12">Implementation Status  <a id="status"></a></h1>
+<h2 id="implementation-status-wzxhzdk11wzxhzdk12">Implementation Status  <a id="status"></a></h2>
 <p><strong>PDF/X-3:2003</strong> is implemented to the degree that FOP supports the creation of the elements described in ISO 15930-6.</p>
 <p>An important restriction of the current implementation is that all normal RGB colors specified in XSL-FO and SVG are left unchanged in the sRGB color space (XSL-FO and SVG both use sRGB as their default color space). There's no conversion to a CMYK color space. Although sRGB is a calibrated color space, its color space has a different size than a CMYK color space which makes the conversion a lossy conversion and can lead to unwanted results. Although the use of the calibrated sRGB has been promoted for years, print shops usually prefer to convert an sRGB PDF to CMYK prior to production. Until there's full CMYK support in FOP you will have to work closely with your print service provider to make sure you get the intended result.</p>
 <p>Tests have been performed against Adobe Acrobat 7.0.7 (Preflight function). Note that there are bugs in Adobe Acrobat which cause false alarms if both PDF/A-1b and PDF/X-3:2003 are activated at the same time.</p>
-<h1 id="usage-command-line-wzxhzdk13wzxhzdk14">Usage (command line)  <a id="command-line"></a></h1>
+<h2 id="usage-command-line-wzxhzdk13wzxhzdk14">Usage (command line)  <a id="command-line"></a></h2>
 <p>To activate PDF/X-3:2003 from the command-line, specify "-pdfprofile PDF/X-3:2003" as a parameter. If there is a violation of one of the validation rules for PDF/X, an error message is presented and the processing stops.</p>
-<h1 id="usage-embedded-wzxhzdk15wzxhzdk16">Usage (embedded)  <a id="embedded"></a></h1>
+<h2 id="usage-embedded-wzxhzdk15wzxhzdk16">Usage (embedded)  <a id="embedded"></a></h2>
 <p>When FOP is embedded in another Java application you can set a special option on the renderer options in the user agent to activate the PDF/A-1b profile. Here's an example:</p>
 <p class=".">FOUserAgent userAgent = fopFactory.newFOUserAgent();
 userAgent.getRendererOptions().put("pdf-x-mode", "PDF/X-3:2003");
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
 </p>
-<h1 id="pdfx-in-action-wzxhzdk17wzxhzdk18">PDF/X in Action  <a id="rules"></a></h1>
+<h2 id="pdfx-in-action-wzxhzdk17wzxhzdk18">PDF/X in Action  <a id="rules"></a></h2>
 <p>There are a number of things that must be looked after if you activate a PDF/X profile. If you receive a PDFConformanceException, have a look at the following list (not necessarily comprehensive):</p>
 <ul>
 <li>
@@ -368,7 +369,7 @@ Fop fop = fopFactory.newFop(MimeConstant
 <p>PDF is forced to version 1.4 if PDF/X-3:2003 is activated.</p>
 </li>
 </ul>
-<h1 id="pdf-profile-compatibility-wzxhzdk19wzxhzdk20">PDF profile compatibility  <a id="profile-compatibility"></a></h1>
+<h2 id="pdf-profile-compatibility-wzxhzdk19wzxhzdk20">PDF profile compatibility  <a id="profile-compatibility"></a></h2>
 <p>The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" are compatible and can both be activated at the same time.</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/releaseNotes_1.0.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/releaseNotes_1.0.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/releaseNotes_1.0.html Wed Oct 24 04:04:00 2012
@@ -330,7 +330,8 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><h1 id="major-changes-in-version-10-wzxhzdk0wzxhzdk1">Major Changes in Version 1.0  <a id="version_1.0"></a></h1>
+      	<div class="section-content"><h1 id="release-notes-for-apache-fop-10">Release Notes for Apache FOP 1.0</h1>
+<h2 id="major-changes-in-version-10-wzxhzdk0wzxhzdk1">Major Changes in Version 1.0  <a id="version_1.0"></a></h2>
 <p>This is not a complete list of changes, just some of the more important ones. A full list of changes in this release <a href="changes_1.0.html">is available</a> .</p>
 <h2 id="changes-to-the-code-base-wzxhzdk2wzxhzdk3">Changes to the Code Base # <a id="Changes+to+the+Code+Base"></a></h2>
 <ul>
@@ -344,7 +345,7 @@ $(document).ready(function () {
 <p><icon alt="add" src="../images/add.jpg"></icon>Added an event handling framework which allows to get better feedback from within FOP with the ability to customize problem management. Committed by JM.</p>
 </li>
 </ul>
-<h2 id="changes-to-the-font-subsystem-wzxhzdk4wzxhzdk5">Changes to the Font Subsystem # <a id="Changes+to+the+Font+Subsystem"></a></h2>
+<h3 id="changes-to-the-font-subsystem-wzxhzdk4wzxhzdk5">Changes to the Font Subsystem # <a id="Changes+to+the+Font+Subsystem"></a></h3>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Add support for font substitution. Committed by AC.</p>
@@ -353,7 +354,7 @@ $(document).ready(function () {
 <p><icon alt="add" src="../images/add.jpg"></icon>Added support for addressing all glyphs available in a Type 1 font, not just the ones in the font's primary encoding. Committed by JM.</p>
 </li>
 </ul>
-<h2 id="changes-to-the-layout-engine-wzxhzdk6wzxhzdk7">Changes to the Layout Engine # <a id="Changes+to+the+Layout+Engine"></a></h2>
+<h3 id="changes-to-the-layout-engine-wzxhzdk6wzxhzdk7">Changes to the Layout Engine # <a id="Changes+to+the+Layout+Engine"></a></h3>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Added limited support for pages of different inline-progression-dimensions within a page-sequence. Committed by VH.</p>
@@ -362,7 +363,7 @@ $(document).ready(function () {
 <p><icon alt="add" src="../images/add.jpg"></icon>Added minimal support for integer keep values on the various keep properties on block-level FOs. For now, all integer values are treated the same (i.e. without strength distinction). Using integers allows to avoid overflows that can happen when "always" is used extensively. Committed by JM.</p>
 </li>
 </ul>
-<h2 id="changes-to-renderers-output-formats-wzxhzdk8wzxhzdk9">Changes to Renderers (Output Formats) # <a id="Changes+to+Renderers+%28Output+Formats%29"></a></h2>
+<h3 id="changes-to-renderers-output-formats-wzxhzdk8wzxhzdk9">Changes to Renderers (Output Formats) # <a id="Changes+to+Renderers+%28Output+Formats%29"></a></h3>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>AFP Output: An AFPGraphics2D implementation which provides the ability to use Batik to drive the production of AFP Graphics (GOCA) output from SVG. Committed by AC.</p>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html Wed Oct 24 04:04:00 2012
@@ -330,8 +330,9 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
-      	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="system-requirements-wzxhzdk2wzxhzdk3">System Requirements  <a id="require"></a></h1>
+      	<div class="section-content"><h1 id="running-apachewzxhzdk0-fop">Running Apache&trade; FOP</h1>
+<p><version>$Revision: 1298724 $</version></p>
+<h2 id="system-requirements-wzxhzdk3wzxhzdk4">System Requirements  <a id="require"></a></h2>
 <p>The following software must be installed:</p>
 <ul>
 <li>
@@ -374,13 +375,13 @@ $(document).ready(function () {
 <ul>
 <li>If you will be using FOP to process SVG, you must do so in a graphical environment. See <a href="graphics.html#batik">FOP: Graphics (Batik)</a> for details.</li>
 </ul>
-<h1 id="installation-wzxhzdk4wzxhzdk5">Installation  <a id="install"></a></h1>
-<h2 id="instructions-wzxhzdk6wzxhzdk7">Instructions # <a id="install-instruct"></a></h2>
+<h2 id="installation-wzxhzdk5wzxhzdk6">Installation  <a id="install"></a></h2>
+<h3 id="instructions-wzxhzdk7wzxhzdk8">Instructions # <a id="install-instruct"></a></h3>
 <p>Basic FOP installation consists of first unzipping the <code>.gz</code> file that is the distribution medium, then unarchiving the resulting <code>.tar</code> file in a directory/folder that is convenient on your system. Please consult your operating system documentation or Zip application software documentation for instructions specific to your site.</p>
-<h2 id="problems-wzxhzdk8wzxhzdk9">Problems # <a id="install-problems"></a></h2>
+<h3 id="problems-wzxhzdk9wzxhzdk10">Problems # <a id="install-problems"></a></h3>
 <p>Some Mac OSX users have experienced filename truncation problems using Stuffit to unzip and unarchive their distribution media. This is a legacy of older Mac operating systems, which had a 31-character pathname limit. Several Mac OSX users have recommended that Mac OSX users use the shell command <code>tar -xzf</code> instead.</p>
-<h1 id="starting-fop-as-a-standalone-application-wzxhzdk10wzxhzdk11">Starting FOP as a Standalone Application  <a id="standalone-start"></a></h1>
-<h2 id="using-the-fop-script-or-batch-file-wzxhzdk12wzxhzdk13">Using the fop script or batch file # <a id="fop-script"></a></h2>
+<h2 id="starting-fop-as-a-standalone-application-wzxhzdk11wzxhzdk12">Starting FOP as a Standalone Application  <a id="standalone-start"></a></h2>
+<h3 id="using-the-fop-script-or-batch-file-wzxhzdk13wzxhzdk14">Using the fop script or batch file # <a id="fop-script"></a></h3>
 <p>The usual and recommended practice for starting FOP from the command line is to run the batch file fop.bat (Windows) or the shell script fop (Unix/Linux). These scripts require that the environment variable JAVA_HOME be set to a path pointing to the appropriate Java installation on your system. Macintosh OSX includes a Java environment as part of its distribution. We are told by Mac OSX users that the path to use in this case is <code>/Library/Java/Home</code> . <strong>Caveat:</strong> We suspect that, as Apple releases new Java environments and as FOP upgrades the minimum Java requirements, the two will inevitably not match on some systems. Please see <a href="http://developer.apple.com/java/faq">Java on Mac OSX FAQ</a> for information as it becomes available.</p>
 <p>USAGE
 Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>
@@ -459,20 +460,20 @@ Fop [options] [-fo|-xml] infile [-xsl fi
   fop foo.fo -print
   fop foo.fo -awt
 PDF encryption is only available if FOP was compiled with encryption support <strong>and</strong> if compatible encryption support is available at run time. Currently, only the JCE is supported. Check the <a href="pdfencryption.html">Details</a> .</p>
-<h2 id="writing-your-own-script-wzxhzdk17wzxhzdk18">Writing your own script # <a id="your-own-script"></a></h2>
+<h3 id="writing-your-own-script-wzxhzdk18wzxhzdk19">Writing your own script # <a id="your-own-script"></a></h3>
 <p>FOP's entry point for your own scripts is the class <code>org.apache.fop.cli.Main</code> . The general pattern for the command line is: <code>java -classpath &lt;CLASSPATH&gt;
         org.apache.fop.cli.Main &lt;arguments&gt;</code> . The arguments consist of the options and infile and outfile specifications as shown above for the standard scripts. You may wish to review the standard scripts to make sure that you get your environment properly configured.</p>
-<h2 id="running-with-javas-jar-option-wzxhzdk19wzxhzdk20">Running with java's -jar option # <a id="jar-option"></a></h2>
+<h3 id="running-with-javas-jar-option-wzxhzdk20wzxhzdk21">Running with java's -jar option # <a id="jar-option"></a></h3>
 <p>As an alternative to the start scripts you can run <code>java
         -jar path/to/build/fop.jar &lt;arguments&gt;</code> , relying on FOP to build the classpath for running FOP dynamically, see <a href="#dynamical-classpath">below</a> . If you use hyphenation, you must put <code>fop-hyph.jar</code> in the <code>lib</code> directory.</p>
 <p>You can also run <code>java -jar path/to/fop.jar
       &lt;arguments&gt;</code> , relying on the <code>Class-Path</code> entry in the manifest file. This works if you put <code>fop.jar</code> and all jar files from the <code>lib</code> directory in a single directory. If you use hyphenation, you must also put <code>fop-hyph.jar</code> in that directory.</p>
 <p>In both cases the arguments consist of the options and infile and outfile specifications as shown above for the standard scripts.</p>
-<h2 id="fops-dynamical-classpath-construction-wzxhzdk21wzxhzdk22">FOP's dynamical classpath construction # <a id="dynamical-classpath"></a></h2>
+<h3 id="fops-dynamical-classpath-construction-wzxhzdk22wzxhzdk23">FOP's dynamical classpath construction # <a id="dynamical-classpath"></a></h3>
 <p>If FOP is started without a proper classpath, it tries to add its dependencies dynamically. If the system property <code>fop.home</code> contains the name of a directory, then FOP uses that directory as the base directory for its search. Otherwise the current working directory is the base directory. If the base directory is called <code>build</code> , then its parent directory becomes the base directory.</p>
 <p>FOP expects to find <code>fop.jar</code> in the <code>build</code> subdirectory of the base directory, and adds it to the classpath. Subsequently FOP adds all <code>jar</code> files in the lib directory to the classpath. The lib directory is either the <code>lib</code> subdirectory of the base directory, or, if that does not exist, the base directory itself.</p>
 <p>If the system property <code>fop.optional.lib</code> contains the name of a directory, then all <code>jar</code> files in that directory are also added to the classpath. See the methods <code>getJARList</code> and <code>checkDependencies</code> in <code>org.apache.fop.cli.Main</code> .</p>
-<h1 id="using-xalan-to-check-xsl-fo-input-wzxhzdk23wzxhzdk24">Using Xalan to Check XSL-FO Input  <a id="check-input"></a></h1>
+<h2 id="using-xalan-to-check-xsl-fo-input-wzxhzdk24wzxhzdk25">Using Xalan to Check XSL-FO Input  <a id="check-input"></a></h2>
 <p>FOP sessions that use -xml and -xsl input instead of -fo input are actually controlling two distinct conversions: Tranforming XML to XSL-FO, then formatting the XSL-FO to PDF (or another FOP output format). Although FOP controls both of these processes, the first is included merely as a convenience and for performance reasons. Only the second is part of FOP's core processing. If a user has a problem running FOP, it is important to determine which of these two processes is causing the problem. If the problem is in the first process, the user's stylesheet is likely the cause. The FOP development team does not have resources to help with stylesheet issues, although we have included links to some useful <a href="../resources.html#specs">Specifications</a> and <a href="../resources.html#articles">Books/Articles</a> . If the problem is in the second process, FOP may have a bug or an unimplemented feature that does require attention from the FOP development team.
 The user is always responsible to provide correct XSL-FO code to FOP.
 In the case of using -xml and -xsl input, although the user is responsible for the XSL-FO code that is FOP's input, it is not visible to the user. To make the intermediate FO file visible, the FOP distribution includes the "-foout" option which causes FOP to run only the first (transformation) step, and write the results to a file. (See also the Xalan command-line below)
@@ -480,7 +481,7 @@ When asking for help on the FOP mailing 
 The -foout option works the same way as if you would call the <a href="http://xml.apache.org/xalan-j/commandline.html">Xalan command-line</a> :</p>
 <p><code>java org.apache.xalan.xslt.Process -IN xmlfile -XSL file -OUT outfile</code> </p>
 <p>Note that there are some subtle differences between the FOP and Xalan command-lines.</p>
-<h1 id="memory-usage-wzxhzdk25wzxhzdk26">Memory Usage  <a id="memory"></a></h1>
+<h2 id="memory-usage-wzxhzdk26wzxhzdk27">Memory Usage  <a id="memory"></a></h2>
 <p>FOP can consume quite a bit of memory, even though this has been continually improved. This is partly inherent to the formatting process and partly caused by implementation choices. All FO processors currently on the market have memory problems with certain layouts.</p>
 <p>If you are running out of memory when using FOP, here are some ideas that may help:</p>
 <ul>
@@ -497,7 +498,7 @@ The -foout option works the same way as 
 <p>Use multiple page sequences. FOP starts rendering after the end of a page sequence is encountered. While the actual rendering is done page-by-page, some additional memory is freed after the page sequence has been rendered. This can be substantial if the page sequence contains lots of FO elements.</p>
 </li>
 </ul>
-<h1 id="problems-wzxhzdk27wzxhzdk28">Problems  <a id="problems"></a></h1>
+<h2 id="problems-wzxhzdk28wzxhzdk29">Problems  <a id="problems"></a></h2>
 <p>If you have problems running FOP, please see the <a href="../gethelp.html">"How to get Help" page</a> .</p></div>
       </div>
       



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


Mime
View raw message