]> source.dussan.org Git - xmlgraphics-fop.git/log
xmlgraphics-fop.git
18 years agoPatch for the implementation of the improved float-placement algorithm Temp_Floats Temp_Floats
Vincent Hennebert [Mon, 13 Nov 2006 09:39:19 +0000 (09:39 +0000)]
Patch for the implementation of the improved float-placement algorithm

Changes:
- merge in changes up to revision 432403 of the trunk
- extract LineBreakingAlgorithm and LineBreakPosition from LineLayoutManager and
  put them in the breaking subpackage (was in preparation for the side-floats
  implementation)

New features:
- minimum accepted fill ratio for pages: underfull pages which have at least
  this fill ratio are considered to be feasible breaks
- float-only pages; this may be parameterized
- big floats may now be split on several pages
- shrink- and stretchability of out-of-line object are now taken into account

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@474218 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSetting basedir on the JUnit tasks to avoid problems in certain environments.
Jeremias Maerki [Fri, 29 Sep 2006 19:13:08 +0000 (19:13 +0000)]
Setting basedir on the JUnit tasks to avoid problems in certain environments.
Submitted by: Andrejus Chaliapinas <a.chaliapinas.at.infosana.com>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@451392 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed a bug with indent handling when margins are used on a surrounding block and...
Jeremias Maerki [Wed, 2 Aug 2006 09:20:10 +0000 (09:20 +0000)]
Fixed a bug with indent handling when margins are used on a surrounding block and not start/end-indent.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427938 13f79535-47bb-0310-9956-ffa450edef68

18 years agoA little clean-up.
Jeremias Maerki [Mon, 31 Jul 2006 10:15:06 +0000 (10:15 +0000)]
A little clean-up.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427061 13f79535-47bb-0310-9956-ffa450edef68

18 years agofloat_float_none_2.xml did not take the default values for widows/orphans into accoun...
Jeremias Maerki [Mon, 31 Jul 2006 09:33:32 +0000 (09:33 +0000)]
float_float_none_2.xml did not take the default values for widows/orphans into account. The code works as expected for this particular case.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427056 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39777:
Jeremias Maerki [Mon, 31 Jul 2006 09:20:16 +0000 (09:20 +0000)]
Bugzilla #39777:
Initial support for fo:float with float="before" and float="none".
Submitted by: Vincent Hennebert <vincent.hennebert.at.enseeiht.fr>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427052 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCreate temporary branch for GSoC float work
Jeremias Maerki [Mon, 31 Jul 2006 08:50:01 +0000 (08:50 +0000)]
Create temporary branch for GSoC float work

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427047 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChanged license headers and updated NOTICE file according to: http://www.apache.org...
Jeremias Maerki [Fri, 28 Jul 2006 15:44:37 +0000 (15:44 +0000)]
Changed license headers and updated NOTICE file according to: 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

18 years agoOops. Wrong copyright.
Jeremias Maerki [Fri, 28 Jul 2006 14:49:11 +0000 (14:49 +0000)]
Oops. Wrong copyright.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426545 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #40106:
Jeremias Maerki [Fri, 28 Jul 2006 10:04:23 +0000 (10:04 +0000)]
Bugzilla #40106:
Compatibility fix for GCJ (GNU Classpath): Using "UTF-16BE" instead of "UnicodeBigUnmarked" encoding.
Submitted by: Jeroen Meijer <jmeijer.at.notice.nu>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426465 13f79535-47bb-0310-9956-ffa450edef68

18 years agoJust a few nits
Jeremias Maerki [Fri, 28 Jul 2006 09:38:09 +0000 (09:38 +0000)]
Just a few nits

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426456 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded support for a 8x8 bayer dither matrix if anyone wants to try that. Currently...
Jeremias Maerki [Fri, 28 Jul 2006 09:26:20 +0000 (09:26 +0000)]
Added support for a 8x8 bayer dither matrix if anyone wants to try that. Currently, 4x4 is hard-coded. The 8x8 might only be an option for larger areas (i.e. not text) but the results didn't look any better when printed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426452 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAttempt to make grayscale patterns look nicer when using PCL commands. The standard...
Jeremias Maerki [Wed, 26 Jul 2006 12:06:49 +0000 (12:06 +0000)]
Attempt to make grayscale patterns look nicer when using PCL commands. The standard PCL shades are very coarse and I replaced them with a simple 4x4 bayer dither pattern defined as a user-defined pattern in PCL.
Current side-effect: Darker gray values will result in almost black output on some printers (at least on mine).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425716 13f79535-47bb-0310-9956-ffa450edef68

18 years agoActivating ImageIOImage for reading PNG images in the ImageFactory made some test...
Jeremias Maerki [Mon, 24 Jul 2006 20:40:02 +0000 (20:40 +0000)]
Activating ImageIOImage for reading PNG images in the ImageFactory made some test cases fail. The reason is that the PNGReader cannot extract the image resolution and leaves the default of 72dpi.
Added code to inspect the image metadata for resolution info.
I added the same hack as is already used in PNGImage to force loading the whole image when the image dimensions are requested, i.e. getting the right image size is more important than efficient memory use for now.
The image package needs that redesign sooner or later....

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425178 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPromote AFP and PCL renderers from sandbox to main source tree.
Jeremias Maerki [Mon, 24 Jul 2006 13:24:10 +0000 (13:24 +0000)]
Promote AFP and PCL renderers from sandbox to main source tree.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425045 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPromote AFP and PCL renderers from sandbox to main source tree.
Jeremias Maerki [Mon, 24 Jul 2006 13:17:12 +0000 (13:17 +0000)]
Promote AFP and PCL renderers from sandbox to main source tree.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425039 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPromoting the PCL renderer from sandbox to the main source tree.
Jeremias Maerki [Mon, 24 Jul 2006 13:16:23 +0000 (13:16 +0000)]
Promoting the PCL renderer from sandbox to the main source tree.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425038 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPromoting the AFP renderer from sandbox to the main source tree.
Jeremias Maerki [Mon, 24 Jul 2006 13:15:33 +0000 (13:15 +0000)]
Promoting the AFP renderer from sandbox to the main source tree.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425037 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDocument PCL-specific extension.
Jeremias Maerki [Mon, 24 Jul 2006 09:40:30 +0000 (09:40 +0000)]
Document PCL-specific extension.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424982 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #40062:
Jeremias Maerki [Mon, 24 Jul 2006 09:28:13 +0000 (09:28 +0000)]
Bugzilla #40062:
Fixed handling for CCITT Group 4 images with fill order 2.
Submitted by: Gilles Beaugeais <gbeaugeais.at.voila.fr>

JM: Patch slightly modified/streamlined.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424979 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38714 and #40048:
Jeremias Maerki [Mon, 24 Jul 2006 08:50:48 +0000 (08:50 +0000)]
Bugzilla #38714 and #40048:
Fixed setting of page margin like it was done in the print renderer.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424966 13f79535-47bb-0310-9956-ffa450edef68

18 years agoApacheCon is over, ApacheCon coming up.
Jeremias Maerki [Mon, 24 Jul 2006 08:04:07 +0000 (08:04 +0000)]
ApacheCon is over, ApacheCon coming up.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424956 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCommand-line integration of PDF/X support. Generalized the specifying of PDF profiles...
Jeremias Maerki [Mon, 24 Jul 2006 07:43:19 +0000 (07:43 +0000)]
Command-line integration of PDF/X support. Generalized the specifying of PDF profiles (-pdfprofile parameter).
Documentation update for PDF/A.
Documentation for PDF/X.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424949 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed two memory-leaks in image handling (ImageFactory and ExternalGraphic). The...
Jeremias Maerki [Fri, 21 Jul 2006 15:01:17 +0000 (15:01 +0000)]
Fixed two memory-leaks in image handling (ImageFactory and ExternalGraphic). The image cache is finally working properly. Currently implemented without the cleanup thread as done by Batik.
Added ImageIO provider for handling PNG in addition to the internal codec. ImageIO proved to be faster and less memory-intensive for PNGs. ImageIO takes precedence of the internal codec.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424349 13f79535-47bb-0310-9956-ffa450edef68

18 years agoA W3C schema for FOP user configuration files
Simon Pepping [Sun, 16 Jul 2006 19:31:52 +0000 (19:31 +0000)]
A W3C schema for FOP user configuration files

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@422509 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed removeNode() as discussed on fop-dev. No more checks for footnotes and removal...
Jeremias Maerki [Thu, 13 Jul 2006 12:08:52 +0000 (12:08 +0000)]
Fixed removeNode() as discussed on fop-dev. No more checks for footnotes and removal of nodes even if they are not in the normally expected order.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@421600 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRDF calendar file for http://asylum.zones.apache.org/rdfcal/
Jeremias Maerki [Tue, 11 Jul 2006 13:54:26 +0000 (13:54 +0000)]
RDF calendar file for http://asylum.zones.apache.org/rdfcal/

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420849 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39608:
Jeremias Maerki [Tue, 11 Jul 2006 12:45:29 +0000 (12:45 +0000)]
Bugzilla #39608:
Let numeric property values without a unit be treated as pixels like in HTML. This fixes certain NullPointerExceptions when no units are specified.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420824 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: Potential multi-threading issue (ConcurrentModificationException) eliminated...
Jeremias Maerki [Tue, 11 Jul 2006 11:42:27 +0000 (11:42 +0000)]
Bugfix: Potential multi-threading issue (ConcurrentModificationException) eliminated for ElementMapping classes.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420805 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMade FOUserAgent.configure() protected again (not to tempt any users to play with...
Jeremias Maerki [Tue, 11 Jul 2006 08:28:02 +0000 (08:28 +0000)]
Made FOUserAgent.configure() protected again (not to tempt any users to play with it). Instead improved CommandLineOptions to properly build and adjust the FOUserAgent. Manuel's fix was ok, but I wasn't too comfortable with the public configure() method.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420761 13f79535-47bb-0310-9956-ffa450edef68

18 years agoShowing a problem with SVG used inside a basic-link. The size of the link rect is...
Jeremias Maerki [Tue, 11 Jul 2006 08:13:05 +0000 (08:13 +0000)]
Showing a problem with SVG used inside a basic-link. The size of the link rect is wrong and only spans the area of the nominal line rect. (As reported on fop-users)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420759 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSometimes I do stuff much too quickly. Removed debug code.
Jeremias Maerki [Mon, 10 Jul 2006 20:45:31 +0000 (20:45 +0000)]
Sometimes I do stuff much too quickly. Removed debug code.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420629 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39983:
Jeremias Maerki [Mon, 10 Jul 2006 20:15:17 +0000 (20:15 +0000)]
Bugzilla #39983:
Moved the setting of the system look&feel to CommandLineOptions. Shouldn't really be in PreviewDialog.java.
Added a parameter to createPreviewDialog() so embedders don't get a System.exit() when the user closes the preview dialog. System.exit() may only be called if the preview dialog is the main window.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420626 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39709:
Jeremias Maerki [Mon, 10 Jul 2006 20:11:44 +0000 (20:11 +0000)]
Bugzilla #39709:
Forgot the new trivial interface.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420625 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39709:
Jeremias Maerki [Mon, 10 Jul 2006 19:56:49 +0000 (19:56 +0000)]
Bugzilla #39709:
Some clean-up in the AWT Renderer/Preview.
Submitted by: Stefan Ziel <stefan.ziel.at.claninfo.ch>

Original patch slightly modified for (hopefully) better naming.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420623 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome config file settings were not correctly set in FOUserAgent when invoked from...
Manuel Mall [Mon, 10 Jul 2006 14:32:07 +0000 (14:32 +0000)]
Some config file settings were not correctly set in FOUserAgent when invoked from command line

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420543 13f79535-47bb-0310-9956-ffa450edef68

18 years agoEscape Unicode characters properly for list-item labels.
Jeremias Maerki [Mon, 10 Jul 2006 14:12:20 +0000 (14:12 +0000)]
Escape Unicode characters properly for list-item labels.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420533 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded Vincent Hennebert to list of Contributors. Many thanks to Vincent for his contr...
Chris Bowditch [Wed, 5 Jul 2006 08:24:20 +0000 (08:24 +0000)]
Added Vincent Hennebert to list of Contributors. Many thanks to Vincent for his contributions to FOP so far!

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@419188 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRe-routing SVG painting to the Graphics2DAdapter and teach the latter to respect...
Jeremias Maerki [Thu, 29 Jun 2006 10:13:08 +0000 (10:13 +0000)]
Re-routing SVG painting to the Graphics2DAdapter and teach the latter to respect the renderer's colorImages setting.
Removed obsolete SVGConverter.
This fixes painting SVG at a hard-coded resolution. Now uses the target resolution from the user agent.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417984 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed (another) NPE in AFP Renderer
Manuel Mall [Wed, 28 Jun 2006 15:37:51 +0000 (15:37 +0000)]
Fixed (another) NPE in AFP Renderer

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417794 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix NPE if there's no ElementMapping for a particular namespace.
Jeremias Maerki [Tue, 27 Jun 2006 18:17:11 +0000 (18:17 +0000)]
Fix NPE if there's no ElementMapping for a particular namespace.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417543 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix NPE in case there are no extension attachments and the area tree was built from...
Jeremias Maerki [Tue, 27 Jun 2006 18:16:31 +0000 (18:16 +0000)]
Fix NPE in case there are no extension attachments and the area tree was built from the intermediate format.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417542 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed possible NPE in AFP Renderer
Manuel Mall [Mon, 26 Jun 2006 14:08:29 +0000 (14:08 +0000)]
Fixed possible NPE in AFP Renderer

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417195 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdates to the AFP Renderer documentation
Manuel Mall [Thu, 22 Jun 2006 13:10:40 +0000 (13:10 +0000)]
Updates to the AFP Renderer documentation

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@416363 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix for NullPointerException when xmp:ModifyDate isn't set in the FO metadata.
Jeremias Maerki [Wed, 21 Jun 2006 13:06:58 +0000 (13:06 +0000)]
Bugfix for NullPointerException when xmp:ModifyDate isn't set in the FO metadata.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@415981 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39846, #39847:
Jeremias Maerki [Wed, 21 Jun 2006 07:13:12 +0000 (07:13 +0000)]
Bugzilla #39846, #39847:
Nits
Submitted by: Patrick Paul <ppaul_apache.at.yahoo.ca>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@415932 13f79535-47bb-0310-9956-ffa450edef68

18 years agoXML Graphics Commons 1.0 replaced with a SVN snapshot (containing the XMP framework).
Jeremias Maerki [Tue, 20 Jun 2006 14:57:44 +0000 (14:57 +0000)]
XML Graphics Commons 1.0 replaced with a SVN snapshot (containing the XMP framework).
Reworked the XMP support for PDF to use the XMP framework from XML Graphics Commons.
XMP metadata embedded in fo:declarations is now properly handled. Its values are copied to the Info object according to the rules from PDF/A-1.
Metadata values from the user agent (title, author etc.) are properly merged with metadata from the XSL-FO document. UserAgent metadata overrides FO metadata.
Note: This is useful and active even if you don't activate PDF/A support.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@415688 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded initial support for PDF/X-3:2003 (ISO 15930-6:2003(E)).
Jeremias Maerki [Wed, 14 Jun 2006 14:34:29 +0000 (14:34 +0000)]
Added initial support for PDF/X-3:2003 (ISO 15930-6:2003(E)).
Fixed bugs in PDF/A support: Transparency is now switched off and the CIDSet object is generated for CID fonts.
PDF/A and PDF/X are now "profiles" (see PDFProfile) which are used to control the allowed, required and forbidden features in PDF. PDF/A-1b and PDF/X-3:2003 can both be activated simultaneously as they are compatible.
For PDF/X, color handling has been improved a little (PDFColorSpace is now an interface, the old PDFColorSpace is now PDFDeviceColorSpace) and most importantly, the "DefaultRGB" color space is now mapped to the sRGB color space (for all colors in DeviceRGB) which ensures that all sRGB colors from XSL-FO are also sRGB colors in PDF which wasn't necessarily the case before.
For PDF/X, added support for a custom, non-sRGB output profile because PDF/X requires a "Output Device Profile" (which sRGB is not).
ICC profiles are now shared/cached among images.
Added support for fox:conversion-mode="bitmap" in the PDFRenderer to handle SVGs with transparency when transparency is forbidden (PDF/X and PDF/A). Only drawback: the image is not combined with the background. An opaque bitmap with a white background is generated.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@414272 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39809:
Jeremias Maerki [Wed, 14 Jun 2006 07:54:01 +0000 (07:54 +0000)]
Bugzilla #39809:
Fixed NullPointerException when there's no user configuration file for the FOP Ant task.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@414137 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39777:
Jeremias Maerki [Wed, 14 Jun 2006 07:47:46 +0000 (07:47 +0000)]
Bugzilla #39777:
Javadocs updates and code touch-ups
Submitted by: Vincent Hennebert <vincent.hennebert.at.enseeiht.fr>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@414135 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTest case for change/revision 411180 ("Extends white-space removal to occur also...
Jeremias Maerki [Mon, 12 Jun 2006 09:30:18 +0000 (09:30 +0000)]
Test case for change/revision 411180 ("Extends white-space removal to occur also before nested block-*level* FOs instead of only blocks.")

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@413614 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDocumentation update for Java2DRenderer and descendants.
Jeremias Maerki [Fri, 9 Jun 2006 08:12:27 +0000 (08:12 +0000)]
Documentation update for Java2DRenderer and descendants.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412972 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded region-body_display-align to demonstrate the default behaviour for adjustable...
Jeremias Maerki [Thu, 8 Jun 2006 12:46:50 +0000 (12:46 +0000)]
Added region-body_display-align to demonstrate the default behaviour for adjustable spaces when display-align is set to "auto".
Reactivated proprietary display-align="distribute" so a block-container can cause its content to be "justified" in the reference area if it's large enough and the adjustable elements (min/opt/max) allow for it. I may be misusing the original intended behaviour of "distribute" but for block-container this seemed suitable since it's destined to produce only one viewport/reference pair if possible. Test added that demonstrates the proprietary value on block-container. Note: on normal region-body elements, display-align="distribute" has currently no effect since the code did not evolve with the changes in the layout engine.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412735 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSet a PrefixResolver for the "true" check, too, not only for "eval".
Jeremias Maerki [Thu, 8 Jun 2006 12:36:23 +0000 (12:36 +0000)]
Set a PrefixResolver for the "true" check, too, not only for "eval".
Added optional "tolerance" value for number comparisons using the "eval" check. Simplifies certain checks.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412732 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: components of border-separation weren't set when using shorthand-mode, leadin...
Andreas L. Delmelle [Thu, 8 Jun 2006 10:09:15 +0000 (10:09 +0000)]
Bugfix: components of border-separation weren't set when using shorthand-mode, leading to an NPE being thrown (Bugzilla 39712)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412714 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: Table headers were omitted when a table is a child of a block-container.
Jeremias Maerki [Wed, 7 Jun 2006 14:28:09 +0000 (14:28 +0000)]
Bugfix: Table headers were omitted when a table is a child of a block-container.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412407 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd bookmarks even if one of the leaves didn't resolve.
Jeremias Maerki [Wed, 7 Jun 2006 12:30:30 +0000 (12:30 +0000)]
Add bookmarks even if one of the leaves didn't resolve.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412389 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSee r412224: forgot to move the related code for TableColumn...
Andreas L. Delmelle [Wed, 7 Jun 2006 11:55:10 +0000 (11:55 +0000)]
See r412224: forgot to move the related code for TableColumn...

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412380 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixes Bugzilla 39560: make sure the interaction between FOs and properties is only...
Andreas L. Delmelle [Tue, 6 Jun 2006 21:52:19 +0000 (21:52 +0000)]
Fixes Bugzilla 39560: make sure the interaction between FOs and properties is only performed once

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412224 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBlocklevel attributes did not work for last fo:block element under fo:table-cell...
Peter Herweg [Mon, 5 Jun 2006 11:32:59 +0000 (11:32 +0000)]
Blocklevel attributes did not work for last fo:block element under fo:table-cell. Fixed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411750 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTweak: change expected value to an absolute
Andreas L. Delmelle [Mon, 5 Jun 2006 11:11:48 +0000 (11:11 +0000)]
Tweak: change expected value to an absolute

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411742 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: All fonts names were converted unnecessarily to lower case in RTF output.
Jeremias Maerki [Mon, 5 Jun 2006 09:53:22 +0000 (09:53 +0000)]
Bugfix: All fonts names were converted unnecessarily to lower case in RTF output.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411725 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOops, remove debug code.
Jeremias Maerki [Mon, 5 Jun 2006 08:33:47 +0000 (08:33 +0000)]
Oops, remove debug code.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411714 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSet "junit.haltonfailure = on" in build-local.properties to make JUnit tests halt...
Jeremias Maerki [Mon, 5 Jun 2006 08:31:01 +0000 (08:31 +0000)]
Set "junit.haltonfailure = on" in build-local.properties to make JUnit tests halt immediately if an test failure is encountered.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411712 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate assertions to reflect recent modification to the method in question
Andreas L. Delmelle [Sun, 4 Jun 2006 10:10:54 +0000 (10:10 +0000)]
Update assertions to reflect recent modification to the method in question

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411545 13f79535-47bb-0310-9956-ffa450edef68

18 years agoExtends white-space removal to occur also before nested block-*level* FOs instead...
Andreas L. Delmelle [Fri, 2 Jun 2006 15:12:56 +0000 (15:12 +0000)]
Extends white-space removal to occur also before nested block-*level* FOs instead of only blocks.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411180 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39701:
Jeremias Maerki [Fri, 2 Jun 2006 07:34:25 +0000 (07:34 +0000)]
Bugzilla #39701:
Fix potential NullPointerException when buggy JAXP implementations return null instead of an empty String as namespace URI.
Submitted by: Stefan Ziel <stefan.ziel.at.claninfo.ch>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411080 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed border position for areas with padding (only affects "quality" border rendering).
Jeremias Maerki [Thu, 1 Jun 2006 09:02:05 +0000 (09:02 +0000)]
Fixed border position for areas with padding (only affects "quality" border rendering).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410803 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded detection code for AFM and PFB files. Sadly, for PFM there does not seem to...
Jeremias Maerki [Thu, 1 Jun 2006 07:34:29 +0000 (07:34 +0000)]
Added detection code for AFM and PFB files. Sadly, for PFM there does not seem to be a reliable method of detecting the file type. For example, I remember is PFM file that did not contain the right file size (file size is in the header).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410779 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImproved accuracy of font size selection. The font size is not rounded down to the...
Jeremias Maerki [Wed, 31 May 2006 21:17:18 +0000 (21:17 +0000)]
Improved accuracy of font size selection. The font size is not rounded down to the next integer point value anymore. (Java2D renderers profit from that one, too)

PCL Renderer:
Found a use case for that Java2D ascent value (which I call MaxAscent). It is used for painting text as bitmaps and to make sure the image the text is painted on is big enough if the font ascends beyond the em box. For non-Java2D fonts, MaxAscent is the same as ascent.
Added a check that lets text painting fall back to bitmaps if there are characters that are not in the ISO-8859-1 encoding. This also enables Symbol and ZapfDingbats fonts.
A "text-rendering" setting allows to disable PCL text painting in case the mix of PCL and bitmap text painting should result in unwelcome output. Note: the bitmap rendering is relatively slow (many small bitmaps). In the end we might end up rendering using a BitmapRenderer and only wrapping the whole thing in PCL (much like the Windows PCL drivers do). This would be faster than creating many small bitmaps.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410672 13f79535-47bb-0310-9956-ffa450edef68

18 years agoForgot something.
Jeremias Maerki [Wed, 31 May 2006 14:54:02 +0000 (14:54 +0000)]
Forgot something.
Round up on the bitmap size.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410550 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDon't do rounding here. The caller might now want that.
Jeremias Maerki [Wed, 31 May 2006 13:41:50 +0000 (13:41 +0000)]
Don't do rounding here. The caller might now want that.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410523 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix for border painting in "quality" mode. Some borders were swallowed.
Jeremias Maerki [Wed, 31 May 2006 13:36:18 +0000 (13:36 +0000)]
Fix for border painting in "quality" mode. Some borders were swallowed.
Added an additional parameter to distinguish between painting bitmap with source transparency (bitmapped text and borders) and without (images).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410521 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChanged the way the graphics state handling is done to make a cleaner "break out...
Jeremias Maerki [Tue, 30 May 2006 15:53:12 +0000 (15:53 +0000)]
Changed the way the graphics state handling is done to make a cleaner "break out" for fixed block-containers possible.
Fixed block-containers are now working correctly. The Java2D renderer as well as its descendants are now basically on the same feature level as PDF and PS. All area tree elements get rendered correctly.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410308 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdated documentation on the PCL renderer.
Jeremias Maerki [Tue, 30 May 2006 12:21:29 +0000 (12:21 +0000)]
Updated documentation on the PCL renderer.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410256 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTake a shortcut when page number is already resolved. Without this there was sometime...
Jeremias Maerki [Mon, 29 May 2006 15:05:22 +0000 (15:05 +0000)]
Take a shortcut when page number is already resolved. Without this there was sometimes a warning.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410100 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed font descriptor construction (italic angle and stemV mixed)
Jeremias Maerki [Mon, 29 May 2006 14:29:29 +0000 (14:29 +0000)]
Fixed font descriptor construction (italic angle and stemV mixed)
Submitted by: "Peter B. West" <peter.west.at.hp.com>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410098 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMaking ImageIO come before JAI for GIF images. ImageIO handles GIFs nicely, even...
Jeremias Maerki [Mon, 29 May 2006 14:22:04 +0000 (14:22 +0000)]
Making ImageIO come before JAI for GIF images. ImageIO handles GIFs nicely, even with transparency. JAI is only still interesting for people on JDK 1.3. Everyone else is ok with Image I/O.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410097 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImages were not properly scaled.
Jeremias Maerki [Thu, 25 May 2006 14:03:44 +0000 (14:03 +0000)]
Images were not properly scaled.
Added borders and background for viewports (e-g, i-f-o etc.)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@409390 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemoved VMI setting which caused pages > 1 to be shifted down for some reason. Looks...
Jeremias Maerki [Thu, 25 May 2006 11:20:48 +0000 (11:20 +0000)]
Removed VMI setting which caused pages > 1 to be shifted down for some reason. Looks like the VMI setting has no influence for the PCL Renderer since we reposition the cursor for each text string.
Implemented the break out list for fixed block-containers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@409362 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRestore configurability of Ant task.
Jeremias Maerki [Mon, 22 May 2006 16:46:57 +0000 (16:46 +0000)]
Restore configurability of Ant task.
Add AFP support to Ant task.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@408707 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange the old viewcvs.cgi to the new viewvc path of the web view of
Simon Pepping [Fri, 19 May 2006 18:09:08 +0000 (18:09 +0000)]
Change the old viewcvs.cgi to the new viewvc path of the web view of
the Subversion repository

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407870 13f79535-47bb-0310-9956-ffa450edef68

18 years agoI wonder why I haven't seen this earlier.
Jeremias Maerki [Fri, 19 May 2006 15:36:56 +0000 (15:36 +0000)]
I wonder why I haven't seen this earlier.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407825 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate my data
Simon Pepping [Fri, 19 May 2006 15:26:49 +0000 (15:26 +0000)]
Update my data

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407823 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCorrect some formal errors in this file.
Simon Pepping [Fri, 19 May 2006 15:12:04 +0000 (15:12 +0000)]
Correct some formal errors in this file.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407821 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAn emergency patch to avoid that a non-breaking space at the end of an
Simon Pepping [Fri, 19 May 2006 15:10:44 +0000 (15:10 +0000)]
An emergency patch to avoid that a non-breaking space at the end of an
fo:inline with padding, followed by another fo:inline, while
text-align is justify, does not cause a NullPointerException due to
InlineStackingLayoutManager.addALetterSpaceTo(). Patch submitted by
Max Berger <max@berger.name>, applied with some modifications. This
patch solves bug 39571.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407819 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: The combination of hyphenation and kerning resulted in slightly ragged right...
Jeremias Maerki [Fri, 19 May 2006 11:51:40 +0000 (11:51 +0000)]
Bugfix: The combination of hyphenation and kerning resulted in slightly ragged right ends for right-aligned and justified text. The kerning values were not correctly placed and summed up for hyphenation and no-hyphenation conditions.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407774 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: NullPointerException in AreaAdditionUtil in a table-cell spanning multiple...
Jeremias Maerki [Thu, 18 May 2006 18:58:05 +0000 (18:58 +0000)]
Bugfix: NullPointerException in AreaAdditionUtil in a table-cell spanning multiple pages and with a marker.
Note: This is a hack to avoid the NPE. A problem remains. The markers will not be added if the first/last conditions cannot be determined.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407614 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTestcase for Bugzilla #39560
Jeremias Maerki [Thu, 18 May 2006 16:42:56 +0000 (16:42 +0000)]
Testcase for Bugzilla #39560

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407588 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39533:
Jeremias Maerki [Thu, 18 May 2006 15:54:17 +0000 (15:54 +0000)]
Bugzilla #39533:
Bugfix: NullPointerException in RTF output when a table does not contain table-columns.
The code now informs the user that he should explicitely define the table-columns.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407576 13f79535-47bb-0310-9956-ffa450edef68

18 years agoForgot to upload the new PCLElementMapping. Used so the PCL extension attributes...
Jeremias Maerki [Thu, 18 May 2006 15:42:39 +0000 (15:42 +0000)]
Forgot to upload the new PCLElementMapping. Used so the PCL extension attributes are working.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407572 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #39607:
Jeremias Maerki [Thu, 18 May 2006 14:00:11 +0000 (14:00 +0000)]
Bugzilla #39607:
Bugfix for NPE in RTF library.
Submitted by: Julien AymĂ© <julien.ayme.at.gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407553 13f79535-47bb-0310-9956-ffa450edef68

18 years agoExtended PageViewport to carry foreign attributes.
Jeremias Maerki [Thu, 18 May 2006 12:44:15 +0000 (12:44 +0000)]
Extended PageViewport to carry foreign attributes.
Foreign attributes from simple-page-master are transferred to the PageViewport.
Added foreign attributes handling in AreaTreeParser.
Fixed proper generation of foreign attributes in XMLRenderer.
EvalCheck extended so it can use namespace prefix mappings in its context.
Test case for foreign attributes.

Paper source/tray support for PCL (pcl:paper-source="<tray-code>" on s-p-m)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407541 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSeveral bug fixes in PCLRenderer (border painting mostly).
Jeremias Maerki [Wed, 17 May 2006 15:06:42 +0000 (15:06 +0000)]
Several bug fixes in PCLRenderer (border painting mostly).
Option in AbstractGraphics2DAdapter to work with or without alpha.
Text Setup changed to the Java2D model. Custom font painting is now done through Java2D as bitmaps for all fonts which are not supported by the pre-defined set. This was done as a shortcut for full-fledged TrueType support which seems to be a little complicated in PCL. BTW, Microsoft PCL printer drivers do the same, i.e. paint text as bitmaps.
Image printing refined, but my attempt at handling bitmasked images (transparency) didn't work out. While the previewers did the expected thing, the printer hardware flat-out ignored it, so it's disabled now.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407277 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAutomatic support for all fonts available to the Java2D subsystem for all Java2D...
Jeremias Maerki [Tue, 16 May 2006 14:04:47 +0000 (14:04 +0000)]
Automatic support for all fonts available to the Java2D subsystem for all Java2D-descendant renderers (TIFF, PNG, print, AWT).
Improvements in the adapter for Java2D/AWT font metrics.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@406950 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImproved baseline detection in TTFReader for TrueType fonts. Ascender and descender...
Jeremias Maerki [Tue, 16 May 2006 11:44:57 +0000 (11:44 +0000)]
Improved baseline detection in TTFReader for TrueType fonts. Ascender and descender values were sometimes not in line with FOP's expectations.
Changed some log output from debug to trace level.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@406917 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: tables nested in inline elements caused a NullPointerException.
Jeremias Maerki [Mon, 15 May 2006 09:59:59 +0000 (09:59 +0000)]
Bugfix: tables nested in inline elements caused a NullPointerException.
Furthermore, keep-together handling was not appropriate when a table is nested in an inline (fixes a ClassCastException).
Finally, TableContentPosition did not indicate that it generates area which made them be ignored by the InlineLM.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@406596 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImportant improvements for the Java2DRenderer:
Jeremias Maerki [Wed, 10 May 2006 13:45:46 +0000 (13:45 +0000)]
Important improvements for the Java2DRenderer:
Support for letter- and word-spacing which also enables justified text.
Fix for font metric access. Fractional metrics was off. charWidth() only returned integers.
Removed the obscure 1.4 factor (Thanks to Chris Dail for the hint!)
Dispose of Graphics2D instance if no longer used to free up resources.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@405763 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdding missing mandatory flags for PDF/A-1.
Jeremias Maerki [Mon, 8 May 2006 21:13:21 +0000 (21:13 +0000)]
Adding missing mandatory flags for PDF/A-1.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@405167 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThe default sRGB color profile provided by the Java class library is no longer embedd...
Jeremias Maerki [Sun, 7 May 2006 13:43:35 +0000 (13:43 +0000)]
The default sRGB color profile provided by the Java class library is no longer embedded if it is encountered. This should reduce the PDF size considerably.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@404759 13f79535-47bb-0310-9956-ffa450edef68