Jeremias Maerki [Fri, 11 Nov 2005 14:58:37 +0000 (14:58 +0000)]
Step 1 (SVN just doesn't want me to delete the old directories):
Created sandbox area (src/sandbox).
Moved MIF, PCL and SVG support to the sandbox due to their current state.
Build adjusted to build a fop-sandbox.jar (the three moved renderers automatically get registered if they are in the classpath).
Jeremias Maerki [Fri, 11 Nov 2005 13:44:40 +0000 (13:44 +0000)]
Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) 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.
Jeremias Maerki [Fri, 11 Nov 2005 13:27:34 +0000 (13:27 +0000)]
Made the FO tree a little more consistent by renaming getName() to 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.
Jeremias Maerki [Thu, 10 Nov 2005 16:37:06 +0000 (16:37 +0000)]
Moved PDFBridgeContext to a separate class so it can be used by both the PDFTranscoder and the PDFSVGHandler.
Added support for higher-resolution on-the-fly bitmaps from Batik for SVG inside FO documents.
Jeremias Maerki [Thu, 10 Nov 2005 10:15:42 +0000 (10:15 +0000)]
Bugzilla #37432:
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>
Jeremias Maerki [Wed, 9 Nov 2005 21:17:38 +0000 (21:17 +0000)]
Reintroduce encoding feature for Text Renderer that was in the maintenance branch.
Configuration layout for the text renderer is:
<renderer mime="text/plain">
<encoding>US-ASCII</encoding>
</renderer>
Jeremias Maerki [Wed, 9 Nov 2005 08:09:24 +0000 (08:09 +0000)]
Fix for bug #37417:
Work around situations with incomplete class loaders that don't report package information.
Submitted by: Timothy Gates <tgates.at.xplantechnology.com>
Jeremias Maerki [Tue, 8 Nov 2005 12:56:25 +0000 (12:56 +0000)]
EMF support review: Copyright years, rounding problems, code simplifications
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.
Jeremias Maerki [Thu, 27 Oct 2005 19:27:11 +0000 (19:27 +0000)]
The test case can be extended a little to also show another bug in addition to the IndexOutOfBoundsException. The code runs into problems when row 1 starts to paint content when row 0 has grid units that haven't even started contributing parts.
Jeremias Maerki [Thu, 27 Oct 2005 13:09:58 +0000 (13:09 +0000)]
Fix for Bug #36403.
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.
Jeremias Maerki [Thu, 27 Oct 2005 07:37:21 +0000 (07:37 +0000)]
Printing out the revision of Version.java makes no sense. It's not always updated. Instead, determine the repository location that FOP was retrieved from.
Jeremias Maerki [Wed, 26 Oct 2005 21:07:47 +0000 (21:07 +0000)]
Bugzilla #37236:
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>
Jeremias Maerki [Tue, 25 Oct 2005 19:49:46 +0000 (19:49 +0000)]
Removed 0.90 again and created a "trunk" instead. When a release is done, trunk can be copied to the version number.
FOP Trunk documentation added.
Fixed all broken internal links.
Luca Furini [Tue, 25 Oct 2005 15:14:10 +0000 (15:14 +0000)]
Fix for bug 36238 (at least in the PDFRenderer)
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.
Jeremias Maerki [Mon, 24 Oct 2005 09:21:26 +0000 (09:21 +0000)]
Merged work on Temp_SpaceResolution branch into trunk (-r 320826:327988).
Source: http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution/
Jeremias Maerki [Thu, 20 Oct 2005 19:55:49 +0000 (19:55 +0000)]
Test case for the issue that was just clarified by the XSL WG:
A page-sequence with the only content an empty block produces an empty page.
http://lists.w3.org/Archives/Public/xsl-editors/2005OctDec/0008.html
Jeremias Maerki [Wed, 19 Oct 2005 16:30:58 +0000 (16:30 +0000)]
Fix to make the Graphics.create() method (calls a copy constructor) work.
Extracted stuff into a PDFContext class which gets passed to each copy of PDFDocumentGraphics2D, so the state is uniform over all copies.
Jeremias Maerki [Tue, 18 Oct 2005 16:06:31 +0000 (16:06 +0000)]
Fix for internal forward references in PDF output (basic-link with 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.
Jeremias Maerki [Tue, 18 Oct 2005 10:12:21 +0000 (10:12 +0000)]
Bugzilla #37135:
New basic structure for the FOP website (one tab per version).
Submitted by: Patrick Paul <ppaul_apache.at.yahoo.ca>
Slightly modified: 1.0dev -> 0.90
The patch attached to the bug didn't contain everything Patrick did. He sent me a copy of his working copy to I could easily reproduce the changes he's done.
Jeremias Maerki [Wed, 12 Oct 2005 07:21:51 +0000 (07:21 +0000)]
Color trait wasn't set on the text area for the "dots" leader pattern. This could lead to hidden dots if a background was specified. As seen in leader_leader-pattern_dots.xml.
Manuel Mall [Fri, 7 Oct 2005 13:15:51 +0000 (13:15 +0000)]
Separated JUnit tests into groups with separate targets, added fotree test to default JUnit target, test for the presence of hyphenation support as prerequisite for layout tests