pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1769667 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
Date Mon, 14 Nov 2016 17:29:09 GMT
Author: tilman
Date: Mon Nov 14 17:29:09 2016
New Revision: 1769667

URL: http://svn.apache.org/viewvc?rev=1769667&view=rev
Log:
PDFBOX-3000: reset softmask for transparency groups too

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java?rev=1769667&r1=1769666&r2=1769667&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
Mon Nov 14 17:29:09 2016
@@ -183,9 +183,7 @@ public abstract class PDFStreamEngine
      */
     protected void processSoftMask(PDTransparencyGroup group) throws IOException
     {
-        // clear the current soft mask (this mask) to avoid recursion
         saveGraphicsState();
-        getGraphicsState().setSoftMask(null);
         processTransparencyGroup(group);
         restoreGraphicsState();
     }
@@ -207,6 +205,9 @@ public abstract class PDFStreamEngine
         // transform the CTM using the stream's matrix
         getGraphicsState().getCurrentTransformationMatrix().concatenate(group.getMatrix());
 
+        // clear the current soft mask (this mask) to avoid recursion / unwanted effects
+        getGraphicsState().setSoftMask(null);
+
         // clip to bounding box
         clipToRect(group.getBBox());
 



Mime
View raw message