]> source.dussan.org Git - xmlgraphics-fop.git/log
xmlgraphics-fop.git
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

18 years agoBugzilla #39443:
Jeremias Maerki [Sun, 7 May 2006 12:21:56 +0000 (12:21 +0000)]
Bugzilla #39443:
Bugfix: Sections with span="all" lead to overlapping text if spanning multiple pages.
Tables and list produced an illegal value for break class on normal breaks.

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

18 years agoFixed incorrect handling of percentages in vertical-align property values and added...
Manuel Mall [Sat, 6 May 2006 10:10:08 +0000 (10:10 +0000)]
Fixed incorrect handling of percentages in vertical-align property values and added testcase

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

18 years agoFix compliance info on "vertical-align".
Jeremias Maerki [Sat, 6 May 2006 08:39:26 +0000 (08:39 +0000)]
Fix compliance info on "vertical-align".
Added an FAQ entry concerning the "The attribute "width" of the element <rect> is required" problem.

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

18 years agoMake the file UTF-8 compatible, i.e. US_ASCII. :-) Thanks, Manuel.
Jeremias Maerki [Fri, 5 May 2006 15:40:39 +0000 (15:40 +0000)]
Make the file UTF-8 compatible, i.e. US_ASCII. :-) Thanks, Manuel.

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

18 years agoThe PCL Renderer is now mostly operational including reference-orientation but withou...
Jeremias Maerki [Fri, 5 May 2006 13:38:39 +0000 (13:38 +0000)]
The PCL Renderer is now mostly operational including reference-orientation but without kerning, TrueType and color support.

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

18 years agofox:disable-clipping on the i-f-o or e-g can be used to perform more painting operati...
Jeremias Maerki [Thu, 4 May 2006 07:24:18 +0000 (07:24 +0000)]
fox:disable-clipping on the i-f-o or e-g can be used to perform more painting operations natively in the HP GL/2 space. Since HP GL/2 provides only limited clipping functionality (which is not supported, yet) and the PCLGraphics2D fails with an UnsupportedException if it encounters an unsupported painting operation, every SVG graphic ends up being painted as a bitmap. This setting can help avoid that. Of course, I have yet to implement the IW (InputWindow, used for rectangular clipping) command.

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

18 years agoSome refactoring in the XML handling area which results in more code reuse and less...
Jeremias Maerki [Wed, 3 May 2006 13:47:18 +0000 (13:47 +0000)]
Some refactoring in the XML handling area which results in more code reuse and less redundancy.
Support for i-f-o for the AFPRenderer including a Graphics2DAdapter so extensions like Barcode4J can paint barcodes more efficiently (i.e. not via SVG).
The SVGConverter class could now be removed except for the writeImage() method because the same functionality is now covered by the Graphics2DAdapter via renderDocument() in the renderer.
PCL and AFP now use practically the same extension painting code (both render to bitmap images).

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

18 years agoRemoved deprecated renderCharacter method from AFP Renderer and replaced AFPColor...
Manuel Mall [Wed, 3 May 2006 12:38:14 +0000 (12:38 +0000)]
Removed deprecated renderCharacter method from AFP Renderer and replaced AFPColor class with java.awt.Color in line with the rest of FOP

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

18 years agoBugzilla #38243:
Jeremias Maerki [Wed, 3 May 2006 08:30:56 +0000 (08:30 +0000)]
Bugzilla #38243:
Bugfix for NPE when there are gaps in the table-column setup.
Submitted by: Gerhard Oettl <gerhard.oettl.at.oesoft.at>

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

18 years agoBugzilla #38946:
Jeremias Maerki [Wed, 3 May 2006 07:21:02 +0000 (07:21 +0000)]
Bugzilla #38946:
First step for improved color handling. FOP's own ColorType was replaced with java.awt.Color throughout the codebase.
Submitted by: Max Berger <max.at.berger.name>

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

18 years agoAdded initial details about the AFP renderer to the outputs document on the web site...
Manuel Mall [Tue, 2 May 2006 15:42:54 +0000 (15:42 +0000)]
Added initial details about the AFP renderer to the outputs document on the web site. This is still incomplete and some more info is to follow.

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

18 years agoSimply subclassing did not work as expected. Made a copy now.
Jeremias Maerki [Tue, 2 May 2006 14:43:29 +0000 (14:43 +0000)]
Simply subclassing did not work as expected. Made a copy now.

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

18 years agoJava2D Renderer:
Jeremias Maerki [Tue, 2 May 2006 14:39:32 +0000 (14:39 +0000)]
Java2D Renderer:
Symbol and ZapfDingbats now work due to a little change in FontSetup.java
Made the class a subclass of AbstractPathOrientedRenderer. This enables to remove some redundant code.
Border painting on a Graphics2D is now available to other renderers.

PCL Renderer:
Improved Graphics2D implementation.
PCLGraphic2D throws an UnsupportedOperationException if it encounters a feature it cannot properly handle. The Graphics2DAdapter can then fall back to painting a graphic in-memory and then as a bitmap.
Added border painting.
PCLRenderer supports to modes "quality" and "speed". The user can configure the mode depending on his needs. In "speed" mode borders are painted as shaded rectangles only. In "quality" mode it uses border rendering of the Java2DRenderer.

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

18 years agoImportant wording correction
Manuel Mall [Tue, 2 May 2006 11:29:29 +0000 (11:29 +0000)]
Important wording correction

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

18 years agoAdded testcase which demonstrates that (or how?) linebreaking of consecutive images...
Manuel Mall [Tue, 2 May 2006 11:24:42 +0000 (11:24 +0000)]
Added testcase which demonstrates that (or how?) linebreaking of consecutive images works.

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

18 years agoSome cleanup of the AFP Renderer code (tab char removal and a few other things)....
Manuel Mall [Fri, 28 Apr 2006 11:58:33 +0000 (11:58 +0000)]
Some cleanup of the AFP Renderer code (tab char removal and a few other things). Changed AFP extension namespace to http://xmlgraphics.apache.org/fop/extensions/afp. Added another missing file.

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

18 years agoExtend exclude pattern for JAI-dependant classes.
Jeremias Maerki [Fri, 28 Apr 2006 09:44:44 +0000 (09:44 +0000)]
Extend exclude pattern for JAI-dependant classes.

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

18 years agoUpdate to PCL documentation.
Jeremias Maerki [Fri, 28 Apr 2006 09:39:41 +0000 (09:39 +0000)]
Update to PCL documentation.

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

18 years agoIntroduced "ignored namespaces" list on FopFactory. Attributes from ignored namespace...
Jeremias Maerki [Fri, 28 Apr 2006 08:51:27 +0000 (08:51 +0000)]
Introduced "ignored namespaces" list on FopFactory. Attributes from ignored namespaces are not complained about. Not done for elements, yet.
Added support for foreign attributes (attributes in a non-FO namespace) on formatting objects, for example to specify additional (proprietary) hints for rendering i-f-o and e-g. First usage example is PCLRendererContext which the PCLGraphics2DAdapter uses to decide whether to paint natively using HP GL/2 or using a bitmap.

PCL Renderer revived: Basic framework constructed based on the old one. Still incomplete (no border painting, incomplete Graphics2D implementation, problems with reference orientation, no kerning etc.). The PCL Renderer implements PCL5 (monochrome) and HP GL/2. Work in progress!
Added UnitConv helper class which could also be useful elsewhere (Could be a candidate for Commons).

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

18 years agoMore missing AFP Renderer files as identified by JM
Manuel Mall [Thu, 27 Apr 2006 15:26:00 +0000 (15:26 +0000)]
More missing AFP Renderer files as identified by JM

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

18 years agoMissing AFP Renderer file as identified by JM
Manuel Mall [Thu, 27 Apr 2006 15:21:05 +0000 (15:21 +0000)]
Missing AFP Renderer file as identified by JM

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

18 years agoAFP Renderer as per IP clearance (http://mail-archives.apache.org/mod_mbox/xmlgraphic...
Manuel Mall [Thu, 27 Apr 2006 15:08:17 +0000 (15:08 +0000)]
AFP Renderer as per IP clearance (http://mail-archives.apache.org/mod_mbox/xmlgraphics-general/200604.mbox/%3c20060426085421.B456.DEV@jeremias-maerki.ch%3e) plus some further corrections and changes made by manuel@apache.org since

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

18 years agoMinor correction to whitespace handling to ensure non space whitespace is always...
Manuel Mall [Thu, 27 Apr 2006 14:37:38 +0000 (14:37 +0000)]
Minor correction to whitespace handling to ensure non space whitespace is always converted to a space

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

18 years agoPrevious commit of disabled-testcases.xml was broken
Manuel Mall [Thu, 27 Apr 2006 14:18:48 +0000 (14:18 +0000)]
Previous commit of disabled-testcases.xml was broken

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

18 years agoTest case for Bug 39414
Manuel Mall [Thu, 27 Apr 2006 10:21:04 +0000 (10:21 +0000)]
Test case for Bug 39414

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

18 years agoBugzilla #39416:
Jeremias Maerki [Thu, 27 Apr 2006 07:33:19 +0000 (07:33 +0000)]
Bugzilla #39416:
JDK 1.3 compatibility.
Added missing serializer*.jar to the classpath.

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

18 years agoBugzilla #39416:
Jeremias Maerki [Thu, 27 Apr 2006 07:25:21 +0000 (07:25 +0000)]
Bugzilla #39416:
Fixed classpath for the embedding example.

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

18 years agoBugzilla #39416:
Jeremias Maerki [Thu, 27 Apr 2006 07:24:31 +0000 (07:24 +0000)]
Bugzilla #39416:
Fixed classpath for the embedding example.
Removed all build.* scripts following Ant best practices.
Removed a deprecation warning in ExampleConcat.

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

18 years agoFixed bad URL. Bad URL\!
Clay Leeds [Wed, 26 Apr 2006 21:28:28 +0000 (21:28 +0000)]
Fixed bad URL. Bad URL\!

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

18 years agoContent in block-containers makes better use of shrink to fit content vertically...
Jeremias Maerki [Tue, 25 Apr 2006 17:03:49 +0000 (17:03 +0000)]
Content in block-containers makes better use of shrink to fit content vertically into the available area. This can be used indirectly to justify content vertically in a block-container.
PageBreakingAlgorithm now writes to a different logger than its base class. Makes debugging easier.
Some minor logging improvements to improve clarity.

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

18 years agoBugfix: basic-links with internal destinations in documents with multiple page-sequen...
Jeremias Maerki [Mon, 24 Apr 2006 18:39:05 +0000 (18:39 +0000)]
Bugfix: basic-links with internal destinations in documents with multiple page-sequences sometimes pointed at the wrong page.

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

18 years agoFixed a typo. Thanks, Matthew East.
Jeremias Maerki [Mon, 24 Apr 2006 14:06:35 +0000 (14:06 +0000)]
Fixed a typo. Thanks, Matthew East.

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

18 years agoUse JAVA_HOME environment variable if it is available.
Jeremias Maerki [Sun, 23 Apr 2006 14:45:17 +0000 (14:45 +0000)]
Use JAVA_HOME environment variable if it is available.

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