You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2016/11/14 17:29:09 UTC
svn commit: r1769667 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
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());