You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by bu...@apache.org on 2012/12/03 11:44:05 UTC

svn commit: r840498 - in /websites/staging/xmlgraphics/trunk/content: ./ fop/trunk/embedding.html

Author: buildbot
Date: Mon Dec  3 10:44:05 2012
New Revision: 840498

Log:
Staging update by buildbot for xmlgraphics

Modified:
    websites/staging/xmlgraphics/trunk/content/   (props changed)
    websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html

Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Dec  3 10:44:05 2012
@@ -1 +1 @@
-1416429
+1416432

Modified: websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/trunk/embedding.html Mon Dec  3 10:44:05 2012
@@ -648,10 +648,10 @@ You should not reuse an FOUserAgent inst
 <h3 id="examplefo2pdfjava-wzxhzdk48wzxhzdk49">ExampleFO2PDF.java <a id="ExampleFO2PDF"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup">example</a> demonstrates the basic usage pattern to transform an XSL-FO file to PDF using FOP.</p>
 <p><img alt="Example XSL-FO to PDF" src="images/EmbeddingExampleFO2PDF.png" /></p>
-<h2 id="examplexml2fojava-wzxhzdk50wzxhzdk51">ExampleXML2FO.java <a id="ExampleXML2FO"></a></h2>
+<h3 id="examplexml2fojava-wzxhzdk50wzxhzdk51">ExampleXML2FO.java <a id="ExampleXML2FO"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2FO.java?view=markup">example</a> has nothing to do with FOP. It is there to show you how an XML file can be converted to XSL-FO using XSLT. The JAXP API is used to do the transformation. Make sure you've got a JAXP-compliant XSLT processor in your classpath (ex. <a href="http://xml.apache.org/xalan-j">Xalan</a> ).</p>
 <p><img alt="Example XML to XSL-FO" src="images/EmbeddingExampleXML2FO.png" /></p>
-<h2 id="examplexml2pdfjava-wzxhzdk52wzxhzdk53">ExampleXML2PDF.java <a id="ExampleXML2PDF"></a></h2>
+<h3 id="examplexml2pdfjava-wzxhzdk52wzxhzdk53">ExampleXML2PDF.java <a id="ExampleXML2PDF"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup">example</a> demonstrates how you can convert an arbitrary XML file to PDF using XSLT and XSL-FO/FOP. It is a combination of the first two examples above. The example uses JAXP to transform the XML file to XSL-FO and FOP to transform the XSL-FO to PDF.</p>
 <p><img alt="Example XML to PDF (via XSL-FO)" src="images/EmbeddingExampleXML2PDF.png" /></p>
 <p>The output (XSL-FO) from the XSL transformation is piped through to FOP using SAX events. This is the most efficient way to do this because the intermediate result doesn't have to be saved somewhere. Often, novice users save the intermediate result in a file, a byte array or a DOM tree. We strongly discourage you to do this if it isn't absolutely necessary. The performance is significantly higher with SAX.</p>
@@ -664,7 +664,7 @@ You should not reuse an FOUserAgent inst
 <h3 id="exampleobj2pdfjava-wzxhzdk56wzxhzdk57">ExampleObj2PDF.java <a id="ExampleObj2PDF"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup">example</a> combines the previous and the third to demonstrate how you can transform a Java object to a PDF directly in one smooth run by generating SAX events from the Java object that get fed to an XSL transformation. The result of the transformation is then converted to PDF using FOP as before.</p>
 <p><img alt="Example Java object to PDF (via XML and XSL-FO)" src="images/EmbeddingExampleObj2PDF.png" /></p>
-<h2 id="exampledom2pdfjava-wzxhzdk58wzxhzdk59">ExampleDOM2PDF.java <a id="ExampleDOM2PDF"></a></h2>
+<h3 id="exampledom2pdfjava-wzxhzdk58wzxhzdk59">ExampleDOM2PDF.java <a id="ExampleDOM2PDF"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleDOM2PDF.java?view=markup">example</a> has FOP use a DOMSource instead of a StreamSource in order to use a DOM tree as input for an XSL transformation.</p>
 <h3 id="examplesvg2pdfjava-pdf-transcoder-example-wzxhzdk60wzxhzdk61">ExampleSVG2PDF.java (PDF Transcoder example) <a id="ExampleSVG2PDF"></a></h3>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java?view=markup">example</a> shows the usage of the PDF Transcoder, a sub-application within FOP. It is used to generate a PDF document from an SVG file.</p>



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