diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-08-26 18:59:42 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-08-26 18:59:42 +0000 |
commit | 787853f18abcb26442dd31270fe50d20fdddd1e2 (patch) | |
tree | 1fc03921d8572a20f6d4b86001645a3af4815d98 /src/java/org/apache/fop/pdf/PDFPattern.java | |
parent | f97b8ac53e034a9ae8d986a8914f04d3e81058bc (diff) | |
download | xmlgraphics-fop-787853f18abcb26442dd31270fe50d20fdddd1e2.tar.gz xmlgraphics-fop-787853f18abcb26442dd31270fe50d20fdddd1e2.zip |
My last attempt at fixing SVG gradients in PDF wasn't successful. This one is:
Improved resolution of transformation matrices in PDF patterns.
Renamed PDFState.setTransform() to PDFState.concatenate() because setTransform() does a concationation and is therefore misleading. The old method is still there (just in case) but it is deprecated.
Simplified the whole transformation tracking by including the basic page transformation in the stack.
Verified the changes with basic-links in FO, fixed block-containers, a-links in SVG and SVG gradients.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@437210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFPattern.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFPattern.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFPattern.java b/src/java/org/apache/fop/pdf/PDFPattern.java index 611ff5bbd..3bb190c48 100644 --- a/src/java/org/apache/fop/pdf/PDFPattern.java +++ b/src/java/org/apache/fop/pdf/PDFPattern.java @@ -250,7 +250,8 @@ public class PDFPattern extends PDFPathPaint { vectorSize = this.matrix.size(); p.append("/Matrix [ "); for (tempInt = 0; tempInt < vectorSize; tempInt++) { - p.append(PDFNumber.doubleOut((Double)this.matrix.get(tempInt))); + p.append(PDFNumber.doubleOut( + ((Double)this.matrix.get(tempInt)).doubleValue(), 8)); p.append(" "); } p.append("] \n"); @@ -303,7 +304,8 @@ public class PDFPattern extends PDFPathPaint { vectorSize = this.matrix.size(); p.append("/Matrix [ "); for (tempInt = 0; tempInt < vectorSize; tempInt++) { - p.append(PDFNumber.doubleOut((Double)this.matrix.get(tempInt))); + p.append(PDFNumber.doubleOut( + ((Double)this.matrix.get(tempInt)).doubleValue(), 8)); p.append(" "); } p.append("] \n"); |