aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg/PDFDocumentGraphics2D.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/svg/PDFDocumentGraphics2D.java')
-rw-r--r--src/org/apache/fop/svg/PDFDocumentGraphics2D.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/svg/PDFDocumentGraphics2D.java b/src/org/apache/fop/svg/PDFDocumentGraphics2D.java
index 03cd602ea..3894d1140 100644
--- a/src/org/apache/fop/svg/PDFDocumentGraphics2D.java
+++ b/src/org/apache/fop/svg/PDFDocumentGraphics2D.java
@@ -20,6 +20,7 @@ import java.awt.Color;
import java.awt.Shape;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
+import java.awt.geom.AffineTransform;
import java.io.OutputStream;
import java.io.IOException;
@@ -92,7 +93,7 @@ public class PDFDocumentGraphics2D extends PDFGraphics2D {
resourceContext = currentPage;
pageRef = currentPage.referencePDF();
currentStream.write("1 0 0 -1 0 " + height + " cm\n");
-
+ graphicsState.setTransform(new AffineTransform(1.0, 0.0, 0.0, -1.0, 0.0, (double)height));
pdfDoc.outputHeader(stream);
setOutputStream(stream);