Commit Graph

7543 Commits

Author SHA1 Message Date
Vincent Hennebert
28cd945aca Fixed checkstyle issues.
Factorized duplicated code into getXMLReader method.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@827023 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 10:04:09 +00:00
Vincent Hennebert
7ed63c2e01 Bugfix: a table immediately following a break where changing IPD occurs was causing a NPE (or some content to be swallowed if it's not a table)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@826739 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 18:02:36 +00:00
Vincent Hennebert
0a05a9f129 Route message for missing alt-text property through event notification system
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825964 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 15:53:13 +00:00
Vincent Hennebert
c7e17515ef Made PDFImageHandlerGraphics2D accessible
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825902 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 14:12:06 +00:00
Simon Pepping
37b65497ae Added a command-line option '-catalog' to use a catalog resolver for
the XML and XSLT files. Implemented it in InputHandler.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825875 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 13:12:22 +00:00
Vincent Hennebert
abf9b193b9 Fixed a few checkstyle issues introduced in rev. 825646
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825831 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 10:07:00 +00:00
Adrian Cumiskey
3938e8f60e Application of the patch submitted by Alexander Kiel to improve variable names around Kerning and KnuthElement (see https://issues.apache.org/bugzilla/show_bug.cgi?id=48003).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825646 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 20:43:13 +00:00
Adrian Cumiskey
ea58935a59 Documented with generics comments.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825566 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 17:07:08 +00:00
Vincent Hennebert
5dd6862ad1 Added mappings for yet unimplemented FOs.
Return /NonStruct instead of null if no mapping is found for a given object, in order to at least generate a valid PDF


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825555 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 16:25:08 +00:00
Vincent Hennebert
113a028123 Merged SimpleStructureTree and ParsedStructureTree classes into a single one, used by both TransformerNodeEndProcessing and intermediate XML parsers
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825504 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 14:25:28 +00:00
Vincent Hennebert
a3960ce47f Made the structure tree processing chain more robust by removing any assumption about prefix names for namespaces.
Avoid warnings issued by reduceFOTree.xsl when FO file contains foreign elements (like MathML).
SimpleStructureTree: replaced XPath query with simple DOM method calls.
Cleaned up, simplified and re-organized reduceFOTree and addPtr stylesheets.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825461 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 10:47:34 +00:00
Vincent Hennebert
928e650d8c Re-format addPtr.xsl to make it readable.
Also add a ptr attribute to fo:table-and-caption and fo:table-caption, even if they are not supported, in order to avoid a crash.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824845 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 17:13:39 +00:00
Vincent Hennebert
26cd587bf6 Merged changes from Trunk up to revision 824832
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824839 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 16:41:13 +00:00
Vincent Hennebert
d3551e5d34 Implemented rendering of structure tree to Area Tree XML and parsing back from it
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824827 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 16:14:12 +00:00
Vincent Hennebert
e3e19e881a Bugfix: render all background images as artifacts
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824808 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 15:34:29 +00:00
Maximilian Berger
a267cc5fa7 Updated ant to run checkstyle 5. This is now supported in lib/build rather than the previously used checkstyle.home
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824735 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 13:04:51 +00:00
Vincent Hennebert
c14b33ab1d Removed svn:executable property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824686 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 10:52:29 +00:00
Vincent Hennebert
12270f3f49 Fixed handling of percentage values for provisional-label-separation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824682 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 10:39:49 +00:00
Vincent Hennebert
f5415501c7 Bugzilla 47835: fixed handling of percentage values for provisional-distance-between-starts. Patch submitted by Jonathan Levinson
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824668 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 10:25:42 +00:00
Vincent Hennebert
1958fe7719 Reset imageReference once it's no longer needed
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824444 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 18:04:07 +00:00
Vincent Hennebert
9198590b59 Implemented accessibility in PDFRenderer
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824441 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 17:44:44 +00:00
Vincent Hennebert
73c1cddb32 Switched parameters of separateTextElements and beginTextObjectAccess, for consistency with saveGraphicsState and beginMarkedContentSequence
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824439 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 17:39:53 +00:00
Vincent Hennebert
36243dc349 Extracted code related to logical structure out of PDFDocumentHandler and put it in its own PDFLogicalStructureHandler class. Vastly simplified the building of the structure tree in the same time.
Fixed bug occurring when a block contains only one line of text: the generated PDF was illegal
Fixed bug in the generation of the structural parent tree: values in a number tree must be indirect references (note: other number trees in the document may still be wrongly generated)


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824407 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 16:26:00 +00:00
Vincent Hennebert
164a25d6eb Removed svn:executable property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824294 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 10:58:06 +00:00
Chris Bowditch
de3f6e8dd0 add support for positioning Page Overlay in AFP Renderer/Painter
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824249 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 07:26:03 +00:00
Adrian Cumiskey
f6a828b695 If a JAI library is not available when creating a FOP distribution build we attempt to download one and make it available to the Ant build process.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@823685 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 20:59:11 +00:00
Vincent Hennebert
618e88ae22 Removed unnecessary languageStack field
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@822810 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 17:34:29 +00:00
Vincent Hennebert
b59502d64e Fixed support for links and images in the Intermediate Format
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@822808 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 17:31:13 +00:00
Jeremias Maerki
100d17a594 Allow "-if [mime] out" as for "-at".
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@822753 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 14:22:35 +00:00
Jeremias Maerki
f59abd860a Bugzilla #47953:
Bugfix for NPE: referencedFontsMatcher can also be null, not just localMatcher.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@822742 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 13:53:33 +00:00
Vincent Hennebert
4b4ea04636 Removed svn:executable property
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@821902 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 16:17:13 +00:00
Vincent Hennebert
aeea3a9e1b Removed empty directory
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@821757 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 11:12:42 +00:00
Jeremias Maerki
648f47b7f4 Fixed possible NPE.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@821064 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 15:41:31 +00:00
Jeremias Maerki
7cc06986c0 Added support for specifying referenced fonts per renderer in addition to the general match list. If any of the two match lists (if specified) match a font, it is not embedded.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@821058 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 15:31:14 +00:00
Jeremias Maerki
b6638c65c9 Added support for creating thumbnails or preview bitmaps of fixed size for PNG and TIFF output.
Documentation update for bitmap output.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820939 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 09:19:12 +00:00
Jeremias Maerki
05c9bf8726 Javadocs: Removed all <tt> occurrences with <code> or {@link}.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820689 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 15:36:10 +00:00
Jeremias Maerki
babc376fe8 Some javadoc fixes: @code -> @link
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820672 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 14:48:27 +00:00
Jeremias Maerki
5ad3308501 Added a DocumentHandler implementation for PNG output including multi-file output support.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820637 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 12:56:26 +00:00
Jeremias Maerki
404eacbf2c As per discussions on fop-dev:
- Removed Checkstyle 3.5 profile.
- Removed HiddenFieldCheck and RedundantThrowsCheck.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820554 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 07:55:27 +00:00
Vincent Hennebert
834d6b5862 Extracted code into new processStructureTree method
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@819591 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 15:35:03 +00:00
Vincent Hennebert
3ec57c684b Implemented parsing of structure trees from IF XML files.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@819585 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 15:27:30 +00:00
Jeremias Maerki
f8f3edf87a Bugzilla #46883:
Reverting revision 807010 because it creates faulty GOCA data. Have debugged but haven't immediately found the cause. Due to time restrictions I'm currently just reverting the change to fix the regression.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@819542 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 14:10:27 +00:00
Jeremias Maerki
2d26284592 Attach cause to RuntimeException when available. Otherwise, the original exception can be swallowed which makes error forensics more difficult.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@819205 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 20:38:23 +00:00
Maximilian Berger
b4df075d6d Font name was wrong
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@818441 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 10:55:51 +00:00
Maximilian Berger
4e970b8a7d Added Testcase from Bug #47872 (thanks to alex kiel) and fixed it in FontLoader
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@818424 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 10:09:55 +00:00
Vincent Hennebert
dbaf63a64d Factorized into a new class the parsing of the reduced FO tree, that was duplicated in IFSerializer and PDFDocumentHandler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@817617 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 11:49:06 +00:00
Jeremias Maerki
a30e3c29fd Trying to clear up afp:include-page-segment as there are questions every now and then.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@817584 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 10:39:43 +00:00
Vincent Hennebert
0e5a789b6b Merged changes from Trunk up to revision 816269
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@816718 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 17:10:42 +00:00
Jeremias Maerki
9b49126cd6 Changed SVG output to produce coordinates in points rather than millipoints. Millipoint coordinates can become quite large and can cause trouble later. This is related to (but not fixing) Bugzilla #47641.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@816116 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 09:58:48 +00:00
Jeremias Maerki
19e71503b1 Added support for the #CMYK pseudo-profile supported by some commercial XSL implementations on the rgb-icc() function.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@815938 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 19:38:13 +00:00