aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-10-22 07:27:30 +0000
committerKeiron Liddle <keiron@apache.org>2001-10-22 07:27:30 +0000
commit7ae7d602161bd83182e064c81e4a79968b7ee0cc (patch)
treec39f3b6031b0b0e4399f00a1b2928c59cb1d14d6 /src/org/apache/fop/svg
parent299b8640acbf7de1cb2e65334e067e16a15e7b33 (diff)
downloadxmlgraphics-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.java12
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);