aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
Commit message (Collapse)AuthorAgeFilesLines
* Implemented embedding of Type 1 fonts. Jeremias Maerki2005-09-057-93/+307
| | | | | | | | | | font dict writing moved to new class PSFontUtils. PSGenerator.resolveURI() does the same as FOUserAgent.resolveURI() but thus avoids the dependency on FOUserAgent. Needed for font embedding. Treat fonts as resources now. Wrap font keying in FOP-specific comments for reliable finding. New class SubInputStream which reads a maximum number of bytes from an underlying InputStream and then behaves like it has reached EOF. Used for Type1 font embedding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278782 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36479: Jeremias Maerki2005-09-053-2/+11
| | | | | | | Bookmarks are now working in RTF output. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278724 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36476: Jeremias Maerki2005-09-054-35/+110
| | | | | | | | | | | | | | | | Border support on block, block-container and inline introduced. Nesting borders are supported partially: only two levels of nesting. Consecutive paragraphs with identical border formatting are considered part of a single group with the border information applying to the entire group. Bugzilla #36477: start-indent and end-indent are used instead of margins only to do indentation. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> Changes to the patch by jeremias: Fix for deferred handling which didn't work for block-containers. They got ignored. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278720 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36475: Jeremias Maerki2005-09-052-17/+37
| | | | | | | Fix for block background not extending to the whole block content-width. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278695 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36487: Jeremias Maerki2005-09-052-2/+12
| | | | | | | | | | | | | | | | Background images were incorrectly positioned in some absolute positioned blocks. Some additional attributes output by the XMLRenderer. Refactored the layout for e-g and i-f-o. Introduced common base classes for the corresponding flow objects as well as the e-g and i-f-o LMs. Fixed incorrectly applied margins on region-body when writing mode is not lr. Fixed application of correct percent base for margins and extents on regions when the reference orientation is 90 degrees. Fixed incorrectly positioned regions when writing mode is different between the simple-page-master setting and the setting on the region. Several updates to the layout engine test cases. Submitted by: Manuel Mall <mm.at.arcus.com.au> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278690 13f79535-47bb-0310-9956-ffa450edef68
* Initial work on enhancing the extension facilities to register special ↵Jeremias Maerki2005-09-026-12/+444
| | | | | | | | | | | | | | extensions which create so-called ExtensionAttachment objects which are attached to the formatting object they are attached to. These objects can be evaluated by standard or custom layout managers or simply passed through to the area tree (the latter is NYI). The AreaTreeHandler currently takes ExtensionAttachment objects from fo:root and fo:declarations and wraps them in OffDocumentItems that Renderers can react on to provide additional functionality on document-level (like PDF metadata or PostScript media dictionaries). Since the simple-page-master is available directly from the PageViewport the renderer can take ExtensionAttachment objects directly from there (see PSRenderer.renderPage()). Extension Elements that provide ExtensionAttachments are not added as such to the child element list of a formatting object since they work a little differently and should free memory as soon as possible. The PostScript extension described in http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript are now fully implemented but under the namespace URI "http://xmlgraphics.apache.org/fop/postscript", not "http://xml.apache.org/fop/extensions". I'll need to look at namespaces again separately, later. The new PSExtensionElementMapping is currently hard-coded into FOTreeBuilder as are the other ElementMapping classes. OffDocumentItem is now an interface, AbstractOffDocumentItem now providing the base functionality of the former OffDocumentItem class. Lots of clean-up and javadocs while working through this, for example: FObj.childNodes is not public anymore. Instead a special method on fo.flow.InstreamForeignObject provides the child in the one case childNodes was directly accessed. PropertyMaker access in FObj is also done through a method now, propertyListTable is now private. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@267209 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup of unused imports.Finn Bock2005-09-013-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265738 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36379:Finn Bock2005-08-312-8/+8
| | | | | | | | | | | | Revised percentage resolution system. Submitted by: Manuel Mall <mm.at.arcus.com.au> Slightly modified to avoid early evaluation of getValue(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265577 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36418: Jeremias Maerki2005-08-311-4/+7
| | | | | | | Documentation update for the "reload" change in the AWT Viewer. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264974 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the use of Length property for baseline-shift.Finn Bock2005-08-301-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264890 13f79535-47bb-0310-9956-ffa450edef68
* added support for superscript and subscriptPeter Herweg2005-08-302-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264856 13f79535-47bb-0310-9956-ffa450edef68
* Harmonization between the two Graphics2D implementations. Clipping is done ↵Jeremias Maerki2005-08-301-9/+18
| | | | | | | | 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
* Removed unnecessary comments.Jeremias Maerki2005-08-301-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264834 13f79535-47bb-0310-9956-ffa450edef68
* Some clean-up.Jeremias Maerki2005-08-301-9/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264833 13f79535-47bb-0310-9956-ffa450edef68
* added support for text-decorationPeter Herweg2005-08-293-46/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264639 13f79535-47bb-0310-9956-ffa450edef68
* Moved renderInlineBlockParent() up to the superclass. Fixes border and ↵Jeremias Maerki2005-08-292-12/+12
| | | | | | background painting for inline block parents in PostScript. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264147 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the page coordinate system for the PDF Renderer (Defect: Rounding and ↵Jeremias Maerki2005-08-292-24/+46
| | | | | | rounding errors). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264145 13f79535-47bb-0310-9956-ffa450edef68
* Character positioning array can easily become too long so break them after ↵Jeremias Maerki2005-08-291-1/+5
| | | | | | every eigth value. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264130 13f79535-47bb-0310-9956-ffa450edef68
* Write the start-indent trait to the area tree XML.Jeremias Maerki2005-08-291-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264111 13f79535-47bb-0310-9956-ffa450edef68
* RTF: borders had been too thick: divide by 50 to convert from millipoint to ↵Peter Herweg2005-08-281-1/+2
| | | | | | twips git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@263896 13f79535-47bb-0310-9956-ffa450edef68
* fixed support for basic-link; process table-footer only, if there is onePeter Herweg2005-08-281-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@263886 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36394: Jeremias Maerki2005-08-271-0/+1
| | | | | | Bugfix for painting a single character. Text painting code was not enclosed in "BT" and "ET" commands. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240423 13f79535-47bb-0310-9956-ffa450edef68
* Fix problem with SVG painting. ET was not sent.Jeremias Maerki2005-08-261-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240266 13f79535-47bb-0310-9956-ffa450edef68
* Add support for character area.Jeremias Maerki2005-08-261-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240261 13f79535-47bb-0310-9956-ffa450edef68
* fixed support for tables and listsPeter Herweg2005-08-251-39/+81
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240144 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for block-container-abs6 which didn't paint correctly in PostScript ↵Jeremias Maerki2005-08-251-0/+1
| | | | | | after the latest changes. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240019 13f79535-47bb-0310-9956-ffa450edef68
* Kerning is currently not supported by the layout engine, so disable it for ↵Jeremias Maerki2005-08-252-2/+14
| | | | | | PDF and add a TODO item for PS. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240012 13f79535-47bb-0310-9956-ffa450edef68
* Improved text painting for PostScript (including letter-space and word-space) Jeremias Maerki2005-08-244-119/+139
| | | | | | Moved text-decoration painting to the common base class and reused the border line painting method for this purpose. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239925 13f79535-47bb-0310-9956-ffa450edef68
* Fixes unrecoverable exceptions causing BatchDiffer to fail. Jeremias Maerki2005-08-242-2/+11
| | | | | | Doing a clean separation of encoded and decoded data inside the image implementations. Helps fix a problem with the encoded CCITT TIFF being sent to the PS output even though this is not yet implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239661 13f79535-47bb-0310-9956-ffa450edef68
* Started to implement a resource tracking facility in the PSGenerator. It ↵Jeremias Maerki2005-08-236-144/+369
| | | | | | | | | | | tracks resources such as EPS files, procset etc. as PSResource instances. Resource-DSC comments are now generated. Procsets moved into the Prolog where they belong. Font setup is no longer a resource as it is not interchangeable between rendering runs. It's now just setup code with FOP-specific comments surrounding it. In the future, this may also make it possible to write a size-optimized PS file from which the resources are stripped while writing the file. These resources will then be installed directly on a printer or inserted into the Prolog by a post-processor. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239419 13f79535-47bb-0310-9956-ffa450edef68
* Moved CLI to its own package. New main class is org.apache.fop.cli.Main. Jeremias Maerki2005-08-234-8/+87
| | | | | | InputHandler is not passed through the FOUserAgent anymore. IMO it doesn't belong there. Instead I defined an interface "Renderable" in the AWT preview that InputHandler implements. This is used exclusively for reloading the document inside the preview dialog. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239409 13f79535-47bb-0310-9956-ffa450edef68
* Fix the DSC comment (Begin|EndDocument) for EPS files. It wasn't in the ↵Jeremias Maerki2005-08-221-3/+9
| | | | | | | | | right place. Added a FOP-specific comment around the whole EPS to delimit the EPS code. Use the original URI if the EPS file has no name (which isn't parsed at the moment anyway). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234504 13f79535-47bb-0310-9956-ffa450edef68
* Remember the original URI in the FopImage instance. Jeremias Maerki2005-08-222-8/+8
| | | | | | | Output the original URI in the comment when writing an image to PostScript. Useful for people who post-process their PostScript files. Fixed the position of the image comment so it can be used to factor out duplicate images when combining multiple PostScript files. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234500 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36224: Jeremias Maerki2005-08-212-34/+63
| | | | | | | | | | | | | | This patch ports the 0.20.5 CCITTFaxDecode filter functionality and its support of direct embedding on certain TIFF images to the trunk. It also cleans up some of the image handling with respect to consistent closing of the input stream to avoid dangling open files. Submitted by: Manuel Mall <mm.at.arcus.com.au> Changes to the patch: Fixed a small problem with the NullFilter in the PDF library. Used tiff_group4.tiff in external-graphic-tiff.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234261 13f79535-47bb-0310-9956-ffa450edef68
* Remove obsolete method.Jeremias Maerki2005-08-211-36/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234208 13f79535-47bb-0310-9956-ffa450edef68
* Rename PDFXMLHandler to what it really is: an SVGHandler.Jeremias Maerki2005-08-213-34/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234207 13f79535-47bb-0310-9956-ffa450edef68
* Rename PSXMLHandler to what it really is: an SVGHandler.Jeremias Maerki2005-08-212-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234206 13f79535-47bb-0310-9956-ffa450edef68
* A big step towards a usable PostScript renderer. Jeremias Maerki2005-08-2110-897/+1541
| | | | | | | | | | | | Some code that can be used by both PS and PDF renderers factored out into a common base class (AbstractPathOrientedRenderer). Coordinate system of PS renderer and PSGraphics2D changed to be based on points rather than millipoints to be the same as the PDFRenderer. This improves the chance to reuse code. PSGenerator set to PostScript level 2 now, should later be configurable. There may still be some PS commands which should be changed from Level 2 to Level 1, just to be able to support Level 1 later should anyone ask for it. Bitmap, EPS and SVG support should be mostly restored now. PSState was extended to provide the same break-out mechanism for fixed b-cs. And it has better support for tracking the graphics state. Added some FOP-specific comments to certain constructs for people who want to post-process the PS output. BatchDiffer shows very few visual differences now on the layout engine test cases between PDF and PS. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234201 13f79535-47bb-0310-9956-ffa450edef68
* ref to bugzilla 36180Chris Bowditch2005-08-151-11/+8
| | | | | | | Submitted by: Manuel Mall <mm.at.arcus.com.au> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232810 13f79535-47bb-0310-9956-ffa450edef68
* Removed obsolete code. This seems to be done now by each renderer separately.Jeremias Maerki2005-08-141-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232603 13f79535-47bb-0310-9956-ffa450edef68
* Squashed some JavaDoc warnings.Joerg Pietschmann2005-08-146-13/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232563 13f79535-47bb-0310-9956-ffa450edef68
* Merged branch ↵Jeremias Maerki2005-08-123-22/+52
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock back into Trunk. Revisions: 227462 to HEAD (231261) This adds support for block-level content inside fo:inline. The full set of changes on the branch can be extracted by: svn log http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock -r 227462:231261 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232250 13f79535-47bb-0310-9956-ffa450edef68
* Fix regression that caused duplicate IDs when Reload was pressed in the AWT ↵Jeremias Maerki2005-08-121-3/+2
| | | | | | Viewer. The Fop instance should only be used for one single rendering run. The regression was caused by the introduction of a member variable for the FOTreeBuilder which is used to fetch the rendering results. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232236 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36146 Jeremias Maerki2005-08-121-4/+6
| | | | | | | | Image scaling didn't work in the Java2D based renderers, as the putImage function was referring to the wrong height/width. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232234 13f79535-47bb-0310-9956-ffa450edef68
* Fallback to default value if "compression" value is not given.Jeremias Maerki2005-08-101-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231214 13f79535-47bb-0310-9956-ffa450edef68
* Submitted by: Manuel Mall <mm.at.arcus.com.au>Chris Bowditch2005-08-091-0/+1
| | | | | | ref to bugzilla 36098 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231047 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #35998 Jeremias Maerki2005-08-0511-24/+15
| | | | | | | | Context classes into the tools package. Lonely interface ITableColumnsInfo to the others. Suggested by: Guillaume Déflache <guillaume.at.anyware-tech.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@230499 13f79535-47bb-0310-9956-ffa450edef68
* Removing dependencies of RTF library on the rest of FOP so it can be used ↵Jeremias Maerki2005-08-039-258/+244
| | | | | | | | stand-alone. Submitted by: Guillaume Déflache <guillaume.at.anyware-tech.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227252 13f79535-47bb-0310-9956-ffa450edef68
* Remove "veryveryalpha" warning.Jeremias Maerki2005-08-021-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226975 13f79535-47bb-0310-9956-ffa450edef68
* Removing unused import.Finn Bock2005-07-281-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225744 13f79535-47bb-0310-9956-ffa450edef68