diff options
author | Keiron Liddle <keiron@apache.org> | 2001-10-22 07:27:30 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-10-22 07:27:30 +0000 |
commit | 7ae7d602161bd83182e064c81e4a79968b7ee0cc (patch) | |
tree | c39f3b6031b0b0e4399f00a1b2928c59cb1d14d6 /src/org/apache/fop/svg | |
parent | 299b8640acbf7de1cb2e65334e067e16a15e7b33 (diff) | |
download | xmlgraphics-fop-7ae7d602161bd83182e064c81e4a79968b7ee0cc.tar.gz xmlgraphics-fop-7ae7d602161bd83182e064c81e4a79968b7ee0cc.zip |
handles path transform properly, makes a difference to the line width
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r-- | src/org/apache/fop/svg/PDFGraphics2D.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/org/apache/fop/svg/PDFGraphics2D.java b/src/org/apache/fop/svg/PDFGraphics2D.java index 7fc44b294..63493cacc 100644 --- a/src/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/org/apache/fop/svg/PDFGraphics2D.java @@ -511,7 +511,17 @@ public class PDFGraphics2D extends AbstractGraphics2D { applyPaint(getPaint(), false); applyStroke(getStroke()); - PathIterator iter = s.getPathIterator(getTransform()); + AffineTransform trans = getTransform(); + double[] tranvals = new double[6]; + trans.getMatrix(tranvals); + currentStream.write(PDFNumber.doubleOut(tranvals[0]) + " " + + PDFNumber.doubleOut(tranvals[1]) + " " + + PDFNumber.doubleOut(tranvals[2]) + " " + + PDFNumber.doubleOut(tranvals[3]) + " " + + PDFNumber.doubleOut(tranvals[4]) + " " + + PDFNumber.doubleOut(tranvals[5]) + " cm\n"); + + PathIterator iter = s.getPathIterator(new AffineTransform()); while (!iter.isDone()) { double vals[] = new double[6]; int type = iter.currentSegment(vals); |