aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/intermediate/AbstractIFPainter.java
Commit message (Collapse)AuthorAgeFilesLines
* Transition source to standard maven hierarchy (initial).Glenn Adams2016-03-031-468/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733433 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2548: Support Barcode4J page numberSimon Steiner2015-12-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1717946 13f79535-47bb-0310-9956-ffa450edef68
* Allow merging of fontsSimon Steiner2014-06-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_FontMerging@1600606 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2301: Enable support for PDF sub-page transitions.Glenn Adams2013-11-011-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1537948 13f79535-47bb-0310-9956-ffa450edef68
* Cosmetics only: enabled Checkstyle ParenPad rule and fixed corresponding ↵Vincent Hennebert2013-04-091-1/+1
| | | | | | violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1466146 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2183: Use event producer when Colour Profile in PNG Image is bad; patch ↵Luis Bernardo2013-02-211-0/+7
| | | | | | submitted by Simon Steiner git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1448483 13f79535-47bb-0310-9956-ffa450edef68
* Merged trunk@1356765Peter Hancock2012-07-031-19/+33
|\ | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1356804 13f79535-47bb-0310-9956-ffa450edef68
| * Merged in trunk@1356161Mehdi Houshmand2012-07-021-3/+26
| |\ | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1356212 13f79535-47bb-0310-9956-ffa450edef68
| | * Changed the exception message when internal font key == null, also some ↵Mehdi Houshmand2012-07-021-3/+26
| | | | | | | | | | | | | | | | | | clean up and encapsulation to *Painter classes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1356161 13f79535-47bb-0310-9956-ffa450edef68
| * | Started unifying URI resolution mechanism, redesigned configuration system ↵Mehdi Houshmand2012-05-311-16/+7
| |/ | | | | | | | | | | and created flexible config testing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1344594 13f79535-47bb-0310-9956-ffa450edef68
* | Merged trunk@1354651Peter Hancock2012-06-291-16/+43
|\| | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1355321 13f79535-47bb-0310-9956-ffa450edef68
| * apply complex scripts patchGlenn Adams2012-02-261-26/+26
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1293736 13f79535-47bb-0310-9956-ffa450edef68
| * Added option for PostScript output to optimize for file size rather than ↵Jeremias Maerki2011-04-221-0/+27
| | | | | | | | | | | | | | | | quality. Fixed some missing PostScript command mappings. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095878 13f79535-47bb-0310-9956-ffa450edef68
* | Bugzilla #49913:Jeremias Maerki2010-09-301-1/+7
|/ | | | | | | | | | | | | | | Initial code drop for support of rounded corners. Submitted by: Peter Hancock <peter.hancock.at.gmail.com> Changes to patch: - Java 1.5 methods eliminated - Some (not all!) Checkstyle violations fixed. - Fixed some excessive and missing whitespace - paintCornersAsBitmap() in AFPPainter was missing a call to ImageSize.calcPixelsFromSize() - Made AT representation of border traits cleaner - Added a TODO for table borders (inner and outer versions) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1003020 13f79535-47bb-0310-9956-ffa450edef68
* Moved ResourceEventProducer to org.apache.fopVincent Hennebert2010-04-091-1/+1
| | | | | | | | Renamed event model used by FOPTestEventModelFactory to "event-model.xml" git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932497 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvements and file-size reductions by introducing ↵Jeremias Maerki2009-02-051-1/+0
| | | | | | | | | letter-spacing and word-spacing attributes in new IF (as mentioned on fop-dev). Allow to control whether kerning information is loaded from fonts. Started support for AFP font embedding (incomplete and currently disabled) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@741165 13f79535-47bb-0310-9956-ffa450edef68
* Added general support for the fox:conversion-mode inside the new IF.Jeremias Maerki2009-01-111-3/+14
| | | | | | | Cleaned up usage of fox:conversion-mode foreign attribute. Plus additional cleanup. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733455 13f79535-47bb-0310-9956-ffa450edef68
* Introduced IFContext to provide access to foreign attributes (as discussed ↵Jeremias Maerki2009-01-021-1/+9
| | | | | | | | | | | on fop-dev). Removed the foreign attributes map from the drawImage methods as a consequence. Added support for foreign attributes on the page (PCL's paper-source and duplex-mode extensions). Fixed a couple of bugs parsing the document navigation elements. Build-time test suite now runs through. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@730740 13f79535-47bb-0310-9956-ffa450edef68
* Added getUserAgent() to IFDocumentHandler (implemented by all ↵Jeremias Maerki2008-12-171-0/+28
| | | | | | | | | | | | | implementations already). Full image support for PSPainter. PostScript output now uses the ImageHandler facility (IF and renderer) for both inline (ImageHandler interface) and form image production (PSImageHandler interface). No more hard-coded image flavor list. Resource optimization extended so images that are only used once are inlined to lower memory requirements in the PostScript VM. Added test cases using Commons' DSC parser to verify the new functionality. Added IFDocumentHandler override possibility in FOUserAgent (just like for FOEventHandler and Renderer). Subject support for PDF output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@727405 13f79535-47bb-0310-9956-ffa450edef68
* Added page master name to IFDocumentHandler.startPage() method.Jeremias Maerki2008-11-191-0/+15
| | | | | | | | Wired together the support for out-of-order rendering (only applicable to PDF) when the intermediate format is not used (in-memory rendering). Fixed a logical bug in IFRenderer that caused some unneeded code. Glyph adjustments (kerning, letter/word space...) were not done right. All painters fixed/adjusted accordingly. Started implementation of the PostScript painter: Supports only text and filled rectangles so far. Work in progress... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@719051 13f79535-47bb-0310-9956-ffa450edef68
* Making conversion hints available to ImageHandler implementations, too.Jeremias Maerki2008-11-041-0/+2
| | | | | | | | | | (Re-)implemented Graphics2D support for PCL. It can be disabled by fox:conversion-mode="bitmap" if necessary. Fixed a bug with non-uniform image scaling when encoding bitmap images. Commented some code that did not reliably convert color images to grayscale. The (probably slower) fallback code is used instead. Some performance improvements for text painting using bitmaps when <rendering>speed<rendering> is selected. Removed the RenderingContext interface from RendererContext since it's not used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@711269 13f79535-47bb-0310-9956-ffa450edef68
* Re-Implemented "quality" rendering mode (painting borders and rules using ↵Jeremias Maerki2008-10-301-2/+66
| | | | | | | | | bitmaps). Added a new rendering mode "bitmap" (in addition to "speed" and "bitmap") that uses Java2DPainter for the whole page and paints a single bitmap (much like most PCL drivers operate). Quality: "speed" < "quality" < "bitmap", Performance: "speed" > "quality" > "bitmap" (at high page complexity "bitmap" might actually be better), File Size: "speed" < "quality" < "bitmap" Increased bitmap encoding performance by up to 100% (by optimizing the Java code and by supporting the "zeroed row" PCL command) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@709119 13f79535-47bb-0310-9956-ffa450edef68
* Moved IFState instance variable into AbstractIFPainter as all ↵Jeremias Maerki2008-10-231-12/+92
| | | | | | | | | | | | | | implementations use it. Refactored default image handling methods in AbstractIFPainter a bit to make them more universal. Fixed a small mistake in Java2DImageHandlerRenderedImage. Added configurator code for new PCL implementation. Fixed smaller issues in PCLGenerator. Added support for painting images (e-g and i-f-o) as bitmaps (depends on rev 707329 in XML Graphics Commons). Added support for text with custom fonts to be painted as bitmaps. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@707331 13f79535-47bb-0310-9956-ffa450edef68
* Split IFPainter into IFDocumentHandler and IFPainter. This makes the ↵Jeremias Maerki2008-09-281-58/+12
| | | | | | | | | | implementation classes smaller, better allows to isolate the painting parts and helps with formats that generate one object per page (SVG, PNG etc.). Added ImageHandlerFactory to FopFactory. Started TIFF output in order to develop the Java2DPainter that will be needed for certain tasks when generating PCL. Tweaked the way XML is generated for IF and SVG output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@699813 13f79535-47bb-0310-9956-ffa450edef68
* Initial implementation for border painting for the new IF (including support ↵Jeremias Maerki2008-08-141-0/+2
| | | | | | for PDF, but not SVG, yet) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685827 13f79535-47bb-0310-9956-ffa450edef68
* Added document-trailer element to the IF (for example for the bookmark tree).Jeremias Maerki2008-08-131-0/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685472 13f79535-47bb-0310-9956-ffa450edef68
* Implemented foreign-object support for the new intermediate format.Jeremias Maerki2008-08-071-0/+131
| | | | | | Note: foreign namespace are only properly processed if there is an ImagePreloader and, where necessary, one or more supporting ImageConverters and/or ImageHandlers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@683637 13f79535-47bb-0310-9956-ffa450edef68
* First steps at unified image handling as proposed on ↵Jeremias Maerki2008-08-051-0/+7
| | | | | | | | | | | http://wiki.apache.org/xmlgraphics-fop/ImageSupport/ImageHandler. This shall serve as a preview to motivate early feedback if anyone is interested. Basic external-graphic support now available for PDF and SVG painters (for PDF: RenderedImage, SVG, JPEG, CCITT and Java2D, for SVG: embedded SVG and RFC2397 data URLs containing PNG and JPEG images) Change to IFPainter: added support for foreign attributes for the "image" tag. PDFContentGenerator introduced to hold the most important objects for PDF generation (unification for renderer and painter). Re-routed most image handling through the new image handling code (not fully done, yet, some code duplication remains). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@682757 13f79535-47bb-0310-9956-ffa450edef68
* Renamed "box" to "viewport". Introduced "group" for pure reference areas ↵Jeremias Maerki2008-07-281-0/+23
| | | | | | | | | (only transformation, no clipping). "viewport" and "group" are implemented in IFSerializer, SVG and PDF. Some minor problems remain. Fixed a few minor bugs (like NPEs) found while testing. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@680266 13f79535-47bb-0310-9956-ffa450edef68
* Renamed "iform" package to "intermediate" (iform was too cryptic for my taste)Jeremias Maerki2008-07-161-0/+50
Changed IFRenderer to work against the IFPainter interface. Started IFPainter implementations for the IF format (IFSerializer), SVG 1.1 and SVG Print. They currently support very simple FOs only (like examples/fo/basic/simple.fo). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@677204 13f79535-47bb-0310-9956-ffa450edef68