From c487229af9b12ac6dbe631e68d59af72a42bff8b Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Thu, 1 Apr 2004 23:38:44 +0000 Subject: [PATCH] Update to examples: added text about DOM2PDF and PDF Transcoder examples. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197476 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/embedding.xml | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/src/documentation/content/xdocs/embedding.xml b/src/documentation/content/xdocs/embedding.xml index fe7601e7c..9345d2a90 100644 --- a/src/documentation/content/xdocs/embedding.xml +++ b/src/documentation/content/xdocs/embedding.xml @@ -453,8 +453,8 @@ used. For more detailed information see other resources on JAXP (ex. ExampleObj2PDF.java

- The last example -here combines the previous and the third to demonstrate + This example +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 @@ -462,19 +462,32 @@ using FOP as before.

+
+ ExampleDOM2PDF.java +

+ + This example +has FOP use a DOMSource instead of a StreamSource in order to +use a DOM tree as input for an XSL transformation. +

+
+
+ ExampleSVG2PDF.java (PDF Transcoder example) +

+ + This example +shows use of the PDF Transcoder, a sub-application within FOP. +It is used to generate a PDF document from an SVG file. +

+
Final notes

These examples should give you an idea of what's possible. It should be easy -to adjust these examples to your needs. For examples, you can use a DOMSource -instead of a StreamSource to feed a DOM tree as input for an XSL -transformation. -

-

-If you think you have a decent example that should be here, contact us via -one of the mailing lists and we'll see to it that it gets added. Also, if -you can't find the solution to your particular problem drop us a message on -the fop-user mailing list. +to adjust these examples to your needs. Also, if you have other examples that you +think should be added here, please let us know via either the FOP-USER or FOP-DEV +mailing lists. Finally, for more help please send your questions to the FOP-USER +mailing list.

-- 2.39.5