]> source.dussan.org Git - xmlgraphics-fop.git/log
xmlgraphics-fop.git
16 years agoExtracted most of the code in CodePointMapping (generated by XSLT) into a base class...
Jeremias Maerki [Sat, 16 Feb 2008 12:28:48 +0000 (12:28 +0000)]
Extracted most of the code in CodePointMapping (generated by XSLT) into a base class for easier maintenance and proper Javadocs.
Deprecated FOP's copy of Glyphs.java.
Took a different approach at handling mapping alternatives for single-byte fonts. The AFM now only lists the main character. Substitution is done through Glyphs.java later in CodePointMapping.
Fixed a problem in Type1FontLoader where the PFM overrides asc/desc/cap/x even though the AFM provides the values. It showed itself because the URW Symbol font has wrong values in the PFM.
Added a note to myself in Type1FontLoader to implement the "Flags" value. The whole thing still seems to work without that part.
Added a glyph name list to the CodePointMapping so we can work with the original list from the AFM. Otherwise, various mapping operations to and from resulted in unwanted mappings (because the mappings are not necessarily 1:1) and in the end the PDF received an incorrect Encoding map. Now there's no such problem anymore.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628280 13f79535-47bb-0310-9956-ffa450edef68

16 years agorowStarted doesn't need to be set in the signalNewRow method. If it is, it will preve...
Vincent Hennebert [Fri, 15 Feb 2008 18:33:12 +0000 (18:33 +0000)]
rowStarted doesn't need to be set in the signalNewRow method. If it is, it will prevent the startTablePart event from being triggered on RowGroupBuilder, in addChildNode. This will lead to a NPE being thrown in CollapsingBorderResolver because it would be improperly set up.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628140 13f79535-47bb-0310-9956-ffa450edef68

16 years agobreak-after set on the last child of a row-spanning cell must apply to the last row...
Vincent Hennebert [Thu, 14 Feb 2008 12:09:05 +0000 (12:09 +0000)]
break-after set on the last child of a row-spanning cell must apply to the last row spanned by the cell

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627721 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCreated Constants for unit descriptions
Maximilian Berger [Thu, 14 Feb 2008 11:57:05 +0000 (11:57 +0000)]
Created Constants for unit descriptions

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627719 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSimplified the detection of double as integer
Vincent Hennebert [Thu, 14 Feb 2008 11:36:01 +0000 (11:36 +0000)]
Simplified the detection of double as integer

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627712 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix problem with alternate Unicode code point overriding existing better ones in...
Jeremias Maerki [Thu, 14 Feb 2008 10:41:26 +0000 (10:41 +0000)]
Fix problem with alternate Unicode code point overriding existing better ones in CodePointMapping (ex. a char code for NBSP was used in place of SPACE for non-standard encodings).
Made PFM completely optional if an AFM is available. Widths and Kerning are now also read from the AFM. Fallbacks for missing values are in place. If both AFM and PFM are available, both are used to get the best possible result for certain metrics.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627702 13f79535-47bb-0310-9956-ffa450edef68

16 years agoWhen I first saw this it surprised me, it seems to have been here for quite some...
Adrian Cumiskey [Thu, 14 Feb 2008 10:12:48 +0000 (10:12 +0000)]
When I first saw this it surprised me, it seems to have been here for quite some time.
The code block directly following this if/else condition was identical so I removed the copy/paste duplication and refactored it.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627698 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded support for Type 1 fonts which don't use the AdobeStandardEncoding for PDF...
Jeremias Maerki [Thu, 14 Feb 2008 08:12:34 +0000 (08:12 +0000)]
Added support for Type 1 fonts which don't use the AdobeStandardEncoding for PDF and PS output. Details:
Added an Type 1 AFM parser (only basic ltr script fonts are properly supported).
Font loading changed slightly to allow loading an AFM in addition to a PFM.
Added some mapping functionality to CodePointMapping. Now we also build custom CodePointMapping instances from AFM files and use it in SingleByteFonts.
Changed more PDF object classes to make use of the generic PDFDictionary and PDFArray base classes.
Type 1 Fonts with a special encoding now register their encoding in the Encoding value of the font dictionary so the mapping is correct. For PS this isn't necessary as the interpreter just uses the font's default encoding.
Refactored CMap building code to it can also be used outside the PDF context. A CMap can now also be built from a single byte encoding.
Update of XML Graphics Commons snapshot.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627679 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMoved to the FO tree stage the check for break-before/after on table-row while spanni...
Vincent Hennebert [Wed, 13 Feb 2008 20:10:01 +0000 (20:10 +0000)]
Moved to the FO tree stage the check for break-before/after on table-row while spanning in progress, and fixed bug #44321 as well

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627576 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded support for breaks before and after table cells
Vincent Hennebert [Wed, 13 Feb 2008 18:11:06 +0000 (18:11 +0000)]
Added support for breaks before and after table cells

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627553 13f79535-47bb-0310-9956-ffa450edef68

16 years agoEasy way to force the discarding of the user's font cache file (especially after...
Jeremias Maerki [Wed, 13 Feb 2008 15:57:01 +0000 (15:57 +0000)]
Easy way to force the discarding of the user's font cache file (especially after the recent changes).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627497 13f79535-47bb-0310-9956-ffa450edef68

16 years agoReplace useless javadoc comment.
Jeremias Maerki [Wed, 13 Feb 2008 15:55:34 +0000 (15:55 +0000)]
Replace useless javadoc comment.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627495 13f79535-47bb-0310-9956-ffa450edef68

16 years agoEnsured all SVN properties are set equally
Maximilian Berger [Wed, 13 Feb 2008 12:03:30 +0000 (12:03 +0000)]
Ensured all SVN properties are set equally

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627367 13f79535-47bb-0310-9956-ffa450edef68

16 years agoEnsured all SVN properties are set equally
Maximilian Berger [Wed, 13 Feb 2008 09:35:01 +0000 (09:35 +0000)]
Ensured all SVN properties are set equally

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627324 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded *.xml to svn:ignore
Maximilian Berger [Wed, 13 Feb 2008 09:12:25 +0000 (09:12 +0000)]
Added *.xml to svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627318 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed wrong numbering of cells
Vincent Hennebert [Tue, 12 Feb 2008 11:12:25 +0000 (11:12 +0000)]
Fixed wrong numbering of cells

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620761 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSimplification.
Jeremias Maerki [Tue, 12 Feb 2008 10:45:50 +0000 (10:45 +0000)]
Simplification.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620750 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla #44393:
Jeremias Maerki [Tue, 12 Feb 2008 08:23:04 +0000 (08:23 +0000)]
Bugzilla #44393:
Recognize the newly used EN_AUTO constant for break values. Other LMs generate a -1 value for this case.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620723 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMissing file from r620283
Andreas L. Delmelle [Mon, 11 Feb 2008 18:36:14 +0000 (18:36 +0000)]
Missing file from r620283

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDisabled region-body_column-count_bug#37468 testcase because of bug 44393
Vincent Hennebert [Mon, 11 Feb 2008 18:24:00 +0000 (18:24 +0000)]
Disabled region-body_column-count_bug#37468 testcase because of bug 44393

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620567 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBetter javadoc for break class
Vincent Hennebert [Mon, 11 Feb 2008 18:18:13 +0000 (18:18 +0000)]
Better javadoc for break class

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620565 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed illegal character in the file
Vincent Hennebert [Mon, 11 Feb 2008 18:11:09 +0000 (18:11 +0000)]
Fixed illegal character in the file

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620559 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded full support for breaks inside table-cell elements
Vincent Hennebert [Mon, 11 Feb 2008 18:10:09 +0000 (18:10 +0000)]
Added full support for breaks inside table-cell elements

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620558 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla 41631: Percentage resolution for arguments to proportional-column-width()
Andreas L. Delmelle [Sun, 10 Feb 2008 13:42:39 +0000 (13:42 +0000)]
Bugzilla 41631: Percentage resolution for arguments to proportional-column-width()

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620285 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCorrection/Rectification of changes made in r617989:
Andreas L. Delmelle [Sun, 10 Feb 2008 13:17:20 +0000 (13:17 +0000)]
Correction/Rectification of changes made in r617989:
* adjustment in ColorUtil to cater for the change
* added check to the color_1.xml testcase, checking for bug 43705

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620283 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMissing file from r620272
Andreas L. Delmelle [Sun, 10 Feb 2008 13:07:34 +0000 (13:07 +0000)]
Missing file from r620272

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620278 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTweak: wrap numeric values internally in Integers or Longs if possible, Doubles only...
Andreas L. Delmelle [Sun, 10 Feb 2008 13:01:07 +0000 (13:01 +0000)]
Tweak: wrap numeric values internally in Integers or Longs if possible, Doubles only if necessary.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620277 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRevisit background-position shorthand implementation: always convert to percentages...
Andreas L. Delmelle [Sun, 10 Feb 2008 12:50:47 +0000 (12:50 +0000)]
Revisit background-position shorthand implementation: always convert to percentages (more possibilities/precision).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620276 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSome minor tweaks:
Andreas L. Delmelle [Sun, 10 Feb 2008 12:31:46 +0000 (12:31 +0000)]
Some minor tweaks:
* added convenience shortcut to PropertyInfo to get to the user agent.
* replaced occurrences to use the shortcut in PropertyParser and RGBColorFunction.
* PropertyParser -> 0% of a length always yields FixedLength.ZERO_FIXED_LENGTH

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620272 13f79535-47bb-0310-9956-ffa450edef68

16 years agoIn addKnuthElementsForBorderPaddingXXX, if the returnlist is a
Simon Pepping [Fri, 8 Feb 2008 19:20:27 +0000 (19:20 +0000)]
In addKnuthElementsForBorderPaddingXXX, if the returnlist is a
BlockKnuthSequence, the border and padding should be added to the
first or last paragraph inside it, but it is too late to do that
now. At least, avoid adding it to the bpd sequence.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619979 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTestcase for bug #43676, which is now fixed
Vincent Hennebert [Fri, 8 Feb 2008 15:59:21 +0000 (15:59 +0000)]
Testcase for bug #43676, which is now fixed

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619923 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded missing width for Euro glyph.
Jeremias Maerki [Fri, 8 Feb 2008 13:23:47 +0000 (13:23 +0000)]
Added missing width for Euro glyph.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619870 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAlso display the column index in the toString method
Vincent Hennebert [Fri, 8 Feb 2008 12:14:01 +0000 (12:14 +0000)]
Also display the column index in the toString method

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619856 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoved the 900 penalty mechanism which anyway almost always produced visually bad...
Vincent Hennebert [Fri, 8 Feb 2008 12:11:04 +0000 (12:11 +0000)]
Removed the 900 penalty mechanism which anyway almost always produced visually bad results. Now the first step for a row is computed so that each cell starting on it can contribute some content.
Used a similar mechanism to replace backtracking: the current row is now allowed to grow as long as there is not enough space on the current page to make the next row fit. The next row is "delayed", so this mechanism is called "row-delaying"

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619854 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded a clarification that this bug affected PDF/A compliance.
Jeremias Maerki [Fri, 8 Feb 2008 07:27:06 +0000 (07:27 +0000)]
Added a clarification that this bug affected PDF/A compliance.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619790 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTweak: modify PercentLength.toString() to return a value that facilitates debugging.
Andreas L. Delmelle [Thu, 7 Feb 2008 22:41:26 +0000 (22:41 +0000)]
Tweak: modify PercentLength.toString() to return a value that facilitates debugging.
Moved the original code to a getString() implementation, which is now used by the fotree test suite.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619674 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTweak: early percentage resolution by the parser (if the base is known and absolute...
Andreas L. Delmelle [Thu, 7 Feb 2008 22:32:27 +0000 (22:32 +0000)]
Tweak: early percentage resolution by the parser (if the base is known and absolute). Reduces the number of PercentLength instances in favor of cached FixedLengths.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619670 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugfix for date formatting with negative time zones in the PDF's Info object.
Jeremias Maerki [Thu, 7 Feb 2008 15:42:03 +0000 (15:42 +0000)]
Bugfix for date formatting with negative time zones in the PDF's Info object.
Update of xmlgraphics-commons-1.3.jar because of a similar bug with formatting dates in XMP.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619461 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded an option to disable the default sRGB profile in PDF output for those who don...
Jeremias Maerki [Thu, 7 Feb 2008 14:02:44 +0000 (14:02 +0000)]
Added an option to disable the default sRGB profile in PDF output for those who don't care about color fidelity, but care about PDF file size. Note that this option is not possible if PDF/A, PDF/X or an output profile is used. Makes simple PDFs about 4KB smaller. Ha!

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619417 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla #36391:
Jeremias Maerki [Wed, 6 Feb 2008 14:07:03 +0000 (14:07 +0000)]
Bugzilla #36391:
Fixed problem with positioning of content when reference-orientation="180" is used. CTM is now correct. It is updated after the height of the content is known. Instead of somehow inverting the element list, I've simply declared this case non-breakable, i.e. I generate one box.

Fixed a few other problems mostly occurring when rotating block-container content by 90 or 270 degrees plus a few remaining auto-height handling problems. This involved switching off some sometimes unwanted side-effects from auto-updating the BPD in some area classes.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618992 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFOX_TRANSFORM constant should be static.
Jeremias Maerki [Tue, 5 Feb 2008 12:35:42 +0000 (12:35 +0000)]
FOX_TRANSFORM constant should be static.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618627 13f79535-47bb-0310-9956-ffa450edef68

16 years agoChange PDFPage to use PDFDictionary in order to make it possible to better set MediaB...
Jeremias Maerki [Tue, 5 Feb 2008 12:34:56 +0000 (12:34 +0000)]
Change PDFPage to use PDFDictionary in order to make it possible to better set MediaBox/TrimBox/BleedBox.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618626 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded testcase for Bugzilla 44343
Andreas L. Delmelle [Mon, 4 Feb 2008 22:26:53 +0000 (22:26 +0000)]
Added testcase for Bugzilla 44343

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618470 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed minor typo I stumbled upon while doing something completely unrelated
Vincent Hennebert [Mon, 4 Feb 2008 11:25:13 +0000 (11:25 +0000)]
Fixed minor typo I stumbled upon while doing something completely unrelated

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618239 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla 43705:
Andreas L. Delmelle [Sun, 3 Feb 2008 14:11:40 +0000 (14:11 +0000)]
Bugzilla 43705:
Fixed a bug when the rgb-icc() function was used before the fo:declarations,
or in documents without fo:declarations. Function now correctly (?) reverts
to the sRGB fallback in those cases.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617989 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded very basic parsing for the xml:lang shorthand.
Andreas L. Delmelle [Sun, 3 Feb 2008 12:05:49 +0000 (12:05 +0000)]
Added very basic parsing for the xml:lang shorthand.
No validation of the specified value, but the language and country
properties now do take the shorthand into account to determine their
value.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617976 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSlight correction for pixel-values: pass the ratio of pixels-per-point into FixedLeng...
Andreas L. Delmelle [Sat, 2 Feb 2008 22:18:30 +0000 (22:18 +0000)]
Slight correction for pixel-values: pass the ratio of pixels-per-point into FixedLength.getInstance()

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617909 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFurther improvement in FixedLength:
Andreas L. Delmelle [Sat, 2 Feb 2008 22:11:12 +0000 (22:11 +0000)]
Further improvement in FixedLength:
* added a special ZERO_FIXED_LENGTH instance
* store only non-zero values in the PropertyCache

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617907 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFurther cleanup/refinement of FixedLength:
Andreas L. Delmelle [Sat, 2 Feb 2008 15:13:40 +0000 (15:13 +0000)]
Further cleanup/refinement of FixedLength:
* improve consistency in use of the PropertyCache
  remove public constructor ->  replaced by getInstance() in a handful of classes
* added a sourceResolution parameter to getInstance() and the private
  constructor to allow better handling of device-dependent units (px)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617812 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed transcoder test after yesterday's changes.
Jeremias Maerki [Sat, 2 Feb 2008 06:45:39 +0000 (06:45 +0000)]
Fixed transcoder test after yesterday's changes.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617765 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMinor cleanup/improvement:
Andreas L. Delmelle [Sat, 2 Feb 2008 00:06:29 +0000 (00:06 +0000)]
Minor cleanup/improvement:
- FontSizePropertyMaker: remove redundant casts (FixedLength already casts the doubles internally)
- FixedLength: reduce visibility of 'fishy' convert() method (not used anywhere else)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617716 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla 44343:
Andreas L. Delmelle [Fri, 1 Feb 2008 23:30:13 +0000 (23:30 +0000)]
Bugzilla 44343:
Fixed a bug when using relative (smaller/larger) font-sizes in combination with percentages.
Percentages now resolved as per the spec (XSL-FO 1.1 7.9.4):
"A percentage value specifies an absolute font size relative to the parent element's font-size."

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617708 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a note about color space overrides which currently aren't supported for natively...
Jeremias Maerki [Fri, 1 Feb 2008 16:31:24 +0000 (16:31 +0000)]
Add a note about color space overrides which currently aren't supported for natively handled images, yet.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617550 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMove sRGB installation into the PDF library. That way it can be used in PDFDocumentGr...
Jeremias Maerki [Fri, 1 Feb 2008 16:02:33 +0000 (16:02 +0000)]
Move sRGB installation into the PDF library. That way it can be used in PDFDocumentGraphics2D, too (via AbstractImageAdapter).
Ensures correct handling of sRGB images in PDFTranscoder.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617531 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAlphaRasterImage now knows how to deal with TYPE_INT Rasters.
Jeremias Maerki [Fri, 1 Feb 2008 14:58:30 +0000 (14:58 +0000)]
AlphaRasterImage now knows how to deal with TYPE_INT Rasters.
Streamlined image handling in Graphics2D.
Support natively handling CCITT images in SVG images.
Add fallback to device RGB if sRGB isn't set up as the default color space in PDF.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617512 13f79535-47bb-0310-9956-ffa450edef68

16 years agoImplemented drawRenderedImage() which fixes painting of PNG images embedded inside...
Jeremias Maerki [Fri, 1 Feb 2008 11:11:02 +0000 (11:11 +0000)]
Implemented drawRenderedImage() which fixes painting of PNG images embedded inside SVG images.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617473 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate lib README based on recent findings.
Jeremias Maerki [Thu, 31 Jan 2008 13:44:46 +0000 (13:44 +0000)]
Update lib README based on recent findings.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617126 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoved the Dijkstra stuff as it was moved to Commons.
Jeremias Maerki [Wed, 30 Jan 2008 16:03:00 +0000 (16:03 +0000)]
Removed the Dijkstra stuff as it was moved to Commons.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616798 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoving the previous entry because the new one basically covers the other, too.
Jeremias Maerki [Wed, 30 Jan 2008 09:05:30 +0000 (09:05 +0000)]
Removing the previous entry because the new one basically covers the other, too.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616694 13f79535-47bb-0310-9956-ffa450edef68

16 years ago"cvt ", "fpgm" and "prep" are all optional tables in TrueType. Some PDF viewers fail...
Jeremias Maerki [Wed, 30 Jan 2008 08:53:48 +0000 (08:53 +0000)]
"cvt ", "fpgm" and "prep" are all optional tables in TrueType. Some PDF viewers fail because FOP didn't handle those correctly.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616691 13f79535-47bb-0310-9956-ffa450edef68

16 years agoReplaced testcases for forced break on table-row with more complete ones. Tests faili...
Vincent Hennebert [Tue, 29 Jan 2008 19:12:58 +0000 (19:12 +0000)]
Replaced testcases for forced break on table-row with more complete ones. Tests failing because of bug #44320 have been commented out and will need to be re-enabled once the bug is fixed

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616485 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRenamed testcase for clarity
Vincent Hennebert [Tue, 29 Jan 2008 14:15:52 +0000 (14:15 +0000)]
Renamed testcase for clarity

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616334 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded more tests to ensure no weird things occurs when keep-with-previous/next is...
Vincent Hennebert [Tue, 29 Jan 2008 11:15:29 +0000 (11:15 +0000)]
Added more tests to ensure no weird things occurs when keep-with-previous/next is set on table. Runs ok

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616260 13f79535-47bb-0310-9956-ffa450edef68

16 years agoA more detailed comment on RTF output explaining that RTF has limitations besides...
Jeremias Maerki [Tue, 29 Jan 2008 07:30:08 +0000 (07:30 +0000)]
A more detailed comment on RTF output explaining that RTF has limitations besides the incomplete implementation on the FOP side.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616191 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugfix for invalid numTables entry in subset TrueType fonts if there was no "fpgm...
Jeremias Maerki [Mon, 28 Jan 2008 22:05:39 +0000 (22:05 +0000)]
Bugfix for invalid numTables entry in subset TrueType fonts if there was no "fpgm" table (Example: FreeSerif).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616080 13f79535-47bb-0310-9956-ffa450edef68

16 years agoA note on country/language.
Jeremias Maerki [Mon, 28 Jan 2008 15:45:10 +0000 (15:45 +0000)]
A note on country/language.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615917 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded support for the natural language indentifier ("Lang" in the document catalog...
Jeremias Maerki [Mon, 28 Jan 2008 15:04:39 +0000 (15:04 +0000)]
Added support for the natural language indentifier ("Lang" in the document catalog) for PDF documents based on the language/country values on fo:page-sequence. This required a few changes in the AreaTreeModel and the Renderer interface because it didn't support passing through the PageSequence object, only its title. Now, we can put other values on the PageSequence and transport them to the renderers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615906 13f79535-47bb-0310-9956-ffa450edef68

16 years agoImprove breaking for block-container and static-content so there are no more "breakin...
Jeremias Maerki [Mon, 28 Jan 2008 10:32:46 +0000 (10:32 +0000)]
Improve breaking for block-container and static-content so there are no more "breaking artifacts" (like additional border lines) in the overflowing part of the content anymore. This is done by removing all breaks from the result list prior to constructing the area tree. The presence of breaks simply indicates that there is an overflow.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615845 13f79535-47bb-0310-9956-ffa450edef68

16 years agoOf course startIndex == endIndex means there is one element whose length must be...
Vincent Hennebert [Sun, 27 Jan 2008 14:09:12 +0000 (14:09 +0000)]
Of course startIndex == endIndex means there is one element whose length must be computed... Changed >= into >

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615604 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla #44286:
Andreas L. Delmelle [Sun, 27 Jan 2008 13:35:39 +0000 (13:35 +0000)]
Bugzilla #44286:
Fixed a memory-leak in XMLWhiteSpaceHandler.
Submitted by: Stefan Ziel <stefan.ziel.at.claninfo.ch>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615598 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed a bug in computeContentLength when there are empty cells
Vincent Hennebert [Fri, 25 Jan 2008 15:52:53 +0000 (15:52 +0000)]
Fixed a bug in computeContentLength when there are empty cells

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615251 13f79535-47bb-0310-9956-ffa450edef68

16 years agoImproved error tolerance: an enum property value with leading or trailing spaces...
Jeremias Maerki [Fri, 25 Jan 2008 12:14:52 +0000 (12:14 +0000)]
Improved error tolerance: an enum property value with leading or trailing spaces is still recognized. Example: content-width="scale-to-fit "

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615197 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix exception when closing Source that doesn't have any streams.
Jeremias Maerki [Fri, 25 Jan 2008 09:59:29 +0000 (09:59 +0000)]
Fix exception when closing Source that doesn't have any streams.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615164 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded support for DOMSource to Preloader SVG so a URI Resolver can be written that...
Jeremias Maerki [Fri, 25 Jan 2008 08:26:54 +0000 (08:26 +0000)]
Added support for DOMSource to Preloader SVG so a URI Resolver can be written that provides the SVG as a W3C SVG DOM.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615144 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla #44289: Wrong border resolution when header/footer omitted at break
Vincent Hennebert [Thu, 24 Jan 2008 21:10:22 +0000 (21:10 +0000)]
Bugzilla #44289: Wrong border resolution when header/footer omitted at break

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614993 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded license header
Vincent Hennebert [Thu, 24 Jan 2008 19:59:20 +0000 (19:59 +0000)]
Added license header

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614966 13f79535-47bb-0310-9956-ffa450edef68

16 years agoReplaced 'non-lead' with 'normal'
Vincent Hennebert [Thu, 24 Jan 2008 19:56:05 +0000 (19:56 +0000)]
Replaced 'non-lead' with 'normal'

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614964 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoved no longer needed reference to TableColumn in GridUnit
Vincent Hennebert [Thu, 24 Jan 2008 16:51:53 +0000 (16:51 +0000)]
Removed no longer needed reference to TableColumn in GridUnit

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614924 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCleanup:
Vincent Hennebert [Thu, 24 Jan 2008 16:40:46 +0000 (16:40 +0000)]
Cleanup:
- renamed startRow/startCol into rowIndex/colIndex
- improved javadoc of PrimaryGridUnit.getRowIndex()
- moved colIndex from GridUnit into PrimaryGridUnit since it's only needed there
- simplified EmptyGridUnit constructor

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614920 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoved the no longer needed maxColumnCount parameter
Vincent Hennebert [Thu, 24 Jan 2008 11:32:07 +0000 (11:32 +0000)]
Removed the no longer needed maxColumnCount parameter

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614845 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdded support for conditional borders (and paddings) in tables.
Vincent Hennebert [Wed, 23 Jan 2008 15:22:05 +0000 (15:22 +0000)]
Added support for conditional borders (and paddings) in tables.
The proper borders are not selected yet between the header/footer and the body. There might still be a few glitches in some cases

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614566 13f79535-47bb-0310-9956-ffa450edef68

16 years agoWe need JAI Image I/O Tools now rather than Jimi or JAI.
Jeremias Maerki [Tue, 22 Jan 2008 14:13:22 +0000 (14:13 +0000)]
We need JAI Image I/O Tools now rather than Jimi or JAI.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614202 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBugzilla #44160:
Jeremias Maerki [Tue, 22 Jan 2008 14:02:27 +0000 (14:02 +0000)]
Bugzilla #44160:
Fixed a possible IndexOutOfBoundsException that could happen with certain constellations when footnotes are used. Note: I haven't been able to come up with a scaled-down testcase for regression testing. Maybe someone more intimate with the footnote handling can.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614201 13f79535-47bb-0310-9956-ffa450edef68

16 years agoA note on the difference between JAI Image I/O Tools, the codec package, and JAI...
Jeremias Maerki [Tue, 22 Jan 2008 12:31:11 +0000 (12:31 +0000)]
A note on the difference between JAI Image I/O Tools, the codec package, and JAI, the image library.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614191 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdated text to reflect the upgrading of the minimum Java requirement to 1.4
Vincent Hennebert [Tue, 22 Jan 2008 10:50:24 +0000 (10:50 +0000)]
Updated text to reflect the upgrading of the minimum Java requirement to 1.4

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614170 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed minor typos
Vincent Hennebert [Tue, 22 Jan 2008 10:48:43 +0000 (10:48 +0000)]
Fixed minor typos

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614169 13f79535-47bb-0310-9956-ffa450edef68

16 years agoComplete overhaul of the "Graphics" page after the new image loading framework has...
Jeremias Maerki [Tue, 22 Jan 2008 09:26:05 +0000 (09:26 +0000)]
Complete overhaul of the "Graphics" page after the new image loading framework has been introduced.
Some updates on external links and about Java 1.4.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614156 13f79535-47bb-0310-9956-ffa450edef68

16 years agoA note about the internal coordinate system when using fox:transform.
Jeremias Maerki [Mon, 21 Jan 2008 14:13:29 +0000 (14:13 +0000)]
A note about the internal coordinate system when using fox:transform.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613896 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCorrect inline writing when object has an object number.
Jeremias Maerki [Mon, 21 Jan 2008 10:40:38 +0000 (10:40 +0000)]
Correct inline writing when object has an object number.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613835 13f79535-47bb-0310-9956-ffa450edef68

16 years agoA name object can be encoded as a stand-along PDF object with object number and all...
Jeremias Maerki [Mon, 21 Jan 2008 10:33:10 +0000 (10:33 +0000)]
A name object can be encoded as a stand-along PDF object with object number and all, so extend from PDFObject. Fixes a possible ClassCastException with the PDF-in-PDF extension.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613831 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemoved stray System.out
Jeremias Maerki [Mon, 21 Jan 2008 10:21:25 +0000 (10:21 +0000)]
Removed stray System.out

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613828 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCopy/Paste problem with TTF has long been fixed.
Jeremias Maerki [Fri, 18 Jan 2008 15:25:26 +0000 (15:25 +0000)]
Copy/Paste problem with TTF has long been fixed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613185 13f79535-47bb-0310-9956-ffa450edef68

16 years agoForgot to adjust the JAR name when updating to Batik 1.7
Jeremias Maerki [Fri, 18 Jan 2008 12:44:56 +0000 (12:44 +0000)]
Forgot to adjust the JAR name when updating to Batik 1.7

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613144 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed layout problem in two of the changes.
Jeremias Maerki [Thu, 17 Jan 2008 14:23:13 +0000 (14:23 +0000)]
Fixed layout problem in two of the changes.
Categorized the individual changes a bit.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612825 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSlight performance improvement on multi-core CPUs using a cheap trick.
Jeremias Maerki [Thu, 17 Jan 2008 13:43:33 +0000 (13:43 +0000)]
Slight performance improvement on multi-core CPUs using a cheap trick.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612816 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed logic error setting the transformation matrix for block-container viewports...
Jeremias Maerki [Thu, 17 Jan 2008 13:37:04 +0000 (13:37 +0000)]
Fixed logic error setting the transformation matrix for block-container viewports (applies to absolute and fixed block-containers only). The CTM now only rotates and shifts the content as necessary for reference-orientation and writing-mode. All the rest of the transformation is done by the renderer which allows to add additional transformations as made possible by fox:transform (see below).
Important: External renderer implementations need to adjust for the change and implement the new method concatenateTransformationMatrix(AffineTransform) if the renderer is derived from AbstractPathOrientedRenderer.

New extension attribute fox:transform on fo:block-container allows free-form transformation (rotation, scaling etc.) of absolute and fixed block-containers. Supported only for PDF, PS and Java2D-based renderers.

Added missing region background painting for PCL renderer.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612815 13f79535-47bb-0310-9956-ffa450edef68

16 years agoadded serial version id
Adrian Cumiskey [Thu, 17 Jan 2008 10:36:36 +0000 (10:36 +0000)]
added serial version id

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612785 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed dead link.
Jeremias Maerki [Wed, 16 Jan 2008 20:14:56 +0000 (20:14 +0000)]
Fixed dead link.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612560 13f79535-47bb-0310-9956-ffa450edef68

16 years agoClear parent if later on an object number is assigned to a PDFObject which means...
Jeremias Maerki [Mon, 14 Jan 2008 11:02:54 +0000 (11:02 +0000)]
Clear parent if later on an object number is assigned to a PDFObject which means it is a top-level object.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@611768 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRestore default constructor for PDFArray.
Jeremias Maerki [Mon, 14 Jan 2008 11:02:34 +0000 (11:02 +0000)]
Restore default constructor for PDFArray.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@611767 13f79535-47bb-0310-9956-ffa450edef68