aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps/Fop.java
Commit message (Collapse)AuthorAgeFilesLines
* Corrected javadocs in o.a.f.apps.* classesMehdi Houshmand2012-07-231-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1364541 13f79535-47bb-0310-9956-ffa450edef68
* Started unifying URI resolution mechanism, redesigned configuration system ↵Mehdi Houshmand2012-05-311-3/+3
| | | | | | and created flexible config testing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1344594 13f79535-47bb-0310-9956-ffa450edef68
* Removed the FO document pre-processing step that was adding ptr and creating ↵Vincent Hennebert2011-10-241-6/+1
| | | | | | | | | | | | | | | a reduced FO tree. * Removed addPtr.xsl and reduceFOTree.xsl * Implemented Common Accessibility properties on objects that support them * Added a special implementation of FOEventHandler to build the structure tree * Added mockito library and its dependencies * Added mocks for some FO nodes and properties * Removed FOTreeUnitTester and converted it into a re-usable FODocumentParser class * Re-worked table FO test cases accordingly git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1188205 13f79535-47bb-0310-9956-ffa450edef68
* Renamed TransformerNode into TransformerDefaultHandler and moved it into the ↵Vincent Hennebert2009-10-211-2/+2
| | | | | | | | | | a.o.f.util package. Renamed TransformerNodeEndProcessing into AccessibilityPreprocessor. Renamed AccessibilityUtil into Accessibility and simplified the code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@828090 13f79535-47bb-0310-9956-ffa450edef68
* JavaBeanified FOUserAgent.accessibilityEnabled().Jeremias Maerki2009-02-201-1/+1
| | | | | | Moved accessibility initialization out of PDFRenderingUtil because PDFRenderer doesn't support accessibility and both the new and old implementation use this class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@746248 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #46705:Jeremias Maerki2009-02-191-1/+6
| | | | | | | | | | | | | | | Accessibility and Tagged PDF Support Submitted by: Jost Klopfstein <jost.klopfstein.at.gmail.com> Changes to patch by jeremias: - Some style fixes - Various simplifications - Removal of dead code - Addressed some issues raised in Bugzilla (work in progress) - Fixed a couple of bugs on leader handling detected while testing (an NPE remains in leader_leader-pattern_use-content.xml) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@745949 13f79535-47bb-0310-9956-ffa450edef68
* Fed up with all those trailing whitespaces. Let's remove them all (once... ↵Vincent Hennebert2008-07-241-9/+9
| | | | | | and for all?) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679326 13f79535-47bb-0310-9956-ffa450edef68
* Made the necessary changes to remove the long-standing deprecations in the ↵Jeremias Maerki2008-02-181-60/+4
| | | | | | apps package as discussed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628826 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-281-5/+6
| | | | | | http://www.apache.org/legal/src-headers.html git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426576 13f79535-47bb-0310-9956-ffa450edef68
* Merged Temp_API_Finalization branch back into FOP Trunk:Jeremias Maerki2006-03-271-9/+51
| | | | | | | | | | | Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign In addition to that: Deprecated the rest of the Fop constructors. Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet. Some further cleanup on the way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Branch fop-0_91:Jeremias Maerki2005-12-231-63/+0
| | | | | | Deprecated Fop constructors that use the integer constants for output format selection removed as discussed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358882 13f79535-47bb-0310-9956-ffa450edef68
* The result of some practice with CheckstyleSimon Pepping2005-12-091-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355471 13f79535-47bb-0310-9956-ffa450edef68
* Deprecated constructors Fop(int) and Fop(int, FOUserAgent).Jeremias Maerki2005-11-121-1/+10
| | | | | | | | 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
* Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) ↵Jeremias Maerki2005-11-111-15/+58
| | | | | | | | | | | | | | | | | | | | | | where the String is the MIME type for the desired output format. MimeConstants provides a comprehensive list of MIME types used in Fop.java. Non-standard, FOP-specific MIME types changed to a uniform pattern: application/X-fop-awt-preview, application/X-fop-print and application/X-fop-areatree. RendererFactory now supports manual registration and dynamic discovery of Renderers and FOEventHandlers by their MIME types. Instantitation is done using MIME types everywhere. The RENDER_* constants are mapped to MIME types in Fop.java. RendererFactory is now an instantiable class whose reference is held by FOUserAgent just like it is done for the XLMHandlers. Renderers and FOEventHandlers now each have a *Maker class which is a kind of factory class which is used to register a Renderer/FOEventHandler and additionally serves to provide additional information about the thing, such as the MIME types it supports and if the implementation requires an OutputStream. The command-line gets a new option: -out application/pdf myfile.pdf is the generic way to create an output file. If someone created a WordML output handler and provided the right service resource file he could specify "-out text/xml+msword out.xml". ".out list" lists all MIME types that are available for output. Renderers can now potionally expose a Graphics2DAdapter which in concert with Graphics2DImagePainter can be used by FOP extensions to paint their content directly using a Graphics2D instance. That makes it possible to avoid a detour via SVG/Batik in certain cases. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332549 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixes.Jeremias Maerki2005-10-271-1/+1
| | | | | | Removed unused code in PDF and PS renderers (fixes javadoc warning). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328814 13f79535-47bb-0310-9956-ffa450edef68
* FOP now retrieves the version information from the Manifest or from SVN ↵Jeremias Maerki2005-10-211-1/+1
| | | | | | information if the Manifest is not available. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@327144 13f79535-47bb-0310-9956-ffa450edef68
* Moved CLI to its own package. New main class is org.apache.fop.cli.Main. Jeremias Maerki2005-08-231-165/+1
| | | | | | InputHandler is not passed through the FOUserAgent anymore. IMO it doesn't belong there. Instead I defined an interface "Renderable" in the AWT preview that InputHandler implements. This is used exclusively for reloading the document inside the preview dialog. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239409 13f79535-47bb-0310-9956-ffa450edef68
* Squashed some JavaDoc warnings.Joerg Pietschmann2005-08-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232563 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #35937: Jeremias Maerki2005-07-301-1/+25
| | | | | | | | | 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
* Dynamic classpath setup in case not all required dependencies are available ↵Jeremias Maerki2005-07-181-3/+120
| | | | | | | | in the given classpath. Useful when starting FOP using "java -jar fop.jar". This is actually a replacement for the manifest "Class-Path" entry and even picks up additional JARs it finds. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@219531 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla: #33760Jeremias Maerki2005-06-091-2/+5
| | | | | | | | | | | Resurrected Java2D/AWT Renderer (including bitmap output to PNG and TIFF using the Batik codecs and print capability). Submitted by: Renaud Richardet <renaud.richardet.at.gmail.com> Changes on the original patch: - PageViewport: isResolved() caused a NPE which I fixed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198725 13f79535-47bb-0310-9956-ffa450edef68
* Avoid throwing exceptions from ctor, the logger is lost in that case.Finn Bock2004-09-131-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197946 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla patch 31162:Jeremias Maerki2004-09-111-18/+3
| | | | | | | | | | Better command-line logging without losing the possibility to fine-tune Commons Logging from outside. Submitted by: Finn Bock <bckfnn.at.apache.org> plus using the new CommandLineLogger for PFMReader and TTFReader, too. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197940 13f79535-47bb-0310-9956-ffa450edef68
* Combined the apps.Driver class into apps.Fop. (195 LOC total.) PrimaryGlen Mazza2004-07-241-8/+104
| | | | | | | | | | | | | | | | | | | 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.) render() methods moved from Driver to XSLTInputHandler and FOFileHandler.Glen Mazza2004-07-201-1/+1
| | | | | | | 2.) -param command line switch implemented for xml->xslt->pdf processes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197803 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Driver constructor modified to require RenderType, and setter functionsGlen Mazza2004-07-191-2/+1
| | | | | | | | | | | | | | | | 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
* 1. New constructor for Driver created, takes FOUserAgent constructor.Glen Mazza2004-07-181-3/+2
| | | | | | | | | | Used for both CLI and AWTRenderer. (Thanks to Simon Pepping) 2. Removed Driver(AWTRenderer) constructor. 3. OutputStream validation moved to FOTreeBuilder. 4. Driver.reset() removed, not currently serving a purpose. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197797 13f79535-47bb-0310-9956-ffa450edef68
* 1. Output constant types (RENDER_PDF, RENDER_PS, etc.) made common betweenGlen Mazza2004-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | CommandLineOptions and Driver, and factored into fo.Constants interface. 2. New Driver(AWTRenderer renderer) constructor added in apps.Driver for the AWTRenderer (which does reloading, unique among the output types.) Note reloading currently doesn't work--AWTRenderer not yet functional. 3. Driver.hasData() method removed from API--a search on when it was implemented dates it to 2001, when reset() was coded. Unsure of its need, and so removed until we have user requests for it. 4. Renderers abstracted away from API in favor of just calling .setRenderer(int Rendertype), and configuring user-configurable options in FOUserAgent. 5. Driver.setRenderer(String <renderer class name>) also dropped. If external user need for it, can be re-implemented fairly easily via a "renderer override" string in FOUserAgent, for which FOTreeHandler can read and use instead. 6. Validity checking added to fo:flow, and convenience functions defining the "%block;" parameter entity and neutral containers as defined in 6.2 of spec [1] added to FObj. [1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#section-N9447-Formatting-Object-Content git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197745 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the CommandLineOptions' InputHandler object into FOUserAgent, allowingGlen Mazza2004-06-251-20/+14
| | | | | | | | | | | | | | | | for a no-parameter constructor for AWTRenderer (like the other renderers). (Code is not yet ideal in AWTRenderer, but will do the task.) 2.) AWT renderer handling now more similar to the other renderers (simplifications in Driver, Fop). 3.) Driver.getRenderer() removed from API. (Renderer configuration now mostly done through FOUserAgent, and setup of renderer prior to calling setRenderer().) 4.) Validity checking added to region-after, -start, -end, and -before. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197744 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moving renderer-specific customization variables (producer, creator, ↵Glen Mazza2004-06-231-1/+8
| | | | | | | | | | | create date) to FOUserAgent, those renderers which can work with these values can read them from passed-in FOUserAgent instance. 2.) Version.getVersion() moved to Fop.getVersion(). 3.) Validation added for fo:region-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197743 13f79535-47bb-0310-9956-ffa450edef68
* 1. Moved renderer options to within FOUserAgentGlen Mazza2004-06-221-3/+1
| | | | | | | 2. Validity checking on fo:conditional-page-master-reference added. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197741 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Removed the get/setLogger methods from Driver, obsolete with ↵Glen Mazza2004-06-201-5/+0
| | | | | | | | | | 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
* 3/4ths of Simon's patch committed at the moment, with minor changesGlen Mazza2004-04-091-5/+4
| | | | | | | made. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197496 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-03-311-3/+5
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Conversion of Avalon to Commons-Logger. (Will still need to update the examples, which I will take care of next; Jeremias will be modifying the PDF libraries for more efficient use of the CL loggers.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197474 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-48/+16
| | | | | | 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
* Explicitly calling System.exit(0) for non-AWTRenderer outputs to close any ↵Glen Mazza2003-10-251-0/+9
| | | | | | | | | | | threads that may be active as a result of AWT (svg) or other processing. See: http://marc.theaimsgroup.com/?l=fop-dev&m=106703706423223&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196971 13f79535-47bb-0310-9956-ffa450edef68
* add back test to make sure a renderer is present, which is needed for ↵William Victor Mote2003-08-151-15/+17
| | | | | | StructureRenderers git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196805 13f79535-47bb-0310-9956-ffa450edef68
* 1.) CommandLineStarter removed, its functionality placed directly into ↵Glen Mazza2003-08-121-7/+39
| | | | | | | | | | | | Fop.main(). Fop.main() now responsible for taking command-line input as provided from CommandLineOptions, and activating a Driver instance with that data. 2.) Minor cleanup of error messages in CommandLineOptions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196794 13f79535-47bb-0310-9956-ffa450edef68
* 1. FOPTaskStarter separated from Starter class (was not using latter's ↵Glen Mazza2003-08-121-1/+1
| | | | | | | | | | InputHandler). 2. CommandLineStarter made a top-level class, and abstract Starter class removed. (only one starter being used for command line, regardless of renderer.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196793 13f79535-47bb-0310-9956-ffa450edef68
* 1. AWT PreviewDialog creation shifted from AWTStarter to AWTRenderer.Glen Mazza2003-08-111-5/+1
| | | | | | | | | | | 2. New AWTRenderer constructor -- takes an InputHandler object which is used for the document refreshing/reloading. 3. PreviewDialog's reload() functionality now handled via Driver instead of AWTStarter. 4. Class AWTStarter removed: AWT generation now activated via CommandLineStarter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196785 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the business logic for determining which starter to create from ↵Glen Mazza2003-07-291-1/+9
| | | | | | | | | apps.CommandLineOptions to apps.Fop; CLO is now Starter-free. 2.) Made the input and output type constants in CLO public, to make the CLO.getOutputMode() and CLO.getInputMode() accessor functions meaningful. (Should probably make uniform with the very similar constants in the Driver class in the future.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196760 13f79535-47bb-0310-9956-ffa450edef68
* Moved sources from src/org/** to src/java/org/**Jeremias Maerki2003-03-111-0/+91
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196061 13f79535-47bb-0310-9956-ffa450edef68