aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
Commit message (Collapse)AuthorAgeFilesLines
* Addressed findbugs and checkstyle regressionsTemp_ImproveAccessibilityPeter Hancock2012-02-0641-43/+104
| | | | | | | | | Findbugs report generated with version 1.3.9. Checkstyle report generated with version 5.5. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1240963 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup associated with rev 1236718Peter Hancock2012-01-313-21/+0
| | | | | | | Removed unused structure tree events. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1238313 13f79535-47bb-0310-9956-ffa450edef68
* Associate structure tree elements directly to render contentPeter Hancock2012-01-2745-761/+1528
| | | | | | | | | | * Defer the binding of PCData to struct elems using a placeholder mechanism. * Translate text nodes to marked-content sequences in IF structure tree. * Replace ptr with structure tree element. * Re-order table footers so they appear at the end of the structure tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1236718 13f79535-47bb-0310-9956-ffa450edef68
* Removed the DOM representation of the structure tree.Vincent Hennebert2011-11-2439-633/+994
| | | | | | | | | | | | | | | The structure tree is now directly converted into corresponding PDF objects. When going the IF route, the structure tree is stored in the form of SAX events that will be re-played when it's time to stream them into the output. This may still change. * Extracted RFC3066 methods from XMLUtil into new LanguageTags class that can be re-used in a non-XML context. * Dropped support for accessibility in the old Area Tree XML. * Added support for the xml:lang property on fo:root, so that the global language can be set for the document without retrieving the language from the first page-sequence. * Renamed StructureTreeBuilder into more appropriate StructureTreeEventHandler (same for applicable sub-classes) * Renamed StructureTreeBuildingFOEventHandler into FO2StructureTreeConverter and added test case * Added test cases for classes in the StructureTreeEventHandler hierarchy git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1205935 13f79535-47bb-0310-9956-ffa450edef68
* Removed the FO document pre-processing step that was adding ptr and creating ↵Vincent Hennebert2011-10-2449-484/+1717
| | | | | | | | | | | | | | | a reduced FO tree. * Removed addPtr.xsl and reduceFOTree.xsl * Implemented Common Accessibility properties on objects that support them * Added a special implementation of FOEventHandler to build the structure tree * Added mockito library and its dependencies * Added mocks for some FO nodes and properties * Removed FOTreeUnitTester and converted it into a re-usable FODocumentParser class * Re-worked table FO test cases accordingly git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1188205 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#512010: Simplification of the build.Peter Hancock2011-10-191-3/+2
| | | | | | | Reduced code duplication and layout engine tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1186070 13f79535-47bb-0310-9956-ffa450edef68
* Restored PDFDocumentGraphics2D functionality.Jeremias Maerki2011-10-152-6/+14
| | | | | | | | Bugfix: NPE after PDFDocumentGraphics2D.create() due to missing font setup and other missing initializations. Bugfix: Properly handle state in PDFGraphics2D.drawString(). Added an example class demonstrating the use of PDFDocumentGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1183620 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#51962: Bugfix for when the last simple-page-master referenced in a ↵Peter Hancock2011-10-112-2/+30
| | | | | | page-sequence-master is not chosen when force-page-count=odd. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1181660 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a findbugs warning introduced in rev#1177251Peter Hancock2011-10-031-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1178350 13f79535-47bb-0310-9956-ffa450edef68
* Fix FO tree hierarchy: BasicLink shouldn't inherit from InlinePeter Hancock2011-09-293-4/+46
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177251 13f79535-47bb-0310-9956-ffa450edef68
* Various small fixesSimon Pepping2011-09-295-27/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177228 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#48696 version 4: Bugfix for color model in IOCA IDE structure ↵Peter Hancock2011-09-262-2/+4
| | | | | | parameter for 4- and 8-bit grayscale images. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175808 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#51760: PS images stored as an embedded file which has no length limit.Peter Hancock2011-09-261-24/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175764 13f79535-47bb-0310-9956-ffa450edef68
* PDFFactory responsible for asdigning name to a subset font.Peter Hancock2011-09-265-42/+58
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175754 13f79535-47bb-0310-9956-ffa450edef68
* Proper fix for Bugzilla #51789: no non-ascii characters permittedVincent Hennebert2011-09-122-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169780 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51790: source file contains non-ascii characterVincent Hennebert2011-09-121-6/+0
| | | | | | | Removed @author tags git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169766 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51789: removed non-ascii characters in source filesVincent Hennebert2011-09-123-4/+4
| | | | | | | Patch submitted by Christopher Yeleighton git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169758 13f79535-47bb-0310-9956-ffa450edef68
* Bugzill#51530: Improved support for EBCDIC encoded double byte fonts fo AFP.Peter Hancock2011-09-057-107/+282
| | | | | | | Submitted by: Mehdi Houshmand <med1985.at.gmail.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1165223 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla#51205: Corrected typographical errors in AFPBase12FontCollection.Peter Hancock2011-09-051-4/+4
| | | | | | | Submitted by: Mehdi Houshmand <med1985.at.gmail.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1165195 13f79535-47bb-0310-9956-ffa450edef68
* Improved fix for bugzilla#48062Peter Hancock2011-08-258-71/+69
| | | | | | | Bug relates to PCL painter thread safetly. Previous fix in rev 895012 worked by synchronizing methods of a static instance of Java2DFontMetrics. This fix uses a unique instance for per thread. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1161612 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in AFP where an ArrayOutofBoundsException is throwqn when ↵Peter Hancock2011-08-221-32/+28
| | | | | | embedding a Page Segment. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160298 13f79535-47bb-0310-9956-ffa450edef68
* Fixed checkstyle warningsPeter Hancock2011-08-221-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160172 13f79535-47bb-0310-9956-ffa450edef68
* Removed debug output to System.outVincent Hennebert2011-08-091-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1155396 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51596: A composite glyph can be remapped more than once in a TTF ↵Vincent Hennebert2011-08-083-188/+246
| | | | | | | | | subset, resulting in garbled character Test and clean-up provided by Mehdi Houshmand git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1155024 13f79535-47bb-0310-9956-ffa450edef68
* Added support for 128bit encryption in PDF output. Based on work by Michael ↵Vincent Hennebert2011-08-0813-383/+846
| | | | | | Rubin. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1154998 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in AFP where the object area axes of an Include Object was ↵Peter Hancock2011-07-271-2/+2
| | | | | | | | | incorrectly set when rotated by 180 Removed non-ascii characters in a comment git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1151469 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in AFP where the object area axes of an Include Object was ↵Peter Hancock2011-07-275-149/+111
| | | | | | incorrectly set when rotated by 180 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1151452 13f79535-47bb-0310-9956-ffa450edef68
* Attempt at making the remapComposite "more readable".Jeremias Maerki2011-07-271-13/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1151447 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in TTF subsetting where a composite glyph could get remapped ↵Jeremias Maerki2011-07-261-38/+49
| | | | | | more than once resulting in garbled character. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1151195 13f79535-47bb-0310-9956-ffa450edef68
* Removed the lastMediumMap variable and the check to omit the IMM if it ↵Jeremias Maerki2011-07-081-5/+1
| | | | | | doesn't change. I wonder why I came up with that. This can lead, among other things, to problems when an AFP file is split. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1144351 13f79535-47bb-0310-9956-ffa450edef68
* Fixed some FindBugs issues.Jeremias Maerki2011-07-023-19/+18
| | | | | | | Added some generics. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1142192 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: select the right font to paint replacement glyphs. This used to ↵Jeremias Maerki2011-07-021-11/+23
| | | | | | paint some characters on top of each others when a font with an auxiliary encoding was active. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1142190 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: AFMFile sometimes indirectly caused wrong assignments of char widths ↵Jeremias Maerki2011-07-021-36/+64
| | | | | | | | | to code points in a single-byte encoding due to mapping multiple characters to the same code points (see overridePrimaryEncoding). Fixed some FindBugs issues. Added some generics. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1142189 13f79535-47bb-0310-9956-ffa450edef68
* Removed fallback mechanism in AbstractCodePointMapping. This is superfluous ↵Jeremias Maerki2011-07-021-40/+2
| | | | | | now that SingleByteFont handles all substitutions. This actually fixes a bug: the glyph "minus" was painted using "hyphen" but used the width of "minus" due to this fallback mechanism. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1142188 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a typo and two FindBugs issues.Jeremias Maerki2011-06-301-14/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1141464 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a multi-threading bug for SVG images included through svg:image inside ↵Jeremias Maerki2011-06-301-4/+12
| | | | | | SVG document. Similar to the fix required in PDFImageHandlerSVG. The SVG DOM must be cloned because Batik attaches the CSS parser to the DOM tree and manipulates the same. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1141461 13f79535-47bb-0310-9956-ffa450edef68
* Fixed regression introduced by rev 1137971:Jeremias Maerki2011-06-211-7/+10
| | | | | | Bi-level images that are generated as page segments and don't need to be resampled produced garbled output because the size of the image data got set to wrong values. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1138036 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvement:Jeremias Maerki2011-06-212-239/+304
| | | | | | The code is now checking re-use of an already encoded image before actually encoding it. Before, the image was encoded in every case, but only really embedded the first time. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1137971 13f79535-47bb-0310-9956-ffa450edef68
* Fixed regression introduced by SVN rev 1088079:Jeremias Maerki2011-06-211-4/+4
| | | | | | Endless loop with empty fo:inline. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1137921 13f79535-47bb-0310-9956-ffa450edef68
* Added an IFDocumentHandler filter for triggering rendering events. Peter Hancock2011-06-204-1/+64
| | | | | | | Created an Event that captures an end page event with the page number. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1137566 13f79535-47bb-0310-9956-ffa450edef68
* Fix checkstyle and findbugs issuesSimon Pepping2011-06-157-23/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1135995 13f79535-47bb-0310-9956-ffa450edef68
* Fixed regression introduced with rev 1095887:Jeremias Maerki2011-06-143-30/+23
| | | | | | | Painting state was not properly handled when painting text runs which could lead to missing color setters and therefore wrong font colors. Removed save/restoreGraphicsState from PDFTextUtil as that doesn't update the painting state. Instead the code is now using equivalent methods from PDFGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1135540 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: alternative text not working in tagged PDF for TIFF imagesVincent Hennebert2011-05-184-80/+83
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1124394 13f79535-47bb-0310-9956-ffa450edef68
* Fixed io exception in MODCAParser caused by the improper use of mark() and ↵Peter Hancock2011-05-174-354/+373
| | | | | | | | | reset() on the MODCA data input stream. See bugzilla 50909. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1104135 13f79535-47bb-0310-9956-ffa450edef68
* More happiness for FindBugs.Jeremias Maerki2011-05-051-11/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099857 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51144:Jeremias Maerki2011-05-052-11/+3
| | | | | | | Removed invalid entries in ToUnicode table of CID subset fonts. Submitted by: Mehdi Houshmand <med1985.at.gmail.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099852 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #50899:Jeremias Maerki2011-05-051-3/+5
| | | | | | | Fixed mapping of font weights between CSS values and TextAttribute.WEIGHT_*. Submitted by: Glenn Adams <glenn.at.skynav.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099845 13f79535-47bb-0310-9956-ffa450edef68
* AFP GOCA:Jeremias Maerki2011-05-056-158/+195
| | | | | | | | fonts were not embedded from within AFPGraphics2D. Changed the way FOP fonts are selected based on Batik's GVT fonts to match the behaviour of PDF/PS output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099829 13f79535-47bb-0310-9956-ffa450edef68
* Avert a few possible NPEs, ex. rgc-icc() and named-color() on fo:root.Jeremias Maerki2011-04-293-3/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1097736 13f79535-47bb-0310-9956-ffa450edef68
* Fix a potential NPE which can apparently happen in very exotic cases ↵Jeremias Maerki2011-04-221-1/+6
| | | | | | (actually, it rather points to a Java class library bug). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095895 13f79535-47bb-0310-9956-ffa450edef68