aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
Commit message (Collapse)AuthorAgeFilesLines
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-28847-4558/+5408
| | | | | | 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
* Oops. Wrong copyright.Jeremias Maerki2006-07-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426545 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40106:Jeremias Maerki2006-07-281-1/+1
| | | | | | | 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
* Just a few nitsJeremias Maerki2006-07-281-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426456 13f79535-47bb-0310-9956-ffa450edef68
* Added support for a 8x8 bayer dither matrix if anyone wants to try that. ↵Jeremias Maerki2006-07-281-21/+76
| | | | | | 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
* Attempt to make grayscale patterns look nicer when using PCL commands. The ↵Jeremias Maerki2006-07-262-7/+87
| | | | | | | | 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
* Promote AFP and PCL renderers from sandbox to main source tree.Jeremias Maerki2006-07-243-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425039 13f79535-47bb-0310-9956-ffa450edef68
* Promoting the PCL renderer from sandbox to the main source tree.Jeremias Maerki2006-07-2413-0/+3551
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425038 13f79535-47bb-0310-9956-ffa450edef68
* Promoting the AFP renderer from sandbox to the main source tree.Jeremias Maerki2006-07-2466-0/+13030
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425037 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40062: Jeremias Maerki2006-07-241-1/+52
| | | | | | | | | 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
* Bugzilla #38714 and #40048: Jeremias Maerki2006-07-241-1/+1
| | | | | | 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
* Command-line integration of PDF/X support. Generalized the specifying of PDF ↵Jeremias Maerki2006-07-241-16/+52
| | | | | | | | | 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
* Fixed two memory-leaks in image handling (ImageFactory and ExternalGraphic). ↵Jeremias Maerki2006-07-212-21/+63
| | | | | | | | 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
* Fixed removeNode() as discussed on fop-dev. No more checks for footnotes and ↵Jeremias Maerki2006-07-132-33/+14
| | | | | | 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
* Bugzilla #39608:Jeremias Maerki2006-07-113-4/+16
| | | | | | 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
* Bugfix: Potential multi-threading issue (ConcurrentModificationException) ↵Jeremias Maerki2006-07-111-2/+2
| | | | | | eliminated for ElementMapping classes. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420805 13f79535-47bb-0310-9956-ffa450edef68
* Made FOUserAgent.configure() protected again (not to tempt any users to play ↵Jeremias Maerki2006-07-112-12/+19
| | | | | | 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
* Sometimes I do stuff much too quickly. Removed debug code.Jeremias Maerki2006-07-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420629 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39983:Jeremias Maerki2006-07-103-16/+35
| | | | | | | 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
* Bugzilla #39709:Jeremias Maerki2006-07-101-0/+33
| | | | | | Forgot the new trivial interface. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420625 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39709:Jeremias Maerki2006-07-102-57/+71
| | | | | | | | | 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
* Some config file settings were not correctly set in FOUserAgent when invoked ↵Manuel Mall2006-07-102-8/+6
| | | | | | from command line git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420543 13f79535-47bb-0310-9956-ffa450edef68
* Escape Unicode characters properly for list-item labels.Jeremias Maerki2006-07-102-10/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@420533 13f79535-47bb-0310-9956-ffa450edef68
* Fix NPE if there's no ElementMapping for a particular namespace.Jeremias Maerki2006-06-271-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417543 13f79535-47bb-0310-9956-ffa450edef68
* Fix NPE in case there are no extension attachments and the area tree was ↵Jeremias Maerki2006-06-271-1/+6
| | | | | | built from the intermediate format. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@417542 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for NullPointerException when xmp:ModifyDate isn't set in the FO ↵Jeremias Maerki2006-06-211-2/+4
| | | | | | metadata. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@415981 13f79535-47bb-0310-9956-ffa450edef68
* XML Graphics Commons 1.0 replaced with a SVN snapshot (containing the XMP ↵Jeremias Maerki2006-06-2013-364/+309
| | | | | | | | | | | 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
* Added initial support for PDF/X-3:2003 (ISO 15930-6:2003(E)).Jeremias Maerki2006-06-1428-349/+1089
| | | | | | | | | | | 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
* Bugzilla #39809: Jeremias Maerki2006-06-141-1/+3
| | | | | | 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
* Bugzilla #39777: Jeremias Maerki2006-06-145-171/+354
| | | | | | | 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
* Added region-body_display-align to demonstrate the default behaviour for ↵Jeremias Maerki2006-06-082-26/+70
| | | | | | | | 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
* Bugfix: components of border-separation weren't set when using ↵Andreas L. Delmelle2006-06-081-4/+7
| | | | | | 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
* Bugfix: Table headers were omitted when a table is a child of a block-container.Jeremias Maerki2006-06-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412407 13f79535-47bb-0310-9956-ffa450edef68
* Add bookmarks even if one of the leaves didn't resolve.Jeremias Maerki2006-06-071-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412389 13f79535-47bb-0310-9956-ffa450edef68
* See r412224: forgot to move the related code for TableColumn...Andreas L. Delmelle2006-06-072-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412380 13f79535-47bb-0310-9956-ffa450edef68
* Fixes Bugzilla 39560: make sure the interaction between FOs and properties ↵Andreas L. Delmelle2006-06-066-333/+308
| | | | | | is only performed once git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412224 13f79535-47bb-0310-9956-ffa450edef68
* Blocklevel attributes did not work for last fo:block element under ↵Peter Herweg2006-06-053-14/+79
| | | | | | fo:table-cell. Fixed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411750 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: All fonts names were converted unnecessarily to lower case in RTF ↵Jeremias Maerki2006-06-051-8/+11
| | | | | | output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411725 13f79535-47bb-0310-9956-ffa450edef68
* Extends white-space removal to occur also before nested block-*level* FOs ↵Andreas L. Delmelle2006-06-021-5/+13
| | | | | | instead of only blocks. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411180 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39701: Jeremias Maerki2006-06-021-1/+1
| | | | | | | 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
* Added detection code for AFM and PFB files. Sadly, for PFM there does not ↵Jeremias Maerki2006-06-011-7/+28
| | | | | | 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
* Improved accuracy of font size selection. The font size is not rounded down ↵Jeremias Maerki2006-05-315-8/+66
| | | | | | | | | | | 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
* Forgot something. Jeremias Maerki2006-05-311-2/+9
| | | | | | Round up on the bitmap size. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410550 13f79535-47bb-0310-9956-ffa450edef68
* Don't do rounding here. The caller might now want that.Jeremias Maerki2006-05-311-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410523 13f79535-47bb-0310-9956-ffa450edef68
* Changed the way the graphics state handling is done to make a cleaner "break ↵Jeremias Maerki2006-05-306-270/+105
| | | | | | | | 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
* Take a shortcut when page number is already resolved. Without this there was ↵Jeremias Maerki2006-05-291-4/+4
| | | | | | sometimes a warning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410100 13f79535-47bb-0310-9956-ffa450edef68
* Fixed font descriptor construction (italic angle and stemV mixed) Jeremias Maerki2006-05-291-2/+2
| | | | | | 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
* Making ImageIO come before JAI for GIF images. ImageIO handles GIFs nicely, ↵Jeremias Maerki2006-05-291-1/+1
| | | | | | 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
* Restore configurability of Ant task.Jeremias Maerki2006-05-221-25/+13
| | | | | | Add AFP support to Ant task. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@408707 13f79535-47bb-0310-9956-ffa450edef68
* An emergency patch to avoid that a non-breaking space at the end of anSimon Pepping2006-05-192-4/+10
| | | | | | | | | | | 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