aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
Commit message (Collapse)AuthorAgeFilesLines
* 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-2012-363/+307
| | | | | | | | | | | 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
* Bugfix: The combination of hyphenation and kerning resulted in slightly ↵Jeremias Maerki2006-05-191-11/+41
| | | | | | 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
* Bugfix: NullPointerException in AreaAdditionUtil in a table-cell spanning ↵Jeremias Maerki2006-05-181-0/+7
| | | | | | | | 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
* Bugzilla #39533:Jeremias Maerki2006-05-183-13/+23
| | | | | | | 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
* Bugzilla #39607:Jeremias Maerki2006-05-181-24/+26
| | | | | | | 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
* Extended PageViewport to carry foreign attributes.Jeremias Maerki2006-05-188-78/+172
| | | | | | | | | | | | | 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
* Several bug fixes in PCLRenderer (border painting mostly).Jeremias Maerki2006-05-171-6/+44
| | | | | | | | 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
* Automatic support for all fonts available to the Java2D subsystem for all ↵Jeremias Maerki2006-05-162-11/+120
| | | | | | | | 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
* Improved baseline detection in TTFReader for TrueType fonts. Ascender and ↵Jeremias Maerki2006-05-161-47/+149
| | | | | | | | 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
* Bugfix: tables nested in inline elements caused a NullPointerException.Jeremias Maerki2006-05-152-11/+6
| | | | | | | 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
* Important improvements for the Java2DRenderer:Jeremias Maerki2006-05-103-20/+110
| | | | | | | | | 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
* Adding missing mandatory flags for PDF/A-1.Jeremias Maerki2006-05-081-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@405167 13f79535-47bb-0310-9956-ffa450edef68
* The default sRGB color profile provided by the Java class library is no ↵Jeremias Maerki2006-05-073-19/+87
| | | | | | 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
* Bugzilla #39443:Jeremias Maerki2006-05-074-5/+22
| | | | | | | 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
* Fixed incorrect handling of percentages in vertical-align property values ↵Manuel Mall2006-05-061-0/+1
| | | | | | and added testcase git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@400279 13f79535-47bb-0310-9956-ffa450edef68
* Some refactoring in the XML handling area which results in more code reuse ↵Jeremias Maerki2006-05-039-112/+400
| | | | | | | | | | 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
* Bugzilla #38243:Jeremias Maerki2006-05-031-3/+4
| | | | | | | 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
* Bugzilla #38946:Jeremias Maerki2006-05-0342-1529/+968
| | | | | | | 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
* Simply subclassing did not work as expected. Made a copy now.Jeremias Maerki2006-05-021-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@398947 13f79535-47bb-0310-9956-ffa450edef68
* Java2D Renderer:Jeremias Maerki2006-05-0213-670/+437
| | | | | | | | | | | | | | | | | 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
* Introduced "ignored namespaces" list on FopFactory. Attributes from ignored ↵Jeremias Maerki2006-04-2815-23/+481
| | | | | | | | | | | 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
* Minor correction to whitespace handling to ensure non space whitespace is ↵Manuel Mall2006-04-271-2/+1
| | | | | | always converted to a space git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@397556 13f79535-47bb-0310-9956-ffa450edef68
* Content in block-containers makes better use of shrink to fit content ↵Jeremias Maerki2006-04-256-12/+50
| | | | | | | | | | 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
* Bugfix: basic-links with internal destinations in documents with multiple ↵Jeremias Maerki2006-04-245-3/+38
| | | | | | 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
* Fixed a typo. Thanks, Matthew East.Jeremias Maerki2006-04-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396559 13f79535-47bb-0310-9956-ffa450edef68
* Bypass URI resolution for "data:" URLs (RFC 2397). If a large data URL is ↵Jeremias Maerki2006-04-232-2/+6
| | | | | | given to Apache XML Commons Resolver, it tries to construct a java.net.URL from it which takes forever and fails in the end when no protocol handler for "data" URLs is installed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396263 13f79535-47bb-0310-9956-ffa450edef68