Jeremias Maerki
d54e7a6681
Performance improvement:
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
13 years ago
Jeremias Maerki
1df8c0b1db
Fixed regression introduced by SVN rev 1088079:
Endless loop with empty fo:inline.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1137921 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Peter Hancock
79b6690593
Added an IFDocumentHandler filter for triggering rendering events.
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
13 years ago
Simon Pepping
82163b6a15
Fix checkstyle and findbugs issues
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1135995 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
860ebd1410
Fixed regression introduced with rev 1095887:
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
13 years ago
Vincent Hennebert
a5fd3694f0
Bugfix: alternative text not working in tagged PDF for TIFF images
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1124394 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Peter Hancock
98264493c4
Fixed io exception in MODCAParser caused by the improper use of mark() and 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
13 years ago
Jeremias Maerki
7d31441cb4
More happiness for FindBugs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099857 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
173181b3bd
Bugzilla #51144:
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
13 years ago
Jeremias Maerki
7aed9feb97
Bugzilla #50899:
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
13 years ago
Jeremias Maerki
5e95f76c26
AFP GOCA:
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
13 years ago
Jeremias Maerki
7e27b87ae7
Avert a few possible NPEs, ex. rgc-icc() and named-color() on fo:root.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1097736 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
a7a5c39253
Fix a potential NPE which can apparently happen in very exotic cases (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
13 years ago
Jeremias Maerki
afda1f3897
Update graphics state when applying color.
Optimize painting of rectangles where possible to reduce file sizes.
Some generics and FindBugs fixes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095887 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
eb2415f68e
Make FindBugs happier.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095883 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
8cccb5909b
Added option to place AFP NOPs right before the end of a named page group (page-sequence), rather than after the start.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095882 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
8c3aa5ee7f
Added option for PostScript output to optimize for file size rather than quality.
Fixed some missing PostScript command mappings.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095878 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
cd406a47bf
Log image encoding times.
Make FindBugs happier.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095877 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
b5c893c24c
Enable fox:conversion-mode="bitmap" for PDF output.
Release memory from Batik GVT as early as possible to break some peaks.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095876 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
3d00e4091a
AFP GOCA: Added option to disable GOCA and to control text painting inside GOCA graphics.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095874 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
5094d3ab7b
Forgot a file added for revision 1095739.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095744 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
a5eb05ea8d
AFP GOCA: Work-around for InfoPrint's AFP implementation (AFP Viewer 3.5.4.1, AFP Workbench 2.5.4.1) which seems to lose the character set state over Graphics Data (GAD) boundaries. Setting the SegFlag on the SFI header did not help. Instead, the character set is re-set before each Character String order.
As part of the fix, some additional flags were implemented, but now not used. They might be useful in the future.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095739 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
f6fa22263e
Bugfix for AFP GOCA segments: they were not properly marked as appended which could lead to graphics state changes in some implementations.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095418 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Chris Bowditch
c987144810
Bugzilla #51010: Bookmarks create useless lines in RTF
Patch submitted by Max Aster
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095086 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Chris Bowditch
81125d40f0
Bugzilla #51008: page-number-citation-last does not work in RTF
Patch submitted by Max Aster
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095076 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
427df0fa7d
Added id element to intermediate format to track the origin of content.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1094690 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
98aedc50ba
Added javadoc to createInlineParent method
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1090194 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
a581b1c788
Bugzilla 51032: Fixed regression due to oversight in refactoring text-decoration.
Invalid values properly reported as errors again, instead of causing a NPE.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1089559 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
7c34c8daa8
Proper fix for Bugzilla 50987
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088973 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
ddea0884f8
Fixed regression introduced in rev. 1088079: also remove the element pointed to by restartPosition.getIndex()
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088950 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
d13c4630ad
Bugzilla 50988: Fixed a NullPointerException in case a fo:character was removed due to white-space handling.
Thanks to Matthias Reischenbacher.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088242 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
3b87eee32c
Bugzilla 50987: Fixed an issue where a link was added to the parent tree instead of the related structure element.
Thanks to Martin Koegler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088234 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
2cab35675d
Bugzilla 50986: Fixed an issue where invalid PDF page content was generated due to incorrect ET/EMC sequences.
Thanks to Martin Koegler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088231 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
01aed3db43
Minor code fixups
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088079 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
8ba2be7b37
Properly fix the case of unresolved bookmarks for the intermediate format: bypass serialization of the bookmarks, instead of only its action.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1085944 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
8c443ea886
Fixed regression introduced by Bugzilla 50593: bookmarks pointing to a non-existing internal destination should just trigger a warning.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1085824 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
a4d39cf194
Bugzilla 50965: Fix regression in BlockContainerLayoutManager where margins were not reset after forced breaks.
Thanks to Martin Koegler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1085820 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
c0388acf51
Bugzilla #50763: Implemented non-standard behavior for basic-link areas, such that they take into account the heights of their descendants areas
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1085058 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
823d0e968d
Bugfix: keep-together does not apply to fo:table-cell
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1084205 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
1337f45867
Bugfix: keep-together on a table containing row-spanning cells was not honored
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1083863 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
c5e6d82c6c
toString() method for BFEntry.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1082940 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
b8ac4207fe
Renamed Viewport into InlineViewport
Added {@inheritDoc} comments to make Checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1081822 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
5d664ac15d
Bugzilla #49910: clipping rectangle is wrong on side-regions
Partial fix that works only when the reference-orientation property is set to 0 or 180 on side-regions
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1081554 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
038c3f30ba
Bugzilla #50196: padding-start ignored when table-header/footer is repeated.
Patch submitted by Matthias Reischenbacher
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1079969 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
dbe7807d37
b49835
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1079013 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
aba70fb7a1
Fix for a potential NPE when painting vector graphics with non-sRGB colors.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1074810 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
9170cb0854
Cleanup: catch more specific exception types to capture the intention better + other minor fixups.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073518 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
3274df5c71
Cleanup unused field + dead/commented code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073477 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
0d7a18773e
Fix FindBugs warning...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073468 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
1333b12d43
Better way to eliminate FindBugs warning?
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073116 13f79535-47bb-0310-9956-ffa450edef68
13 years ago