diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 16:02:05 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 16:02:05 +0000 |
commit | abad44d3f1c52a92739a05fd347707d71fe9c1eb (patch) | |
tree | e52663086523515d977c2f9306047671b0f52821 /src | |
parent | de1c5f7ea039c20b9e52e02ac2fd6d3023d264d2 (diff) | |
download | xmlgraphics-fop-abad44d3f1c52a92739a05fd347707d71fe9c1eb.tar.gz xmlgraphics-fop-abad44d3f1c52a92739a05fd347707d71fe9c1eb.zip |
Bugzilla #37330:
Fix for clipped text when painted through the PDF text bridge. The translation was in the wrong place and therefore had an effect on the clipping region.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344148 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/svg/PDFGraphics2D.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java index 398e36f39..81795984b 100644 --- a/src/java/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java @@ -1457,16 +1457,20 @@ public class PDFGraphics2D extends AbstractGraphics2D { String endText = useMultiByte ? "> " : ") "; AffineTransform trans = getTransform(); - trans.translate(x, y); + //trans.translate(x, y); double[] vals = new double[6]; trans.getMatrix(vals); concatMatrix(vals); Shape imclip = getClip(); writeClip(imclip); + currentStream.write("BT\n"); - currentStream.write("1 0 0 -1 0 0 Tm [" + startText); + //currentStream.write("1 0 0 -1 0 0 Tm [" + startText); + currentStream.write("1 0 0 -1 " + + PDFNumber.doubleOut(x) + " " + PDFNumber.doubleOut(y) + + " Tm [" + startText); int l = s.length(); |