aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
Commit message (Collapse)AuthorAgeFilesLines
* Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) ↵Jeremias Maerki2005-11-1145-230/+1708
| | | | | | | | | | | | | | | | | | | | | | 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
* Made the FO tree a little more consistent by renaming getName() to ↵Jeremias Maerki2005-11-1171-379/+305
| | | | | | getLocalName() and adding additional methods like: getNamespaceURI() and getNormalNamespacePrefix(). getName() now returns the fully qualified name combined from getLocalName() and getNormalNamespacePrefix(). For special cases you can call getName(String) to return a different namespace prefix. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332545 13f79535-47bb-0310-9956-ffa450edef68
* Moved PDFBridgeContext to a separate class so it can be used by both the ↵Jeremias Maerki2005-11-103-56/+114
| | | | | | | | PDFTranscoder and the PDFSVGHandler. Added support for higher-resolution on-the-fly bitmaps from Batik for SVG inside FO documents. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332324 13f79535-47bb-0310-9956-ffa450edef68
* Scale factor was wrong. Base must be 72dpi, not the default resolution of ↵Jeremias Maerki2005-11-101-2/+4
| | | | | | the PDFDocumentGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332319 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of annoying source of calculation inaccuracies.Jeremias Maerki2005-11-101-8/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332315 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37305: Jeremias Maerki2005-11-102-4/+50
| | | | | | | | | | | Better approach to higher resolution on-the-fly images generated by Batik. Submitted by: Thomas Deweese <deweese.at.apache.org> Changes to the patch: Added a transcoding hint to be able to set this value. Default device resolution set to 300dpi. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332304 13f79535-47bb-0310-9956-ffa450edef68
* Fix for file: URL handling. The condition for adding a leading slash was wrong.Jeremias Maerki2005-11-101-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332298 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37432: Jeremias Maerki2005-11-102-9/+31
| | | | | | | Fix for TTFReader and PFMReader when they are used from an embedded application. The logger wasn't set in this case. Submitted by: Timothy Gates <tgates.at.xplantechnology.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332263 13f79535-47bb-0310-9956-ffa450edef68
* Reintroduce encoding feature for Text Renderer that was in the maintenance ↵Jeremias Maerki2005-11-092-2/+39
| | | | | | | | | | | branch. Configuration layout for the text renderer is: <renderer mime="text/plain"> <encoding>US-ASCII</encoding> </renderer> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332144 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37253: Jeremias Maerki2005-11-0912-88/+2105
| | | | | | | TXT Renderer resurrected with additional features. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332141 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37330: Jeremias Maerki2005-11-091-27/+47
| | | | | | | Fix for bridge registration. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332070 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37236: Jeremias Maerki2005-11-091-30/+210
| | | | | | | Improvements for gradients in PDF Transcoder. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332046 13f79535-47bb-0310-9956-ffa450edef68
* Fix for Bug 36928 - refresh cached property value if explicitly set twice ↵Manuel Mall2005-11-091-0/+3
| | | | | | which can happen for font-size git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332024 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug #37417: Jeremias Maerki2005-11-091-1/+5
| | | | | | | Work around situations with incomplete class loaders that don't report package information. Submitted by: Timothy Gates <tgates.at.xplantechnology.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331991 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug #37415Andreas L. Delmelle2005-11-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331912 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug #37412: Jeremias Maerki2005-11-081-0/+3
| | | | | | Space resolution creates elements with no Positions. These must be ignored. This fixes the NPE. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331880 13f79535-47bb-0310-9956-ffa450edef68
* Fixed typo.Jeremias Maerki2005-11-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331874 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug #37270:Jeremias Maerki2005-11-082-42/+88
| | | | | | | | No more exceptions. Code touch-up and logging optimization. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331844 13f79535-47bb-0310-9956-ffa450edef68
* EMF support review: Copyright years, rounding problems, code simplificationsJeremias Maerki2005-11-084-26/+22
| | | | | | | PDF Renderer should not fail with an exception if it receives an EMF image. It should ignore it. Test case for EMF image and an EMF image added. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331805 13f79535-47bb-0310-9956-ffa450edef68
* Another character encoding updateManuel Mall2005-11-081-93/+93
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331757 13f79535-47bb-0310-9956-ffa450edef68
* Another attempt to fix the compilation problem. I can't tell what happened.Jeremias Maerki2005-11-081-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331755 13f79535-47bb-0310-9956-ffa450edef68
* Removed an illegal character that sneaked in when I copied the last patch ↵Jeremias Maerki2005-11-081-4/+4
| | | | | | from a fop-users post. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331753 13f79535-47bb-0310-9956-ffa450edef68
* Fix for footnote support in RTF handler. Jeremias Maerki2005-11-081-10/+18
| | | | | | Submitted by: Matthias Reinert <matthias.reinert.at.web.de> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331726 13f79535-47bb-0310-9956-ffa450edef68
* Rendering of text-decoration was brokenManuel Mall2005-11-081-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331655 13f79535-47bb-0310-9956-ffa450edef68
* Fixed white space handling during refinement, added test cases, corrected ↵Manuel Mall2005-11-036-121/+149
| | | | | | error in graphics handling git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330576 13f79535-47bb-0310-9956-ffa450edef68
* Added warning message (Bugzilla 37329)Andreas L. Delmelle2005-11-021-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330307 13f79535-47bb-0310-9956-ffa450edef68
* Added relaxed validation for fo:table-cells w/o blocks or markers (Bugzilla ↵Andreas L. Delmelle2005-11-021-1/+1
| | | | | | 37329) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330303 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug 37306 - for text-align="start" ipd was incorrectly adjusted with ↵Manuel Mall2005-10-311-3/+0
| | | | | | text-indent value git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@329797 13f79535-47bb-0310-9956-ffa450edef68
* Use FOP's wrapper classes to load images. Support 'auto' in ↵Peter Herweg2005-10-306-22/+332
| | | | | | fo:external-grapic@height, -@width, -@content-height and -@content-width git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@329590 13f79535-47bb-0310-9956-ffa450edef68
* Moved the text-splitting logic from TextArea to TextLM, as suggested by ↵Luca Furini2005-10-2713-78/+127
| | | | | | | | Manuel and Jeremias. Some simplification in TextLM#addAreas(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328882 13f79535-47bb-0310-9956-ffa450edef68
* Fix for Bug #36403.Jeremias Maerki2005-10-271-4/+26
| | | | | | The problem is similar to the row backtracking that has to be done in case of spanned rows but it has to be handled a little differently. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328868 13f79535-47bb-0310-9956-ffa450edef68
* Package documentation.Jeremias Maerki2005-10-2735-2/+760
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328824 13f79535-47bb-0310-9956-ffa450edef68
* Printing out the revision of Version.java makes no sense. It's not always ↵Jeremias Maerki2005-10-271-6/+12
| | | | | | updated. Instead, determine the repository location that FOP was retrieved from. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328820 13f79535-47bb-0310-9956-ffa450edef68
* Javadoc fixes.Jeremias Maerki2005-10-274-40/+4
| | | | | | 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
* Bugzilla #37236: Jeremias Maerki2005-10-266-102/+163
| | | | | | | | Fix for gradients and patterns for SVG to PDF transcoding. Improvement for break-out handling in PDF Renderer. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328731 13f79535-47bb-0310-9956-ffa450edef68
* Fixed various javadoc problems, fixed a deprecation warning, removed ↵Manuel Mall2005-10-2618-51/+45
| | | | | | functions not needed any more git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328666 13f79535-47bb-0310-9956-ffa450edef68
* Ported the command-line options for PDF encryption to trunk.Jeremias Maerki2005-10-252-9/+64
| | | | | | Warnings if required providers are not available. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328449 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug 36238 (at least in the PDFRenderer)Luca Furini2005-10-2512-32/+296
| | | | | | | | The text is split into WordAreas and SpaceAreas: the latters (when the font is multibyte) are not affected by the Tw operator, so they are shifted in the inline progression dimension instead. The behaviour of the other renderers should be the same as before this change. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328381 13f79535-47bb-0310-9956-ffa450edef68
* Resurrecting URL validation. Thanks, Andreas, I didn't get it at first. ↵Jeremias Maerki2005-10-241-0/+3
| | | | | | Added a comment. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328149 13f79535-47bb-0310-9956-ffa450edef68
* Simplified configuration XML as proposed.Jeremias Maerki2005-10-241-15/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328145 13f79535-47bb-0310-9956-ffa450edef68
* Removed property values as discussed: ↵Manuel Mall2005-10-242-66/+0
| | | | | | http://marc.theaimsgroup.com/?t=112985465700004&r=1&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328060 13f79535-47bb-0310-9956-ffa450edef68
* Merged work on Temp_SpaceResolution branch into trunk (-r 320826:327988).Jeremias Maerki2005-10-2442-557/+2811
| | | | | | Source: http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution/ git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328010 13f79535-47bb-0310-9956-ffa450edef68
* Oooops. Wrong header.Jeremias Maerki2005-10-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@327156 13f79535-47bb-0310-9956-ffa450edef68
* FOP now retrieves the version information from the Manifest or from SVN ↵Jeremias Maerki2005-10-212-1/+49
| | | | | | 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
* Fix to make the Graphics.create() method (calls a copy constructor) work. Jeremias Maerki2005-10-194-54/+132
| | | | | | Extracted stuff into a PDFContext class which gets passed to each copy of PDFDocumentGraphics2D, so the state is uniform over all copies. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@326600 13f79535-47bb-0310-9956-ffa450edef68
* Fix for internal forward references in PDF output (basic-link with ↵Jeremias Maerki2005-10-186-47/+112
| | | | | | | | | | internal-destination): Implemented by making out-of-order processing possible. The problem will still surface if supportsOutOfOrder() returns false. PDF library now supports the addition of pages in non-consecutive order. This is a backwards-compatible change. The old behaviour and the old method signatures are still in place. PageViewport now carries a page index which doesn't represent the page number but the overall index of the page within the current rendering run. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@326133 13f79535-47bb-0310-9956-ffa450edef68
* Inline block parents were not correctly positioned when border/padding got ↵Manuel Mall2005-10-143-0/+9
| | | | | | involved - matched their positioning logic with the usual inlines git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@321108 13f79535-47bb-0310-9956-ffa450edef68
* Fixing a ClassCastException due to the incorrect "pattern" of elements ↵Luca Furini2005-10-141-2/+8
| | | | | | | | representing a space checked when there are inline borders and padding. Maybe not very elegant ... but at least it works; as Manuel suggested, the removal of trailing spaces should maybe happen somewhere else. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@321084 13f79535-47bb-0310-9956-ffa450edef68
* Output the difference, too.Jeremias Maerki2005-10-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@320820 13f79535-47bb-0310-9956-ffa450edef68
* toString() a little more compact.Jeremias Maerki2005-10-131-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@320819 13f79535-47bb-0310-9956-ffa450edef68