aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/svg/PDFGraphics2D.java
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix: The generation of the PDF "d" (setdash) command was assuming that ↵Jeremias Maerki2006-04-181-8/+2
| | | | | | only integer values can be used but that isn't the case. Dash patterns PDFGraphics2D would be wrong in the process. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@394928 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #39033:Jeremias Maerki2006-04-101-0/+14
| | | | | | | Enancement: convert java.awt.GradientPaint to Batik's LinearGradientPaint to avoid rasterization when painting. This is useful when someone uses PDFGraphics2D outside FOP. Submitted by: Michal Sevcenko <sevcenko.at.vc.cvut.cz> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392917 13f79535-47bb-0310-9956-ffa450edef68
* Switching to the Commons variants for the Graphics2D base/helper classes.Jeremias Maerki2006-04-051-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391742 13f79535-47bb-0310-9956-ffa450edef68
* Improved JUnit report creation.Jeremias Maerki2006-04-051-0/+7
| | | | | | | | | | Added support for OutputIntent objects in PDF. When PDF/A-1b is activated OutputIntents are created and the sRGB color space is used by default (hardcoded for the moment for lack of better color infrastructure in FOP). The sRGB color profile from HP (covering sRGB IEC61966-2.1) is now embedded in fop.jar as a resource so the PDF library can embed it. The sRGB profile from the Sun JRE is much bigger. That's why it's not used. The Gladiator TrueType font (glb12.ttf) has been copied over from Batik and is used to verify PDF/A-1b's conformance checks. CMYK JPEG image added to test resources so PDF/A-1b color space checks can be performed. With the color space checks, support for PDF/A-1b is complete to the degree that FOP supports the creation of elements described in ISO 19005-1, except for the case where an embedded XMP packet is used in the fo:declarations element. In this case the metadata is not synchronized with the values in the Info PDF object which could lead to validation errors when checking for PDF/A-1b conformance. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391624 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38731: Jeremias Maerki2006-03-191-7/+16
| | | | | | | | | More accurate font size selection. Outer transformation matrix is no longer ignored when painting text. Improvement for transparent bitmaps (effect can be seen on filters-composite-01-b and render-groups-03-t in SVG 1.1 test suite) Submitted by: Michal Sevcenko <sevcenko.at.vc.cvut.cz> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386954 13f79535-47bb-0310-9956-ffa450edef68
* Creation of Font instances centralized in FontInfo and added a cache for ↵Jeremias Maerki2006-02-101-8/+3
| | | | | | them. This removes duplicate code in a number of places, improves speed a little and saves memory. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376706 13f79535-47bb-0310-9956-ffa450edef68
* Added support for relative font config URLs (metrics-url and embed-url). ↵Manuel Mall2006-01-071-2/+2
| | | | | | These URLs are now resolved through the FOP config URI resolver. A new configuration item font-base has been added which defines the base URL to be used for resolution of the font URLs. If it is not given the normal FOP base URL is used. Unrelated to this feature the patch also contains a new image class (java 1.4 specific) for JPEG images. This is for renderers (e.g. AFP) which require access to the decoded JPEG. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366718 13f79535-47bb-0310-9956-ffa450edef68
* As announced, I brought FontTriplet to more life by making it Serializable ↵Jeremias Maerki2005-12-221-3/+6
| | | | | | and using it to transport the information about the font in use through the area tree. This has small effects on the test cases as the values in the generated XML are slightly different. While refactoring I saw that there's some room for optimization. Too many objects are still created. It should be quite easy now with the FontTriplet to create a small cache. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358613 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37330:Jeremias Maerki2005-11-141-2/+6
| | | | | | Fix for clipped text when painted through the PDF text bridge. The translation was in the wrong place and therefore had an effect on the clipping region. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344148 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37330: Jeremias Maerki2005-11-141-1/+4
| | | | | | | | | | | | 1) The jpeg registration now includes the hashCode in addition to the jpegCount as this prevents images being rused when multiple SVG fragments are included in a single FO. 2) Added a createBridgeContext to PDFBridgeContext so that 'sub contexts' (image element) inherit the new bridges. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344130 13f79535-47bb-0310-9956-ffa450edef68
* Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes ↵Jeremias Maerki2005-11-141-13/+7
| | | | | | | | | IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision. Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item. Some Javadocs and style updates. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344111 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37236: Jeremias Maerki2005-11-091-30/+210
| | | | | | | Improvements for gradients in PDF Transcoder. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332046 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37236: Jeremias Maerki2005-10-261-61/+115
| | | | | | | | Fix for gradients and patterns for SVG to PDF transcoding. Improvement for break-out handling in PDF Renderer. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328731 13f79535-47bb-0310-9956-ffa450edef68
* Fix to make the Graphics.create() method (calls a copy constructor) work. Jeremias Maerki2005-10-191-0/+11
| | | | | | Extracted stuff into a PDFContext class which gets passed to each copy of PDFDocumentGraphics2D, so the state is uniform over all copies. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@326600 13f79535-47bb-0310-9956-ffa450edef68
* Harmonization between the two Graphics2D implementations. Clipping is done ↵Jeremias Maerki2005-08-301-14/+14
| | | | | | | | after the transform. All path iterators use an identity transform which makes the PDF/PS code more readable and usually smaller. Added missing support for non-zero winding rule in PSGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264837 13f79535-47bb-0310-9956-ffa450edef68
* Bugfixes and code cleanup: Jeremias Maerki2005-08-261-136/+109
| | | | | | | | - processPathIterator method like in PSGraphics2D to reduce duplicate code. - draw() and fill() coding styles synchronized (which fixes a bug reported by Lawrence Michel) - Higher resolution for many (not all!) formatted doubles to address the problem reported by Martin Weindel in Bugzilla #35918. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240344 13f79535-47bb-0310-9956-ffa450edef68
* Support for multiple pages in PDFDocumentGraphics2D. Same approach as for ↵Jeremias Maerki2005-05-251-0/+31
| | | | | | | | | AbstractPSDocumentGraphics2D. Call to nextPage() closes current page, the first subsequent painting operation prepares a new page. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198690 13f79535-47bb-0310-9956-ffa450edef68
* Commented stray System.out. Should be replaced by Commons Logging calls or ↵Jeremias Maerki2005-02-191-5/+5
| | | | | | removed in time. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198446 13f79535-47bb-0310-9956-ffa450edef68
* Commented unused code.Jeremias Maerki2005-01-191-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198288 13f79535-47bb-0310-9956-ffa450edef68
* Set Batik rendering hints to improve output quality.Jeremias Maerki2004-10-101-22/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198025 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary scale factor. This made all images added via SVG three ↵Jeremias Maerki2004-09-031-7/+4
| | | | | | | | | | | times bigger than they need to be. The scale factor doesn't exist in PSGraphics2D. Here's where this scale factor was introduced: http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/svg/Attic/PDFGraphics2D.java?r1=1.18&r2=1.19&diff_format=h Also reported by Jay Chiu for Fop 0.20.5 (Feb 2004) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197900 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-04-221-4/+4
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Patch #28525 applied -- new FontInfo class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197531 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 27971 Jeremias Maerki2004-04-031-0/+1
| | | | | | | | Fix for translated gradients. Submitted by: Gang Liu <gliu.at.actuate.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197486 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-48/+16
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Applied Thomas DeWeese's latest patch for the PDF transcoder.Glen Mazza2004-01-221-3/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197244 13f79535-47bb-0310-9956-ffa450edef68
* Moved FontSetup and two helper classes from render.pdf to fonts package.Glen Mazza2003-12-121-5/+8
| | | | | | | | | | FontSetup has the PDF fonts as the default, but this class can be extended if/when another renderer needs its own font setups. (Cannot do this, however, for AWT's FontSetup at the moment, because its setup() has a different signature.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197031 13f79535-47bb-0310-9956-ffa450edef68
* Applied Thomas DeWeese's (Batik team) patches to the transcoder code.Glen Mazza2003-09-131-28/+12
| | | | | | | patch info: http://marc.theaimsgroup.com/?l=fop-dev&m=106318855328310&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196902 13f79535-47bb-0310-9956-ffa450edef68
* move control/Document to apps/DocumentWilliam Victor Mote2003-08-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196817 13f79535-47bb-0310-9956-ffa450edef68
* 1. integrate Document and LayoutStrategy into workflowWilliam Victor Mote2003-08-151-1/+1
| | | | | | | 2. make Document a child of Driver and start integrating this hierarchy git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196803 13f79535-47bb-0310-9956-ffa450edef68
* move font constants from control.Document to fonts.FontWilliam Victor Mote2003-08-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196802 13f79535-47bb-0310-9956-ffa450edef68
* move layout.FontState to fonts.FontWilliam Victor Mote2003-08-141-10/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196800 13f79535-47bb-0310-9956-ffa450edef68
* move fonts.Font to fonts.Typeface (in preparation for moving ↵William Victor Mote2003-08-141-2/+2
| | | | | | layout.FontState to fonts.Font) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196799 13f79535-47bb-0310-9956-ffa450edef68
* 1. create control packageWilliam Victor Mote2003-08-141-16/+16
| | | | | | | 2. move layout.FontInfo to control.Document git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196798 13f79535-47bb-0310-9956-ffa450edef68
* moved image drawing so drawing with size also worksKeiron Liddle2003-03-271-45/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196187 13f79535-47bb-0310-9956-ffa450edef68
* Adjust to changes in PDF library. Jeremias Maerki2003-03-271-44/+21
| | | | | | | Remove duplicate text encoding code now in PDFText. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196181 13f79535-47bb-0310-9956-ffa450edef68
* Fix NPE when content of an <a> element is empty.Jeremias Maerki2003-03-121-8/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196072 13f79535-47bb-0310-9956-ffa450edef68
* Moved sources from src/org/** to src/java/org/**Jeremias Maerki2003-03-111-0/+1660
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196061 13f79535-47bb-0310-9956-ffa450edef68