aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/svg
Commit message (Collapse)AuthorAgeFilesLines
* 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-102-19/+7
| | | | | | 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-072-5/+5
| | | | | | 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-222-8/+15
| | | | | | 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-142-8/+36
| | | | | | | | | | | | 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
* Automated parameter rename failed because there was an instance variable ↵Jeremias Maerki2005-11-141-4/+4
| | | | | | called "e" which caused an NPE in examples/fo/build.xml on target "newPDF". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344125 13f79535-47bb-0310-9956-ffa450edef68
* Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes ↵Jeremias Maerki2005-11-145-57/+50
| | | | | | | | | 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
* Moved PDFBridgeContext to a separate class so it can be used by both the ↵Jeremias Maerki2005-11-102-41/+81
| | | | | | | | PDFTranscoder and the PDFSVGHandler. Added support for higher-resolution on-the-fly bitmaps from Batik for SVG inside FO documents. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332324 13f79535-47bb-0310-9956-ffa450edef68
* Scale factor was wrong. Base must be 72dpi, not the default resolution of ↵Jeremias Maerki2005-11-101-2/+4
| | | | | | the PDFDocumentGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332319 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37305: Jeremias Maerki2005-11-102-4/+50
| | | | | | | | | | | Better approach to higher resolution on-the-fly images generated by Batik. Submitted by: Thomas Deweese <deweese.at.apache.org> Changes to the patch: Added a transcoding hint to be able to set this value. Default device resolution set to 300dpi. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332304 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37330: Jeremias Maerki2005-11-091-27/+47
| | | | | | | Fix for bridge registration. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332070 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-262-64/+125
| | | | | | | | 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-194-54/+132
| | | | | | 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
* Fixed javadoc errors.Joerg Pietschmann2005-09-081-3/+2
| | | | | | | Added a few TODOs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279656 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-252-26/+129
| | | | | | | | | 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
* Bugzilla #31512:Jeremias Maerki2004-10-111-0/+4
| | | | | | | | Fop should use Batik's Image readers when possible. Submitted by: Thomas Deweese <deweese.at.apache.org> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198036 13f79535-47bb-0310-9956-ffa450edef68
* Implement the cheaper mechanism to ensure correct rendering at differing ↵Jeremias Maerki2004-10-102-5/+20
| | | | | | resolutions. This is probably only an intermediate solution and does not implement what Thomas DeWeese suggested. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198026 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
* Removed unneded import statements.Finn Bock2004-09-091-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197937 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
* Fix JPEG with many long APPS markers.Jeremias Maerki2004-08-161-13/+41
| | | | | | | | Also defers the creation of the original node until it absolutely has to thus avoiding decoding the JPEG file and creating the raster unless needed. Submitted by: Thomas DeWeese <Thomas.DeWeese.at.Kodak.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197881 13f79535-47bb-0310-9956-ffa450edef68
* Fix getPixelUnitToMillimeterJeremias Maerki2004-08-162-2/+5
| | | | | | | Submitted by: Thomas DeWeese <Thomas.DeWeese.at.Kodak.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197880 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the SAXParser-creating method from FOFileHandler to ↵Glen Mazza2004-07-201-2/+7
| | | | | | | | | | | | | | | CommandLineOptions, the latter being the class directly using it. 2.) Decoupled the SVG classes from apps.FOFileHandler, the SVG classes for some reason want a string containing a name of a SAXParser. We'll need to look in the future for the actual need for this--normally error messages are done by the caller, not the callee. It would appear that Batik can generate a SAXParser name by default, and use that when not explicitly overridden by the caller. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197804 13f79535-47bb-0310-9956-ffa450edef68
* Removed the getLogger() and setLogger() from FOUserAgent; replaced with ↵Glen Mazza2004-05-122-4/+11
| | | | | | | | | Commons Logging equivalents in places where previously used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197591 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-04-224-14/+14
| | | | | | | | | | | 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
* PDF library no longer gets a logger from its owner.Jeremias Maerki2004-04-021-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197481 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-03-315-34/+32
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Conversion of Avalon to Commons-Logger. (Will still need to update the examples, which I will take care of next; Jeremias will be modifying the PDF libraries for more efficient use of the CL loggers.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197474 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Removed xsl file for property generation (no longer used, due toGlen Mazza2004-03-211-12/+16
| | | | | | | | | | | Finn's work.) Removed build.xml entry. 2.) Disconnected the FOUserAgent from the SVGUserAgent. This will make the SVGUserAgent more portable although at the cost of a more complex constructor. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197467 13f79535-47bb-0310-9956-ffa450edef68
* Moved SVGUserAgent back to SVG package (not being used by SVG FO extensions.)Glen Mazza2004-03-192-1/+157
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197463 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-2714-658/+210
| | | | | | 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
* Switching from passing the FOUserAgent for several of the imageGlen Mazza2004-01-251-1/+3
| | | | | | | | | | | | functions to its internal Avalon logger instead. (Only object used within FOUserAgent parameter, plus this library is also used for the PDFTranscoder, plus FOUserAgent not always available from everywhere anymore.) Holding off making a complete switch in this package (FOUserAgent still used in a few more places, albeit only its logger is being requested) until others comment. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197259 13f79535-47bb-0310-9956-ffa450edef68
* Applied Thomas DeWeese's latest patch for the PDF transcoder.Glen Mazza2004-01-222-4/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197244 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused import to quieten Eclipse.Peter Bernard West2004-01-031-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197101 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused imports to quieten Eclipse.Peter Bernard West2004-01-031-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197100 13f79535-47bb-0310-9956-ffa450edef68
* Moved FontSetup and two helper classes from render.pdf to fonts package.Glen Mazza2003-12-122-7/+10
| | | | | | | | | | 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
* Use different base class for user agentJeremias Maerki2003-11-071-18/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196989 13f79535-47bb-0310-9956-ffa450edef68
* Use different base class for user agent.Jeremias Maerki2003-11-071-63/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196988 13f79535-47bb-0310-9956-ffa450edef68
* Helper class for debugging in TextPaintersJeremias Maerki2003-11-071-0/+94
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196987 13f79535-47bb-0310-9956-ffa450edef68
* Tom DeWeese's changes made;Glen Mazza2003-11-041-2/+14
| | | | | | | See: http://marc.theaimsgroup.com/?l=fop-dev&m=106795227230411&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196980 13f79535-47bb-0310-9956-ffa450edef68
* Applied Tom DeWeese/Batik Team's SVG patches. New Batik.jar created from ↵Glen Mazza2003-10-113-139/+75
| | | | | | | | | | | | latest CVS build, using Batik's "all-jar" target. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196955 13f79535-47bb-0310-9956-ffa450edef68
* Applied Thomas DeWeese's (Batik team) patches to the transcoder code.Glen Mazza2003-09-132-29/+13
| | | | | | | 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
* Changes to PDFTextPainter to accomodate new Batik library.Glen Mazza2003-09-091-7/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196898 13f79535-47bb-0310-9956-ffa450edef68
* remove global import statementsWilliam Victor Mote2003-09-082-13/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196891 13f79535-47bb-0310-9956-ffa450edef68