xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840560 [12/16] - in /websites/staging/xmlgraphics/trunk/content: ./ fop/0.95/ fop/1.0/ fop/1.1/ fop/trunk/
Date Mon, 03 Dec 2012 15:47:54 GMT
Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/graphics.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/graphics.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/graphics.html Mon Dec  3 15:47:41 2012
@@ -363,64 +363,74 @@ $(document).ready(function () {
 <tr>
 <th>Format</th>
 <th>Type</th>
-<th>Support Through</th>
+<th align="center">Support Through <a href="#native">Apache FOP (native)</a></th>
+<th align="center">Support Through <a href="#batik">Apache Batik</a></th>
+<th align="center">Support Through <a href="#imageio">Image I/O</a></th>
 </tr>
 </thead>
 <tbody>
 <tr>
-<td><a href="#native">Apache FOP (native)</a></td>
-<td><a href="#batik">Apache Batik</a></td>
-<td><a href="#imageio">Image I/O</a></td>
-</tr>
-<tr>
-<td>---------------------</td>
-<td>--------------</td>
-<td>-----------</td>
-</tr>
-<tr>
 <td><a href="#bmp">BMP</a> (Microsoft Windows Bitmap)</td>
 <td>bitmap</td>
-<td></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center">X [1]</td>
 </tr>
 <tr>
 <td><a href="#emf">EMF</a> (Windows Enhanced Metafile)</td>
 <td>vector (with embedded bitmaps)</td>
-<td>(X)</td>
+<td align="center">(X)</td>
+<td align="center"></td>
+<td align="center"></td>
 </tr>
 <tr>
 <td><a href="#eps">EPS</a> (Encapsulated PostScript)</td>
 <td>metafile (both bitmap and vector), most frequently used for vector drawings</td>
-<td>(X)</td>
+<td align="center">(X)</td>
+<td align="center"></td>
+<td align="center"></td>
 </tr>
 <tr>
 <td>GIF (Graphics Interchange Format)</td>
 <td>bitmap</td>
-<td></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#jpeg">JPEG</a> (Joint Photographic Experts Group)</td>
 <td>bitmap</td>
-<td>(X)</td>
+<td align="center">(X)</td>
+<td align="center"></td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#png">PNG</a> (Portable Network Graphic)</td>
 <td>bitmap</td>
-<td></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#svg">SVG</a> (Scalable Vector Graphics)</td>
 <td>vector (with embedded bitmaps)</td>
-<td></td>
+<td align="center"></td>
+<td align="center">X</td>
+<td align="center"></td>
 </tr>
 <tr>
 <td><a href="#tiff">TIFF</a> (Tag Image Format File)</td>
 <td>bitmap</td>
-<td>(X)</td>
+<td align="center">(X)</td>
+<td align="center"></td>
+<td align="center">X [1]</td>
 </tr>
 <tr>
 <td><a href="#wmf">WMF</a> (Windows Metafile)</td>
 <td>vector (with embedded bitmaps)</td>
-<td></td>
+<td align="center"></td>
+<td align="center">(X)</td>
+<td align="center"></td>
 </tr>
 </tbody>
 </table>
@@ -434,101 +444,101 @@ $(document).ready(function () {
  <a href="http://jai-imageio.dev.java.net/">JAI Image I/O Tools</a> is not the same as the <a href="http://java.sun.com/javase/technologies/desktop/media/jai/">JAI library</a> ! The former simply exposes JAI's codecs using the Image&nbsp;I/O API but does not include all the image manipulation functionality.</p>
 </li>
 </ul>
-<h2 id="map-of-supported-image-formats-by-output-format-wzxhzdk5wzxhzdk6">Map of supported image formats by output format <a id="format-map"></a></h2>
+<h3 id="map-of-supported-image-formats-by-output-format-wzxhzdk5wzxhzdk6">Map of supported image formats by output format <a id="format-map"></a></h3>
 <p>Not all image formats are supported for all output formats! For example, while you can use EPS (Encapsulated PostScript) files when you generate PostScript output, this format will not be supported by any other output format. Here's an overview of which image formats are supported by which output format:</p>
 <table>
 <thead>
 <tr>
 <th>Image Format</th>
-<th>PDF</th>
-<th>PostScript</th>
-<th>Java2D, PNG, TIFF, AWT</th>
-<th>PCL</th>
-<th>AFP</th>
-<th>RTF</th>
+<th align="center">PDF</th>
+<th align="center">PostScript</th>
+<th align="center">Java2D, PNG, TIFF, AWT</th>
+<th align="center">PCL</th>
+<th align="center">AFP</th>
+<th align="center">RTF</th>
 </tr>
 </thead>
 <tbody>
 <tr>
 <td><a href="#bmp">BMP</a> (Microsoft Windows Bitmap)</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#emf">EMF</a> (Windows Enhanced Metafile)</td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td>X [1]</td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center">X [1]</td>
 </tr>
 <tr>
 <td><a href="#eps">EPS</a> (Encapsulated PostScript)</td>
-<td></td>
-<td>X [1]</td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
+<td align="center"></td>
+<td align="center">X [1]</td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center"></td>
+<td align="center"></td>
 </tr>
 <tr>
 <td>GIF (Graphics Interchange Format)</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#jpeg">JPEG</a> (Joint Photographic Experts Group)</td>
-<td>X [1]</td>
-<td>X [1]</td>
-<td>X</td>
-<td>X</td>
-<td>X [1]</td>
-<td>X</td>
+<td align="center">X [1]</td>
+<td align="center">X [1]</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X [1]</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#png">PNG</a> (Portable Network Graphic)</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#svg">SVG</a> (Scalable Vector Graphics)</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#tiff">TIFF</a> (Tag Image Format File)</td>
-<td>X [2]</td>
-<td>X [2]</td>
-<td>X</td>
-<td>X</td>
-<td>X [2]</td>
-<td>X</td>
+<td align="center">X [2]</td>
+<td align="center">X [2]</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X [2]</td>
+<td align="center">X</td>
 </tr>
 <tr>
 <td><a href="#wmf">WMF</a> (Windows Metafile)</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
-<td>X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
+<td align="center">X</td>
 </tr>
 </tbody>
 </table>
@@ -580,24 +590,24 @@ Batik must be run in a graphical environ
 <h3 id="png-wzxhzdk33wzxhzdk34">PNG <a id="png"></a></h3>
 <p>PNG images are supported through an Image&nbsp;I/O codec. Transparency is supported but not guaranteed to work with every output format.</p>
 <h3 id="svg-wzxhzdk36wzxhzdk37">SVG <a id="svg"></a></h3>
-<h4 id="introduction-wzxhzdk38wzxhzdk39">Introduction ## <a id="svg-intro"></a></h4>
+<h4 id="introductionwzxhzdk38wzxhzdk39">Introduction<a id="svg-intro"></a></h4>
 <p>FOP uses <a href="#batik">Apache Batik</a> for SVG support. This format can be handled as an <code>fo:instream-foreign-object</code> or in a separate file referenced with <code>fo:external-graphic</code> .
 Batik's SVG Rasterizer utility may also be used to convert standalone SVG documents into PDF. For more information please see the <a href="http://xmlgraphics.apache.org/batik/svgrasterizer.html">SVG Rasterizer documentation</a> on the Batik site.</p>
-<h3 id="placing-svg-graphics-into-pdf-wzxhzdk40wzxhzdk41">Placing SVG Graphics into PDF ## <a id="svg-pdf-graphics"></a></h3>
+<h4 id="placing-svg-graphics-into-pdfwzxhzdk40wzxhzdk41">Placing SVG Graphics into PDF<a id="svg-pdf-graphics"></a></h4>
 <p>The SVG is rendered into PDF by using PDF commands to draw and fill lines and curves. This means that the graphical objects created with this remain as vector graphics. The same applies to PostScript output. For other output formats the SVG graphic may be converted to a bitmap image.</p>
 <p>There are a number of SVG things that cannot be converted directly into PDF. Parts of the graphic such as effects, patterns and images are inserted into the PDF as a raster graphic. The resolution of these raster images can be controlled through the "target resolution" setting in the <a href="configuration.html">configuration</a> .</p>
 <p>Currently transparency is limited in PDF so some SVG images that contain effects or graphics with transparent areas may not be displayed correctly.</p>
-<h4 id="placing-svg-text-into-pdf-and-postscript-wzxhzdk42wzxhzdk43">Placing SVG Text into PDF and PostScript ## <a id="svg-pdf-text"></a></h4>
+<h4 id="placing-svg-text-into-pdf-and-postscriptwzxhzdk42wzxhzdk43">Placing SVG Text into PDF and PostScript<a id="svg-pdf-text"></a></h4>
 <p>If possible, Batik will use normal PDF or PostScript text when inserting text. It does this by checking if the text can be drawn normally and the font is supported. This example svg <a href="../dev/svg/text.svg">text.svg</a> / <a href="../dev/svg/text.pdf">text.pdf</a> / <a href="../dev/svg/text.png">text.png</a> shows how various types and effects with text are handled. Note that SVG font support is not yet implemented. Furthermore, text handling in PostScript output is inferior to PDF output - more text will be painted as shapes in PS than in PDF.</p>
 <p>When there's no support to paint text using native text operations, text is converted and drawn as a set of shapes by Batik, using the stroking text painter. This means that a typical character will have about 10 curves (each curve consists of at least 20 characters). This can make the output files large and when it is viewed the viewer may not normally draw those fine curves very well (In Adobe Acrobat, turning on "Smooth Line Art" in the preferences will fix this). Copy/paste functionality will not be supported in this case. If the text is inserted into the output file using the inbuilt text commands it will use a single character.</p>
 <p>Note that because SVG text can be rendered as either text or a vector graphic, you may need to consider settings in your viewer for both. The Acrobat viewer has both "smooth line art" and "smooth text" settings that may need to be set for SVG images to be displayed nicely on your screen (see Edit / Preferences / Display). This setting will not affect the printing of your document, which should be OK in any case, but will only affect the quality of the screen display.</p>
-<h4 id="font-selection-notes-wzxhzdk44wzxhzdk45">Font selection notes ## <a id="svg-font-selection"></a></h4>
+<h4 id="font-selection-noteswzxhzdk44wzxhzdk45">Font selection notes<a id="svg-font-selection"></a></h4>
 <p>Apache Batik uses the AWT/Java2D subsystem as font source while FOP has its own font subsystem. Great care has been taken that font selection does the best possible choices. But it must be noted when creating PDF or PostScript that a font used in SVG graphics needs to be registered with the operating system as well as in FOP's configuration. By using FOP's font auto-detection, you simply have to install the font in the operating system and not care about anything else. This is less of an issue if you create formats like TIFFs, PNGs or PCL because in these cases SVG graphics are usually rendered to bitmaps which means that on both sides (Batik and FOP), AWT/Java2D is used as the single font source.</p>
 <p>Whenever an SVG is converted into a PDF or PostScript file, the font that has been used inside Batik has to be mapped to a font used by the actual output format. Features like font substitution in FOP may need to be taken into account but can also be an advantage when working around font mapping issues. Like for XSL-FO content, you'll get a warning if a particular font could not be found and had to be substituted, or if a particular glyph is missing in a font.</p>
-<h4 id="scaling-wzxhzdk46wzxhzdk47">Scaling ## <a id="svg-scaling"></a></h4>
+<h4 id="scalingwzxhzdk46wzxhzdk47">Scaling<a id="svg-scaling"></a></h4>
 <p>Currently, SVG images are rendered with the dimensions specified <em>in the SVG file</em> , within the viewport specified in the fo:external-graphic element. For everything to work properly, the two should be equal. The SVG standard leaves this issue as an implementation detail. Additional scaling options are available through XSL-FO means.</p>
 <p>If you use pixels to specify the size of an SVG graphic the "source resolution" setting in the <a href="configuration.html">configuration</a> will be used to determine the size of a pixel. The use of pixels to specify sizes is discouraged as they may be interpreted differently in different environments.</p>
-<h4 id="known-problems-wzxhzdk48wzxhzdk49">Known Problems ## <a id="svg-problems"></a></h4>
+<h4 id="known-problemswzxhzdk48wzxhzdk49">Known Problems<a id="svg-problems"></a></h4>
 <ul>
 <li>
 <p>Soft mask transparency is combined with white so that it looks better on PDF 1.3 viewers but this causes the soft mask to be slightly lighter or darker on PDF 1.4 viewers.</p>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/hyphenation.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/hyphenation.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/hyphenation.html Mon Dec  3 15:47:41 2012
@@ -347,11 +347,11 @@ $(document).ready(function () {
 <p>Apache&trade; FOP uses Liang's hyphenation algorithm, well known from TeX. It needs language specific pattern and other data for operation.</p>
 <p>Because of <a href="#license-issues">licensing issues</a> (and for convenience), all hyphenation patterns for FOP are made available through the <a href="http://offo.sourceforge.net/hyphenation/index.html">Objects For Formatting Objects</a> project.
 If you have made improvements to an existing Apache&trade; FOP hyphenation pattern, or if you have created one from scratch, please consider contributing these to OFFO so that they can benefit other FOP users as well. Please inquire on the <a href="../maillist.html#fop-user">FOP User mailing list</a> .</p>
-<h2 id="license-issues-wzxhzdk7wzxhzdk8">License Issues <a id="license-issues"></a></h2>
+<h3 id="license-issues-wzxhzdk7wzxhzdk8">License Issues <a id="license-issues"></a></h3>
 <p>Many of the hyphenation files distributed with TeX and its offspring are licenced under the <a href="http://www.latex-project.org/lppl.html">LaTeX Project Public License (LPPL)</a> , which prevents them from being distributed with Apache software. The LPPL puts restrictions on file names in redistributed derived works which we feel can't guarantee. Some hyphenation pattern files have other or additional restrictions, for example against use for commercial purposes.</p>
 <p>Although Apache FOP cannot redistribute hyphenation pattern files that do not conform with its license scheme, that does not necessarily prevent users from using such hyphenation patterns with FOP. However, it does place on the user the responsibility for determining whether the user can rightly use such hyphenation patterns under the hyphenation pattern license.
 <warning>The user is responsible to settle license issues for hyphenation pattern files that are obtained from non-Apache sources.</warning></p>
-<h2 id="sources-of-custom-hyphenation-pattern-files-wzxhzdk11wzxhzdk12">Sources of Custom Hyphenation Pattern Files <a id="sources"></a></h2>
+<h3 id="sources-of-custom-hyphenation-pattern-files-wzxhzdk11wzxhzdk12">Sources of Custom Hyphenation Pattern Files <a id="sources"></a></h3>
 <p>The most important source of hyphenation pattern files is the <a href="http://www.ctan.org/tex-archive/language/hyphenation/">CTAN TeX Archive</a> .</p>
 <h3 id="installing-custom-hyphenation-patterns-wzxhzdk13wzxhzdk14">Installing Custom Hyphenation Patterns <a id="install"></a></h3>
 <p>To install a custom hyphenation pattern for use with FOP:</p>
@@ -392,7 +392,7 @@ and run Ant with build target <code>jar-
 </li>
 </ol>
 <p><warning>Either of these three options will ensure hyphenation is working when using FOP from the command-line. If FOP is being embedded, remember to add the location(s) of the hyphenation JAR(s) to the CLASSPATH (option 1 and 2) or to set the <a href="configuration.html#hyphenation-dir"><hyphenation-dir></a> configuration option programmatically (option 3).</warning></p>
-<h1 id="hyphenation-patterns-wzxhzdk18wzxhzdk19">Hyphenation Patterns <a id="patterns"></a></h1>
+<h2 id="hyphenation-patterns-wzxhzdk18wzxhzdk19">Hyphenation Patterns <a id="patterns"></a></h2>
 <p>If you would like to build your own hyphenation pattern files, or modify existing ones, this section will help you understand how to do so. Even when creating a pattern file from scratch, it may be beneficial to start with an existing file and modify it. See <a href="http://offo.sourceforge.net/hyphenation/index.html">OFFO's Hyphenation page</a> for examples. Here is a brief explanation of the contents of FOP's hyphenation patterns:
 <warning>The remaining content of this section should be considered "draft" quality. It was drafted from theoretical literature, and has not been tested against actual FOP behavior. It may contain errors or omissions. Do not rely on these instructions without testing everything stated here. If you use these instructions, please provide feedback on the <a href="../maillist.html#fop-user">FOP User mailing list</a> , either confirming their accuracy, or raising specific problems that we can address.</warning></p>
 <ul>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/intermediate.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/intermediate.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/intermediate.html Mon Dec  3 15:47:41 2012
@@ -342,14 +342,14 @@ $(document).ready(function () {
         </div>
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><h1 id="apachewzxhzdk2-fop-intermediate-format">Apache&trade; FOP: Intermediate Format</h1>
-<p>Please note that the intermediate formats described here are <strong>advanced features</strong> and can be ignored by most users of Apache FOP.</p>
-<h1 id="introduction-wzxhzdk3wzxhzdk4">Introduction <a id="introduction"></a></h1>
+<p>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>
+<h2 id="introduction-wzxhzdk4wzxhzdk5">Introduction <a id="introduction"></a></h2>
 <p>Apache&trade; 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>
-<h2 id="which-intermediate-format-to-choose-wzxhzdk6wzxhzdk7">Which Intermediate Format to choose? <a id="which-if"></a></h2>
+<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>
-<h3 id="area-tree-xml-at-xml-wzxhzdk8wzxhzdk9">Area Tree XML (AT XML) <a id="strengths-at"></a></h3>
+<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>
@@ -361,7 +361,7 @@ $(document).ready(function () {
 <p>Used in FOP's layout engine test suite for regression testing.</p>
 </li>
 </ul>
-<h3 id="intermediate-format-if-wzxhzdk10wzxhzdk11">Intermediate Format (IF) <a id="strengths-if"></a></h3>
+<h3 id="intermediate-format-if-wzxhzdk11wzxhzdk12">Intermediate Format (IF) <a id="strengths-if"></a></h3>
 <ul>
 <li>
 <p>Highly optimized for speed.</p>
@@ -380,49 +380,50 @@ $(document).ready(function () {
 </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>
-<h2 id="architectural-overview-wzxhzdk12wzxhzdk13">Architectural Overview <a id="architecture"></a></h2>
+<h2 id="architectural-overview-wzxhzdk13wzxhzdk14">Architectural Overview <a id="architecture"></a></h2>
 <p><img alt="Diagram with an architectural overview over the intermediate formats" src="images/if-architecture-overview.png" /></p>
-<h1 id="usage-of-the-area-tree-xml-format-at-xml-wzxhzdk14wzxhzdk15">Usage of the Area Tree XML format (AT XML) <a id="usage"></a></h1>
+<h2 id="usage-of-the-area-tree-xml-format-at-xml-wzxhzdk15wzxhzdk16">Usage of the Area Tree XML format (AT XML) <a id="usage"></a></h2>
 <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>
 <p>However, there is an important detail to consider: The various Renderers don't all use the same font sources. To be able to create the right area tree for the ultimate output format, you need to create the area tree XML file using the right font setup. This is achieved by telling the XMLRenderer to mimic another renderer. This is done by calling the XMLRenderer's mimicRenderer() method with an instance of the ultimate target renderer as the single parameter. This has a consequence: An area tree XML file rendered with the Java2DRenderer may not look as expected when it was actually generated for the PDF renderer. For renderers that use the same font setup, this restriction does not apply (PDF and PS, for example). Generating the area tree XML format file is the first step.</p>
 <p>The second step is to reparse the file using the <strong>AreaTreeParser</strong> which is found in the org.apache.fop.area package. The pages retrieved from the area tree XML file are added to an AreaTreeModel instance from where they are normally rendered using one of the available Renderer implementations. You can find examples for the area tree XML processing in the <a href="http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/">http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/</a> directory in the FOP distribution.</p>
 <p>The basic pattern to parse the area tree XML format looks like this:</p>
-<p>FopFactory fopFactory = FopFactory.newInstance();    <br />
-</p>
-<p>// Setup output
-OutputStream out = new java.io.FileOutputStream(pdffile);
-out = new java.io.BufferedOutputStream(out);
-try {
-    //Setup fonts and user agent
-    FontInfo fontInfo = new FontInfo();
-    FOUserAgent userAgent = fopFactory.newFOUserAgent();</p>
-<div class="codehilite"><pre><span class="sr">//</span><span class="n">Construct</span> <span class="n">the</span> <span class="n">AreaTreeModel</span> <span class="n">that</span> <span class="n">will</span> <span class="n">received</span> <span class="n">the</span> <span class="n">individual</span> <span class="n">pages</span>
-<span class="n">AreaTreeModel</span> <span class="n">treeModel</span> <span class="o">=</span> <span class="k">new</span> <span class="n">RenderPagesModel</span><span class="p">(</span><span class="n">userAgent</span><span class="p">,</span> 
-        <span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">,</span> <span class="n">fontInfo</span><span class="p">,</span> <span class="n">out</span><span class="p">);</span>
-
-<span class="sr">//</span><span class="n">Parse</span> <span class="n">the</span> <span class="n">area</span> <span class="n">tree</span> <span class="n">file</span> <span class="n">into</span> <span class="n">the</span> <span class="n">area</span> <span class="n">tree</span>
-<span class="n">AreaTreeParser</span> <span class="n">parser</span> <span class="o">=</span> <span class="k">new</span> <span class="n">AreaTreeParser</span><span class="p">();</span>
-<span class="n">Source</span> <span class="n">src</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="n">myIFFile</span><span class="p">);</span>
-<span class="n">parser</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">src</span><span class="p">,</span> <span class="n">treeModel</span><span class="p">,</span> <span class="n">userAgent</span><span class="p">);</span>
+<div class="codehilite"><pre><span class="n">FopFactory</span> <span class="n">fopFactory</span> <span class="o">=</span> <span class="n">FopFactory</span><span class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
 
-<span class="sr">//</span><span class="n">Signal</span> <span class="n">the</span> <span class="n">end</span> <span class="n">of</span> <span class="n">the</span> <span class="n">processing</span><span class="o">.</span> <span class="n">The</span> <span class="n">renderer</span> <span class="n">can</span> <span class="n">finalize</span> <span class="n">the</span> <span class="n">target</span> <span class="n">document</span><span class="o">.</span>
-<span class="n">treeModel</span><span class="o">.</span><span class="n">endDocument</span><span class="p">();</span>
+<span class="sr">//</span> <span class="n">Setup</span> <span class="n">output</span>
+<span class="n">OutputStream</span> <span class="n">out</span> <span class="o">=</span> <span class="k">new</span> <span class="n">java</span><span class="o">.</span><span class="n">io</span><span class="o">.</span><span class="n">FileOutputStream</span><span class="p">(</span><span class="n">pdffile</span><span class="p">);</span>
+<span class="n">out</span> <span class="o">=</span> <span class="k">new</span> <span class="n">java</span><span class="o">.</span><span class="n">io</span><span class="o">.</span><span class="n">BufferedOutputStream</span><span class="p">(</span><span class="n">out</span><span class="p">);</span>
+<span class="n">try</span> <span class="p">{</span>
+    <span class="sr">//</span><span class="n">Setup</span> <span class="n">fonts</span> <span class="ow">and</span> <span class="n">user</span> <span class="n">agent</span>
+    <span class="n">FontInfo</span> <span class="n">fontInfo</span> <span class="o">=</span> <span class="k">new</span> <span class="n">FontInfo</span><span class="p">();</span>
+    <span class="n">FOUserAgent</span> <span class="n">userAgent</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">newFOUserAgent</span><span class="p">();</span>
+
+    <span class="sr">//</span><span class="n">Construct</span> <span class="n">the</span> <span class="n">AreaTreeModel</span> <span class="n">that</span> <span class="n">will</span> <span class="n">received</span> <span class="n">the</span> <span class="n">individual</span> <span class="n">pages</span>
+    <span class="n">AreaTreeModel</span> <span class="n">treeModel</span> <span class="o">=</span> <span class="k">new</span> <span class="n">RenderPagesModel</span><span class="p">(</span><span class="n">userAgent</span><span class="p">,</span> 
+            <span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">,</span> <span class="n">fontInfo</span><span class="p">,</span> <span class="n">out</span><span class="p">);</span>
+
+    <span class="sr">//</span><span class="n">Parse</span> <span class="n">the</span> <span class="n">area</span> <span class="n">tree</span> <span class="n">file</span> <span class="n">into</span> <span class="n">the</span> <span class="n">area</span> <span class="n">tree</span>
+    <span class="n">AreaTreeParser</span> <span class="n">parser</span> <span class="o">=</span> <span class="k">new</span> <span class="n">AreaTreeParser</span><span class="p">();</span>
+    <span class="n">Source</span> <span class="n">src</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="n">myIFFile</span><span class="p">);</span>
+    <span class="n">parser</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">src</span><span class="p">,</span> <span class="n">treeModel</span><span class="p">,</span> <span class="n">userAgent</span><span class="p">);</span>
+
+    <span class="sr">//</span><span class="n">Signal</span> <span class="n">the</span> <span class="n">end</span> <span class="n">of</span> <span class="n">the</span> <span class="n">processing</span><span class="o">.</span> <span class="n">The</span> <span class="n">renderer</span> <span class="n">can</span> <span class="n">finalize</span> <span class="n">the</span> <span class="n">target</span> <span class="n">document</span><span class="o">.</span>
+    <span class="n">treeModel</span><span class="o">.</span><span class="n">endDocument</span><span class="p">();</span>
+<span class="p">}</span> <span class="n">finally</span> <span class="p">{</span>
+    <span class="n">out</span><span class="o">.</span><span class="nb">close</span><span class="p">();</span>
+<span class="p">}</span>
 </pre></div>
 
 
-<p>} finally {
-    out.close();
-}
-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>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>
-<h3 id="concatenating-documents-wzxhzdk16wzxhzdk17">Concatenating Documents <a id="concat"></a></h3>
+<h3 id="concatenating-documents-wzxhzdk17wzxhzdk18">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>
-<h3 id="modifying-documents-wzxhzdk18wzxhzdk19">Modifying Documents <a id="modifying"></a></h3>
+<h3 id="modifying-documents-wzxhzdk19wzxhzdk20">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-wzxhzdk20wzxhzdk21">Advanced Use <a id="advanced"></a></h2>
+<h3 id="advanced-use-wzxhzdk21wzxhzdk22">Advanced Use <a id="advanced"></a></h3>
 <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>
-<h2 id="usage-of-the-intermediate-format-if-wzxhzdk22wzxhzdk23">Usage of the Intermediate Format (IF) <a id="usage-if"></a></h2>
+<h2 id="usage-of-the-intermediate-format-if-wzxhzdk23wzxhzdk24">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>
@@ -436,43 +437,46 @@ The area tree XML format is sensitive to
 <p>As with the AT XML, there is an important detail to consider: The various output implementations don't all use the same font sources. To be able to create the right IF for the ultimate output file, you need to create the IF file using the right font setup. This is achieved by telling the IFRenderer (responsible for converting the area tree into calls to the IFDocumentHandler and IFPainter interfaces) to mimic another renderer. This is done by calling the IFSerializer's mimicDocumentHandler() method with an instance of the ultimate target document handler as the single parameter. This has a consequence: An IF file rendered with the Java2DDocumentHandler may not look as expected when it was actually generated for the PDF implementation. For implementations that use the same font setup, this restriction does not apply (PDF and PS, for example). Generating the Intermediate Format file is the first step.</p>
 <p>The second step is to reparse the file using the <strong>IFParser</strong> which is found in the org.apache.fop.render.intermediate package. The IFParser simply takes an IFDocumentHandler instance against which it generates the appropriate calls. The IFParser is implemented as a SAX ContentHandler so you're free to choose the method for post-processing the IF file(s). You can use XSLT or write SAX- or DOM-based code to manipulate the contents. You can find examples for the Intermediate Format processing in the <a href="http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/">http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/</a> directory in the FOP distribution.</p>
 <p>The basic pattern to parse the intermediate format looks like this:</p>
-<p>FopFactory fopFactory = FopFactory.newInstance();</p>
-<p>// Setup output
-OutputStream out = new java.io.FileOutputStream(pdffile);
-out = new java.io.BufferedOutputStream(out);
-try {
-    //Setup user agent
-    FOUserAgent userAgent = fopFactory.newFOUserAgent();</p>
-<div class="codehilite"><pre><span class="sr">//</span><span class="n">Create</span> <span class="n">IFDocumentHandler</span> <span class="n">instance</span>
-<span class="n">IFDocumentHandler</span> <span class="n">targetHandler</span><span class="p">;</span>
-<span class="n">String</span> <span class="n">mime</span> <span class="o">=</span> <span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">;</span>
-<span class="n">targetHandler</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">getRendererFactory</span><span class="p">()</span><span class="o">.</span><span class="n">createDocumentHandler</span><span class="p">(</span>
-        <span class="n">userAgent</span><span class="p">,</span> <span class="n">mime</span><span class="p">);</span>
-
-<span class="sr">//</span><span class="n">Setup</span> <span class="n">fonts</span>
-<span class="n">IFUtil</span><span class="o">.</span><span class="n">setupFonts</span><span class="p">(</span><span class="n">targetHandler</span><span class="p">);</span>
-
-<span class="sr">//</span><span class="n">Tell</span> <span class="n">the</span> <span class="n">target</span> <span class="n">handler</span> <span class="n">where</span> <span class="n">to</span> <span class="nb">write</span> <span class="n">the</span> <span class="n">PDF</span> <span class="n">to</span>
-<span class="n">targetHandler</span><span class="o">.</span><span class="n">setResult</span><span class="p">(</span><span class="k">new</span> <span class="n">StreamResult</span><span class="p">(</span><span class="n">pdffile</span><span class="p">));</span>
-
-<span class="sr">//</span><span class="n">Parse</span> <span class="n">the</span> <span class="n">IF</span> <span class="n">file</span>
-<span class="n">IFParser</span> <span class="n">parser</span> <span class="o">=</span> <span class="k">new</span> <span class="n">IFParser</span><span class="p">();</span>
-<span class="n">Source</span> <span class="n">src</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="n">myIFFile</span><span class="p">);</span>
-<span class="n">parser</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">src</span><span class="p">,</span> <span class="n">targetHandler</span><span class="p">,</span> <span class="n">userAgent</span><span class="p">);</span>
+<div class="codehilite"><pre><span class="n">FopFactory</span> <span class="n">fopFactory</span> <span class="o">=</span> <span class="n">FopFactory</span><span class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
+
+<span class="sr">//</span> <span class="n">Setup</span> <span class="n">output</span>
+<span class="n">OutputStream</span> <span class="n">out</span> <span class="o">=</span> <span class="k">new</span> <span class="n">java</span><span class="o">.</span><span class="n">io</span><span class="o">.</span><span class="n">FileOutputStream</span><span class="p">(</span><span class="n">pdffile</span><span class="p">);</span>
+<span class="n">out</span> <span class="o">=</span> <span class="k">new</span> <span class="n">java</span><span class="o">.</span><span class="n">io</span><span class="o">.</span><span class="n">BufferedOutputStream</span><span class="p">(</span><span class="n">out</span><span class="p">);</span>
+<span class="n">try</span> <span class="p">{</span>
+    <span class="sr">//</span><span class="n">Setup</span> <span class="n">user</span> <span class="n">agent</span>
+    <span class="n">FOUserAgent</span> <span class="n">userAgent</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">newFOUserAgent</span><span class="p">();</span>
+
+    <span class="sr">//</span><span class="n">Create</span> <span class="n">IFDocumentHandler</span> <span class="n">instance</span>
+    <span class="n">IFDocumentHandler</span> <span class="n">targetHandler</span><span class="p">;</span>
+    <span class="n">String</span> <span class="n">mime</span> <span class="o">=</span> <span class="n">MimeConstants</span><span class="o">.</span><span class="n">MIME_PDF</span><span class="p">;</span>
+    <span class="n">targetHandler</span> <span class="o">=</span> <span class="n">fopFactory</span><span class="o">.</span><span class="n">getRendererFactory</span><span class="p">()</span><span class="o">.</span><span class="n">createDocumentHandler</span><span class="p">(</span>
+            <span class="n">userAgent</span><span class="p">,</span> <span class="n">mime</span><span class="p">);</span>
+
+    <span class="sr">//</span><span class="n">Setup</span> <span class="n">fonts</span>
+    <span class="n">IFUtil</span><span class="o">.</span><span class="n">setupFonts</span><span class="p">(</span><span class="n">targetHandler</span><span class="p">);</span>
+
+    <span class="sr">//</span><span class="n">Tell</span> <span class="n">the</span> <span class="n">target</span> <span class="n">handler</span> <span class="n">where</span> <span class="n">to</span> <span class="nb">write</span> <span class="n">the</span> <span class="n">PDF</span> <span class="n">to</span>
+    <span class="n">targetHandler</span><span class="o">.</span><span class="n">setResult</span><span class="p">(</span><span class="k">new</span> <span class="n">StreamResult</span><span class="p">(</span><span class="n">pdffile</span><span class="p">));</span>
+
+    <span class="sr">//</span><span class="n">Parse</span> <span class="n">the</span> <span class="n">IF</span> <span class="n">file</span>
+    <span class="n">IFParser</span> <span class="n">parser</span> <span class="o">=</span> <span class="k">new</span> <span class="n">IFParser</span><span class="p">();</span>
+    <span class="n">Source</span> <span class="n">src</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StreamSource</span><span class="p">(</span><span class="n">myIFFile</span><span class="p">);</span>
+    <span class="n">parser</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">src</span><span class="p">,</span> <span class="n">targetHandler</span><span class="p">,</span> <span class="n">userAgent</span><span class="p">);</span>
+
+<span class="p">}</span> <span class="n">finally</span> <span class="p">{</span>
+    <span class="n">out</span><span class="o">.</span><span class="nb">close</span><span class="p">();</span>
+<span class="p">}</span>
 </pre></div>
 
 
-<p>} finally {
-    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>
-<h3 id="concatenating-documents-wzxhzdk24wzxhzdk25">Concatenating Documents <a id="concat-if"></a></h3>
+<p>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>
+<h3 id="concatenating-documents-wzxhzdk25wzxhzdk26">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>
-<h3 id="modifying-documents-wzxhzdk26wzxhzdk27">Modifying Documents <a id="modifying-if"></a></h3>
+<h3 id="modifying-documents-wzxhzdk27wzxhzdk28">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>
-<h3 id="advanced-use-wzxhzdk28wzxhzdk29">Advanced Use <a id="advanced-if"></a></h3>
+<h3 id="advanced-use-wzxhzdk29wzxhzdk30">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.1/metadata.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/metadata.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/metadata.html Mon Dec  3 15:47:41 2012
@@ -369,11 +369,12 @@ $(document).ready(function () {
 <span class="s">  &lt;/x:xmpmeta&gt;</span>
 <span class="err">&lt;/fo:declarations&gt;</span>
 <span class="err">&lt;fo:page-sequence</span> <span class="err">...</span>
+<span class="k">[..]</span>
 </pre></div>
 
 
-<p>[..] <code>fo:declarations</code>  <strong>must</strong> be declared after <code>fo:layout-master-set</code> and before the first <code>page-sequence</code> .</p>
-<h1 id="implementation-in-apache-fop-wzxhzdk9wzxhzdk10">Implementation in Apache FOP <a id="xmp-impl-in-fop"></a></h1>
+<p><code>fo:declarations</code>  <strong>must</strong> be declared after <code>fo:layout-master-set</code> and before the first <code>page-sequence</code>.</p>
+<h2 id="implementation-in-apache-fop-wzxhzdk9wzxhzdk10">Implementation in Apache FOP <a id="xmp-impl-in-fop"></a></h2>
 <p>Currently, XMP support is only available for PDF output.</p>
 <p>Originally, you could set some metadata information through FOP's FOUserAgent by using its set*() methods (like setTitle(String) or setAuthor(String). These values are directly used to set value in the PDF Info object. Since PDF 1.4, adding metadata as an XMP document to a PDF is possible. That means that there are now two mechanisms in PDF that hold metadata.</p>
 <p>Apache FOP now synchronizes the Info and the Metadata object in PDF, i.e. when you set the title and the author through the FOUserAgent, the two values will end up in the (old) Info object and in the new Metadata object as XMP content. If instead of FOUserAgent, you embed XMP metadata in the XSL-FO document (as shown above), the XMP metadata will be used as-is in the PDF Metadata object and some values from the XMP metadata will be copied to the Info object to maintain backwards-compatibility for PDF readers that don't support XMP metadata.</p>
@@ -381,61 +382,80 @@ $(document).ready(function () {
 <table>
 <thead>
 <tr>
-<th>Document information dictionary</th>
-<th>XMP</th>
+<th>Document information dictionary<br/>Entry</th>
+<th>PDF type</th>
+<th>XMP Property</th>
+<th>XMP type</th>
+<th>XMP Category</th>
 </tr>
 </thead>
 <tbody>
 <tr>
-<td>Entry</td>
-<td>PDF type</td>
-</tr>
-<tr>
-<td>-------</td>
-<td>----------</td>
-</tr>
-<tr>
 <td>Title</td>
 <td>text string</td>
+<td>dc:title</td>
+<td>Text</td>
+<td>External</td>
 </tr>
 <tr>
 <td>Author</td>
 <td>text string</td>
+<td>dc:creator</td>
+<td>seq Text</td>
+<td>External</td>
 </tr>
 <tr>
 <td>Subject</td>
 <td>text string</td>
+<td>dc:description["x-default"]</td>
+<td>Text</td>
+<td>External</td>
 </tr>
 <tr>
 <td>Keywords</td>
 <td>text string</td>
+<td>pdf:Keywords</td>
+<td>Text</td>
+<td>External</td>
 </tr>
 <tr>
 <td>Creator</td>
 <td>text string</td>
+<td>xmp:CreatorTool</td>
+<td>Text</td>
+<td>External</td>
 </tr>
 <tr>
 <td>Producer</td>
 <td>text string</td>
+<td>pdf:Producer</td>
+<td>Text</td>
+<td>Internal</td>
 </tr>
 <tr>
 <td>CreationDate</td>
 <td>date</td>
+<td>xmp:CreationDate</td>
+<td>Date</td>
+<td>Internal</td>
 </tr>
 <tr>
 <td>ModDate</td>
 <td>date</td>
+<td>xmp:ModifyDate</td>
+<td>Date</td>
+<td>Internal</td>
 </tr>
 <tr>
 <td>"Internal" in the Category column means that the user should not set this value. It is set by the application.The "Subject" used to be mapped to <code>dc:subject</code> in the initial publication of PDF/A-1 (ISO 19005-1). In the <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=45613">Technical Corrigendum 1</a> this was changed to map to <code>dc:description["x-default"]</code> .</td>
 <td></td>
-</tr>
-<tr>
-<td>## Namespaces <a id="namespaces"></a></td>
+<td></td>
+<td></td>
 <td></td>
 </tr>
 </tbody>
 </table>
+<h3 id="namespaces-wzxhzdk11wzxhzdk12">Namespaces <a id="namespaces"></a></h3>
 <p>Metadata is made of property sets where each property set uses a different namespace URI.</p>
 <p>The following is a listing of namespaces that Apache FOP recognizes and acts upon, mostly to synchronize the XMP metadata with the PDF Info dictionary:</p>
 <table>
@@ -466,7 +486,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>
-<h2 id="links-wzxhzdk11wzxhzdk12">Links <a id="links"></a></h2>
+<h2 id="links-wzxhzdk13wzxhzdk14">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>



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


Mime
View raw message