pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1817613 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Sat, 09 Dec 2017 14:28:30 GMT
Author: tilman
Date: Sat Dec  9 14:28:30 2017
New Revision: 1817613

URL: http://svn.apache.org/viewvc?rev=1817613&view=rev
Log:
PDFBOX-4029: don't translate when in a pattern

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1817613&r1=1817612&r2=1817613&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Sat
Dec  9 14:28:30 2017
@@ -1375,6 +1375,10 @@ public class PageDrawer extends PDFGraph
             graphics.translate(0, image.getHeight());
             graphics.scale(1, -1);
         }
+        else
+        {
+            graphics.translate(x * xScale, y * yScale);
+        }
 
         PDSoftMask softMask = getGraphicsState().getSoftMask();
         if (softMask != null)



Mime
View raw message