aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
Commit message (Collapse)AuthorAgeFilesLines
* Bugzilla 42832: Fix in AWT preview if used with non-english locale (offered ↵Andreas L. Delmelle2007-07-071-2/+4
| | | | | | by Max Berger) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554240 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 42089: Cleanup and restructuring (suggested by Adrian Cumiskey)Andreas L. Delmelle2007-07-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554094 13f79535-47bb-0310-9956-ffa450edef68
* Removal of unused classes ?Andreas L. Delmelle2007-07-062-625/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554092 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #41831:Jeremias Maerki2007-05-2836-528/+1466
| | | | | | | | | | | | | | | | | | | | - Add support font auto-detection (easier font configuration) including a font cache to speed up the auto-detection process. - Refactoring of the configuration code: All Avalon configuration stuff is extracted into separate "Configurator" classes. - Refactoring of the FOURIResolver. Submitted by: Adrian Cumiskey <fop-dev.at.cumiskey.com> Changes to the patch by jeremias during the review: - Font cache simplified (Java object serialization instead of XML), functionality fixed and moved to the fonts.package. - Relocated default cache file location to user directory. - Fixed the font configuration for PDFDocumentGraphics2D/PDFTranscoder that got lost with the patch. - Fixed a problem with having a non-file URL as font base URL. - Simplified RendererContextInfo stuff to make it easier to understand. - Fixed handling of Type 1 fonts in auto-detection. - Reduced verbosity of font-related log output. - Updated Jakarta Commons IO to version 1.3.1 (the patch depends on it) - Various javadocs improvements git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@542237 13f79535-47bb-0310-9956-ffa450edef68
* Small Javadoc issue fixed.Jeremias Maerki2007-05-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@538509 13f79535-47bb-0310-9956-ffa450edef68
* Extracted a little bit of the multi-output handling code from PNGRenderer in ↵Jeremias Maerki2007-05-162-85/+107
| | | | | | | | to a new class (MultiFileRenderingUtil) for reuse in the SVGRenderer. Minimal SVG rendering support using Batik's SVGGraphics2D git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@538506 13f79535-47bb-0310-9956-ffa450edef68
* Removed newly introduced dependency from the PDF library to the area tree.Jeremias Maerki2007-05-073-13/+11
| | | | | | | Removed PDFDocument.setHasDestinations() (PDFDocument knows that already). Started to add some generic PDF data structures (array, dictionary). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@535883 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #42067:Jeremias Maerki2007-05-072-85/+435
| | | | | | | Add support for exact positioning of internal PDF links. Submitted by: Paul Vinkenoog <paul.at.vinkenoog.nl> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@535866 13f79535-47bb-0310-9956-ffa450edef68
* Added a PDFGoTo to the PDFDestination handler, so that Destinations properly ↵Jay Bryant2007-04-061-1/+5
| | | | | | jump to the page referenced by the PDFGoTo. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@526315 13f79535-47bb-0310-9956-ffa450edef68
* changes to support named destinationsJay Bryant2007-04-011-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524607 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a problem with the auto-rotate-landscape setting in the PostScript ↵Jeremias Maerki2007-03-211-6/+13
| | | | | | renderer. It didn't generate the right setpagedevice command. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@520797 13f79535-47bb-0310-9956-ffa450edef68
* Correction of a typo; reported by Paul VinkenoogAndreas L. Delmelle2007-03-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@517356 13f79535-47bb-0310-9956-ffa450edef68
* Avoid NPE if no images are used in the document.Jeremias Maerki2007-03-021-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513865 13f79535-47bb-0310-9956-ffa450edef68
* Added support for an optional two-pass production for PostScript output to ↵Jeremias Maerki2007-03-025-98/+646
| | | | | | | | minimize file size. This adds images only once and adds only the fonts that are really used. The actual resource optimization is implemented with the use of the new DSC parser in XML Graphics Commons. A simple test file with a few images and a few configured fonts of which most are not used shows, that with the two-pass approach the file size of the generated PostScript file decreased from 510KB to 160KB. Note that enabling this feature will increase the memory requirements in the PostScript interpreter when there are many images. Documentation follows. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513857 13f79535-47bb-0310-9956-ffa450edef68
* PCL: Support for text decoration for text painted using bitmaps/Java2D.Jeremias Maerki2007-02-221-3/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@510616 13f79535-47bb-0310-9956-ffa450edef68
* corrected imports that were messed up by my IDE in the last commit. Grumble...Chris Bowditch2007-02-221-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@510550 13f79535-47bb-0310-9956-ffa450edef68
* quick and dirty fix for underlining in PCL. Only works for text-rendering="auto"Chris Bowditch2007-02-221-7/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@510531 13f79535-47bb-0310-9956-ffa450edef68
* Stricter user config file validation.Vincent Hennebert2007-02-146-10/+30
| | | | | | | | | Add a configuration parameter (strict-configuration), enabled by default, which makes FOP throw an exception instead of logging an error when a problem occurs. Invalid resource paths should be catched now. Fixes bug #40120. Submitted by: Adrian Cumiskey (fop-dev AT cumiskey DOT com) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@507539 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #41488:Jeremias Maerki2007-02-071-2/+48
| | | | | | | | | Fix for NPE with PNG images for RTF output. Support for GIF images in RTF output (RTF handler, only. Does not affect the RTF library.). Reverts revision 503326 and fixes the problem in a different way. But the fix is only a work-around and will need to be revisited when redesigning the image package. At any rate, the resolution problem introduced with the previous patch can been avoided with the new approach. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@504511 13f79535-47bb-0310-9956-ffa450edef68
* Code cleanup: Andreas L. Delmelle2007-01-111-1/+1
| | | | | | | | | | | - avoid unnecessary calls to getLogger(); LengthBase gets its own logger, LMs log to the AbstractLM logger - CommonBorderPaddingBackground no longer implements Cloneable (changes suggested by Richard Wheeldon) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@495371 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40930:Jeremias Maerki2007-01-043-0/+30
| | | | | | Added support for display-align for table-cell in RTF output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@492769 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40729:Jeremias Maerki2006-11-132-2/+2
| | | | | | | | | Support for the rgb-icc() function and for a proprietary cmyk() function (for device CMYK colors only through the PDF renderer so far). Submitted by: Peter Coppens <pc.subscriptions.at.gmail.com> Patch slightly modified to comply with our Java conventions, plus some minor editing. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@474225 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40813:Jeremias Maerki2006-11-122-19/+23
| | | | | | | | | | | 1. The PreviewDialog did not display correctly under certain Window managers (this is actually a bug in Sun's JVM). 2. Keyboard shortcuts are added for PageUp/PageDown (prev/next page), Home (first page) and End (last page). 3. PreviewPanel.setPage() scrolls to the selected page. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@473976 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40849:Jeremias Maerki2006-11-122-106/+162
| | | | | | | Support for fo:instream-foreign-object (SVG only) for RTF output. Submitted by: Dominic Brügger <bruegger.at.puzzle.ch> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@473975 13f79535-47bb-0310-9956-ffa450edef68
* Handle the case where no ImageWriter is returned. Avoids an NPE.Jeremias Maerki2006-11-081-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@472508 13f79535-47bb-0310-9956-ffa450edef68
* Create a dummy PercentBaseContext in FOPRtfAttributes, so thatSimon Pepping2006-10-091-1/+18
| | | | | | | | | percentage font size properties are properly evaluated. Patch by Renaud Michel <renaud dot michel at defimedia dot be>. Unfortunately, no regression test, because I have no RTF test framework. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454369 13f79535-47bb-0310-9956-ffa450edef68
* Prevent a StringIndexOutOfBoundsException when the PNG output fileSimon Pepping2006-10-091-5/+25
| | | | | | | | name does not have an extension. Patch submitted by Matt Healy <mjh at cs dot rit dot edu>, see bug 40655. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454331 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a few JavaDoc errors. Removed some apparently unused/obsolete methods.Joerg Pietschmann2006-10-075-35/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454018 13f79535-47bb-0310-9956-ffa450edef68
* Added support for CCITT compression in the TIFFRenderer by switching to the ↵Jeremias Maerki2006-09-182-82/+97
| | | | | | | | | | ImageWriter abstraction from XML Graphics Commons. Submitted by: Oliver Hernàndez Valls <ohernandez@notariado.org> In addition to the contributor's patch, I made the necessary changes to use the new multi-page feature of the ImageWriter abstraction. Plus I fixed a few minor issues concerning configuration. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@447325 13f79535-47bb-0310-9956-ffa450edef68
* Configuration option in the Java2D-based renderers that allows to disable ↵Jeremias Maerki2006-09-102-3/+36
| | | | | | the default white background in order to produce bitmap output with transparency. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@441965 13f79535-47bb-0310-9956-ffa450edef68
* My last attempt at fixing SVG gradients in PDF wasn't successful. This one is:Jeremias Maerki2006-08-263-38/+24
| | | | | | | | | Improved resolution of transformation matrices in PDF patterns. Renamed PDFState.setTransform() to PDFState.concatenate() because setTransform() does a concationation and is therefore misleading. The old method is still there (just in case) but it is deprecated. Simplified the whole transformation tracking by including the basic page transformation in the stack. Verified the changes with basic-links in FO, fixed block-containers, a-links in SVG and SVG gradients. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@437210 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Corrected painting of shading patterns and position of links for SVG ↵Jeremias Maerki2006-08-111-36/+46
| | | | | | images inside FO documents. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@430777 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-28267-1338/+1605
| | | | | | 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
* 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
* 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 #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
* Bugzilla #39983:Jeremias Maerki2006-07-102-15/+24
| | | | | | | 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
* 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
* XML Graphics Commons 1.0 replaced with a SVN snapshot (containing the XMP ↵Jeremias Maerki2006-06-201-45/+17
| | | | | | | | | | | 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-145-100/+266
| | | | | | | | | | | 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
* 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
* Improved accuracy of font size selection. The font size is not rounded down ↵Jeremias Maerki2006-05-312-7/+44
| | | | | | | | | | | 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
* 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
p">) htmlDoc := NewHTMLParser(t, resp.Body) noDescription := htmlDoc.doc.Find("#repo-desc").Children() repoTopics := htmlDoc.doc.Find("#repo-topics").Children() repoSummary := htmlDoc.doc.Find(".repository-summary").Children() assert.Equal(t, expectedNoDescription, noDescription.HasClass("no-description")) assert.True(t, repoTopics.HasClass("repo-topic")) assert.True(t, repoSummary.HasClass("repository-menu")) } } // TestViewFileInRepo repo description, topics and summary should not be displayed when viewing a file func TestViewFileInRepo(t *testing.T) { defer tests.PrepareTestEnv(t)() session := loginUser(t, "user2") req := NewRequest(t, "GET", "/user2/repo1/src/branch/master/README.md") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) description := htmlDoc.doc.Find("#repo-desc") repoTopics := htmlDoc.doc.Find("#repo-topics") repoSummary := htmlDoc.doc.Find(".repository-summary") assert.EqualValues(t, 0, description.Length()) assert.EqualValues(t, 0, repoTopics.Length()) assert.EqualValues(t, 0, repoSummary.Length()) } // TestBlameFileInRepo repo description, topics and summary should not be displayed when running blame on a file func TestBlameFileInRepo(t *testing.T) { defer tests.PrepareTestEnv(t)() session := loginUser(t, "user2") req := NewRequest(t, "GET", "/user2/repo1/blame/branch/master/README.md") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) description := htmlDoc.doc.Find("#repo-desc") repoTopics := htmlDoc.doc.Find("#repo-topics") repoSummary := htmlDoc.doc.Find(".repository-summary") assert.EqualValues(t, 0, description.Length()) assert.EqualValues(t, 0, repoTopics.Length()) assert.EqualValues(t, 0, repoSummary.Length()) } // TestViewRepoDirectory repo description, topics and summary should not be displayed when within a directory func TestViewRepoDirectory(t *testing.T) { defer tests.PrepareTestEnv(t)() session := loginUser(t, "user2") req := NewRequest(t, "GET", "/user2/repo20/src/branch/master/a") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) description := htmlDoc.doc.Find("#repo-desc") repoTopics := htmlDoc.doc.Find("#repo-topics") repoSummary := htmlDoc.doc.Find(".repository-summary") repoFilesTable := htmlDoc.doc.Find("#repo-files-table") assert.NotZero(t, len(repoFilesTable.Nodes)) assert.Zero(t, description.Length()) assert.Zero(t, repoTopics.Length()) assert.Zero(t, repoSummary.Length()) }