aboutsummaryrefslogtreecommitdiffstats
path: root/examples/embedding
Commit message (Collapse)AuthorAgeFilesLines
* Added an example for the intermediate format the demonstrates stamping a ↵Jeremias Maerki2006-01-173-1/+195
| | | | | | document using XSLT. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369908 13f79535-47bb-0310-9956-ffa450edef68
* New feature: "Intermediate format" (IF). The IF is basically the XML dialect ↵Jeremias Maerki2006-01-171-0/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | written by the area tree renderer (XMLRenderer). A new parser for this format allows reparsing a serialized and possibly modified area tree and rendering it to the final target format. More details on the Wiki at http://wiki.apache.org/xmlgraphics-fop/AreaTreeIntermediateXml. No advanced features have been implemented, yet, only the basic functionality. The whole change should be fully backwards-compatible WRT the outer FOP API except maybe for FOTreeBuilder.addElementMapping(), and the area tree XML which got small changes. The area tree has been cleaned up. The serializability has been restored. The CachedRenderPagesModel works again and can, in certain situations, decrease the maximum amount of memory held at one point in time. Some adjustments were necessary in the area tree to help the work of the AreaTreeParser. The AreaTreeParser is new and is responsible for parsing area tree XML files and adding pages to a RenderPagesModel instance. It is SAX-based and should be pretty efficient. XMLUnit (http://xmlunit.sourceforge.net, BSD license) is a new dependency for the test code. It is used to verify the correctness of the intermediate format code. It doesn't have to be installed for the build to run through, though. ElementMapping got a new method getDOMImplementation() which provides the DOMImplementation used to handle a subdocument of a particular namespace. For example, SVG uses Batik's SVG DOM. The AreaTreeParser needs that to properly recreate foreign objects because it can't use the mechanism of the FO tree. The default implementation returns null. The ElementMapping instances are no longer maintained by the FOTreeBuilder, but by the newly created ElementMappingRegistry class. It is expected that the instance of this class is moved from the FOTreeBuilder and the AreaTreeParser's Handler class to the "environment class" once it is created to cut down on the startup time for each processed document. The XMLRenderer has been slightly modified to improve the serialization/deserialization qualities of the area tree XML format. The XMLRenderer can now mimic another renderer (see mimicRenderer(Renderer)) in order to use its font setup. That way it is made certain that the reparsed area tree will render to the final target format exactly as expected. Fixed a bug in the XMLHandlerRegistry which did not always return the right XMLHandler for every situation. Added a DefaultErrorListener to the util package. I've had problems with Xalan-J swallowing exceptions with its default ErrorListener, so I added a simple one for convenience and use in AreaTreeParser. Example code for working with the AreaTreeParser can be found in examples/embedding. Documentation will follow. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369753 13f79535-47bb-0310-9956-ffa450edef68
* Change more links from xml.apache.org to xmlgraphics.apache.org.Simon Pepping2005-11-252-1/+1
| | | | | | | Change the file name helloworld.svg to lower case, as used in the java file. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349032 13f79535-47bb-0310-9956-ffa450edef68
* Deprecated constructors Fop(int) and Fop(int, FOUserAgent).Jeremias Maerki2005-11-128-9/+18
| | | | | | | | Deprecated Fop.getVersion() in favor for Version.getVersion(). Changed every place the newly deprecated methods were called. Ant task and TestConverter changed to fully use MIME types. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332791 13f79535-47bb-0310-9956-ffa450edef68
* Providing a FO -> RTF example explaining the only difference that ↵Jeremias Maerki2005-08-151-0/+128
| | | | | | getResults() cannot be used. I think I promised that example to someone earlier. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232805 13f79535-47bb-0310-9956-ffa450edef68
* Removed left over .cvsignore files.Joerg Pietschmann2005-08-131-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232529 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #35937: Jeremias Maerki2005-07-301-1/+16
| | | | | | | | | FormattingResults mechanism ported from maintenance branch to trunk. Submitted by: Manuel Mall <mm.at.arcus.com.au> Patch tweaked slightly to avoid the reference of Fop.java into the area package. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226511 13f79535-47bb-0310-9956-ffa450edef68
* Example for printing to an old-style PrinterJob instance.Jeremias Maerki2005-07-271-0/+121
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225498 13f79535-47bb-0310-9956-ffa450edef68
* Resurrected the old example from the maintenance branch now that the AWT ↵Jeremias Maerki2005-07-271-0/+97
| | | | | | Viewer works again. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225489 13f79535-47bb-0310-9956-ffa450edef68
* Fixed filename of stylesheet for case-sensitive file systems.Jeremias Maerki2004-08-303-3/+3
| | | | | | | Submitted by: Heikki Linnakangas <hlinnaka.at.iki.fi> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197899 13f79535-47bb-0310-9956-ffa450edef68
* Style-up for example classes.Jeremias Maerki2004-08-152-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197874 13f79535-47bb-0310-9956-ffa450edef68
* Combined the apps.Driver class into apps.Fop. (195 LOC total.) PrimaryGlen Mazza2004-07-245-25/+25
| | | | | | | | | | | | | | | | | | | benefit is to make Fop self-documenting in external code, also none of the API ideas called for retention of the Driver class (even if there were different ideas for its replacement). Let's try this for a few weeks, if it confuses people too much (or when the API starts to grow again) we can bring back Driver, possibly under a different name, apps.FopProcess, perhaps. See also: http://marc.theaimsgroup.com/?l=fop-dev&m=108947697611032&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108966015504506&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108942673103344&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108958756030147&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197827 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved exclusively to Simon's DefaultHandler object for both TransformerGlen Mazza2004-07-196-9/+9
| | | | | | | | | | | | | | | | and SAXParser usage. DefaultHandler implements the ContentHandler interface so it can be used where the latter was previously used, also it provides more functionality. [1] 2.) Updated the examples and internal code accordingly. 3.) Renamed ExampleFO2PDFUsingSAX to ...Parser to avoid confusion (both use SAX.) [1] http://www.cafeconleche.org/books/xmljava/chapters/ch06s03.html#d0e8440 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197802 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Driver constructor modified to require RenderType, and setter functionsGlen Mazza2004-07-196-37/+25
| | | | | | | | | | | | | | | | for RenderType and FOUserAgent removed, to allow for better checking of a valid Driver object at time of construction. (Also, will reduce need to validate Driver object should it be a parameter to a method.) 2.) Added validity checking of renderType to FOTreeBuilder as well, in effect decoupling Driver from FOTreeBuilder (the latter can work on its own now.) 3.) Updated the various examples and the documentation to indicate the new API. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197801 13f79535-47bb-0310-9956-ffa450edef68
* Added alternative example for FO to PDF, using javax.xml.parsersSimon Pepping2004-07-182-0/+139
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197800 13f79535-47bb-0310-9956-ffa450edef68
* Back to transform example, reverted yesterday's change that removed ↵Glen Mazza2004-07-161-24/+10
| | | | | | BufferedOutputStream. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197793 13f79535-47bb-0310-9956-ffa450edef68
* *Temporary* commit showing how this process works via SAXParserFactory;Glen Mazza2004-07-161-5/+23
| | | | | | | | including just for future reference should we get a question on this class or wish to document this method on our web pages in the future. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197792 13f79535-47bb-0310-9956-ffa450edef68
* Removed BufferedOutputStream line as unneeded in this case (Unsure if helpfulGlen Mazza2004-07-141-1/+0
| | | | | | | for performance.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197789 13f79535-47bb-0310-9956-ffa450edef68
* Updated FO->PDF example to use JAXP.Glen Mazza2004-07-141-19/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197788 13f79535-47bb-0310-9956-ffa450edef68
* Made Driver.initialize() private, more in line with 0.20.5, which doesn'tGlen Mazza2004-07-094-12/+0
| | | | | | | have such a method. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197773 13f79535-47bb-0310-9956-ffa450edef68
* Switch from non-JAXP DOM processing to using JAXP identity transformationGlen Mazza2004-07-073-23/+50
| | | | | | | for ExampleDOM2PDF example. Patch from Jeremias Maerki. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197764 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Removed the get/setLogger methods from Driver, obsolete with ↵Glen Mazza2004-06-204-38/+11
| | | | | | | | | | Commons-Logging. 2.) Updated examples and documentation. 3.) Added a -v option to show version of FOP being used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197740 13f79535-47bb-0310-9956-ffa450edef68
* Used standard Java exception-printing method "printStackTrace(PrintStream)"Glen Mazza2004-04-147-28/+8
| | | | | | | instead of Avalon equivalent. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197498 13f79535-47bb-0310-9956-ffa450edef68
* Updated examples to use Commons-Logging.Glen Mazza2004-04-015-46/+73
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197475 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-273-41/+104
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197393 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-0/+16
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197391 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-2713-598/+182
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Modification of ExampleXML2PDF to show a Transformer.setParameter() call.Glen Mazza2004-02-092-49/+36
| | | | | | | | Fix to xsl stylesheet to show '1.0' instead of just '1' for the version number (fix from Clay Leeds). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197343 13f79535-47bb-0310-9956-ffa450edef68
* Added a parameter to the projectteam2fo.xsl example (for subsequent useGlen Mazza2004-02-052-5/+9
| | | | | | | | in showing a setTransform() call in the samples); also added a needed library to the examples' build.xml file. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197330 13f79535-47bb-0310-9956-ffa450edef68
* Style, javadoc and tab character fixesJeremias Maerki2004-01-091-14/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197150 13f79535-47bb-0310-9956-ffa450edef68
* $Id$ added to get header printed at top of file.Glen Mazza2003-08-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196797 13f79535-47bb-0310-9956-ffa450edef68
* Created a simple example using the DOM Level 2 API for testing/demonstrating ↵Glen Mazza2003-08-131-0/+192
| | | | | | | | | FOP's DOM Document-processing capabilities. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196796 13f79535-47bb-0310-9956-ffa450edef68
* Buffer the output streams for increased performance (not really needed here ↵Jeremias Maerki2003-07-034-0/+4
| | | | | | but useful for showing best practices) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196567 13f79535-47bb-0310-9956-ffa450edef68
* Added SVG to PDF example using the PDF TranscoderJeremias Maerki2003-03-122-0/+151
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196080 13f79535-47bb-0310-9956-ffa450edef68
* Embedding examples ported from maintenance branch.Jeremias Maerki2003-03-1219-0/+2004
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196077 13f79535-47bb-0310-9956-ffa450edef68