Jeremias Maerki [Wed, 30 Nov 2005 08:52:26 +0000 (08:52 +0000)]
Bugfix: Added missing conditionality notification for table-cell content.
Extracted functionality to find a previous break into a helper method in ElementListUtils.
Fixed misguided german->english translation on parameter names (last != previous).
Jeremias Maerki [Thu, 24 Nov 2005 20:08:56 +0000 (20:08 +0000)]
Bugfix for a multi-threading problem:
propertyListTable initialization moved from the constructor to a static block in FOObj.
This fixes NullPointerExceptions in PropertyList.
This was discovered using the application in test/java/org/apache/fop/threading/.
Jeremias Maerki [Thu, 24 Nov 2005 19:41:11 +0000 (19:41 +0000)]
Improvements for leader painting in PDF. "dots" are actually dots now, nicer ridge/groove with lightenColor(), reusing code from border painting.
Leader in PostScript Renderer now, too.
LeaderLM did not set the leader color and the PDF Renderer didn't act on it.
Jeremias Maerki [Thu, 24 Nov 2005 14:54:06 +0000 (14:54 +0000)]
Added support for border-separation.block-progression-direction (only inline-progression-direction worked before).
Bugfix for a special case with vertically spanned cells where a cell might have been swallowed as a whole.
Jeremias Maerki [Thu, 24 Nov 2005 11:14:00 +0000 (11:14 +0000)]
Cleaned up all entries (except whitespace-related stuff) in disabled-testcases.xml.
block_padding_2's expected element list was wrong. An infinite penalty was missing for the "retain" element.
inline-block_keep-together was a misleading name: it is now inline_keep-together.xml.
Bug 36356 actually behaves like it should, now, but the checks were wrong. Only one margin was used in the width calculation and a count() was missing in the second check.
table_border-width_conditionality.xml specified conditionality for start and end edges instead of before and after. The test itself has to be looked at again because shorthands are in use and this case some consequences as discussed earlier.
Another test case could be enabled because it works now: page-number_initial-page-number_2
Jeremias Maerki [Tue, 22 Nov 2005 18:26:26 +0000 (18:26 +0000)]
Merged changes 345575:345890 from branches/fop-0_90 into trunk:
"build/site" is now copied to "docs".
The build directory isn't included in either distribution anymore.
Source distribution doesn't contain fop.jar, javadocs and compiled docs anymore to make the distribution smaller.
KEYS and status.xml and lib/xalan*.txt added (Thanks, Simon).
Added version info to javadocs.
Removed limitation to build javadocs only with JDKs >= 1.4. It works fine for me on Win32 Sun JDK 1.3.1_15.
You can add "javahome.jdk14" to your build-local.properties so Forrest docs can be built during a JDK 1.3 distribution build.
Added release notes to site (Thanks, Christian, for the reminder).
Append JDK indicator to binary distribution using system property java.specification.version.
upgrade guide: new configuration format (CG)
Documented additional known issue with PS Renderer that I didn't have time to fix.
Redirects and release names cleaned up as per Simon's suggestions.
Added link to latest release branch to download page.
Jeremias Maerki [Wed, 16 Nov 2005 09:04:26 +0000 (09:04 +0000)]
favicon was missing in out sources.
Added a redirect so you can use http://xmlgraphics.apache.org/fop/latest/ to point to the documentation of the latest release (currently set to 0.20.5).
Jeremias Maerki [Mon, 14 Nov 2005 22:34:26 +0000 (22:34 +0000)]
Resurrected status.xml and prepared it for changes after the first release.
Added stylesheets and sitemap snippets as a project sitemap for FOP from Forrest 0.7 branch because the plugin didn't work.
Jeremias Maerki [Mon, 14 Nov 2005 18:02:14 +0000 (18:02 +0000)]
Bugzilla #36480:
Improved space-before/space-after support for RTF output. Fixes problems with space support in the existing code.
Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com>
Jeremias Maerki [Mon, 14 Nov 2005 16:02:05 +0000 (16:02 +0000)]
Bugzilla #37330:
Fix for clipped text when painted through the PDF text bridge. The translation was in the wrong place and therefore had an effect on the clipping region.
Jeremias Maerki [Mon, 14 Nov 2005 14:28:59 +0000 (14:28 +0000)]
Bugzilla #37330:
1) The jpeg registration now includes the hashCode in addition
to the jpegCount as this prevents images being rused when
multiple SVG fragments are included in a single FO.
2) Added a createBridgeContext to PDFBridgeContext so that 'sub contexts'
(image element) inherit the new bridges.
Submitted by: Thomas Deweese <deweese.at.apache.org>
Jeremias Maerki [Mon, 14 Nov 2005 12:55:46 +0000 (12:55 +0000)]
Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision.
Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item.
Some Javadocs and style updates.
Jeremias Maerki [Sat, 12 Nov 2005 15:58:07 +0000 (15:58 +0000)]
Deprecated constructors Fop(int) and Fop(int, FOUserAgent).
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.
Jeremias Maerki [Fri, 11 Nov 2005 17:27:17 +0000 (17:27 +0000)]
Bugzilla #37468:
Placement of flows in multi-column documents was wrong. The area tree is correct, however. Bug in AbstractRenderer. Simpler is sometimes better.
Jeremias Maerki [Fri, 11 Nov 2005 16:39:21 +0000 (16:39 +0000)]
Bugzilla #37468:
Bugfix: A normal break inside a table resulted in the next part to be sent to the next page instead of the next flow. TableContentLayoutManager produces KnuthPenalties with breakClass=0.
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>