File tree 1 file changed +5
-0
lines changed
pdfbox/src/main/java/org/apache/pdfbox/contentstream
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 67
67
import org .apache .pdfbox .contentstream .operator .OperatorName ;
68
68
import org .apache .pdfbox .contentstream .operator .OperatorProcessor ;
69
69
import org .apache .pdfbox .pdmodel .graphics .blend .BlendMode ;
70
+ import org .apache .pdfbox .pdmodel .graphics .color .PDDeviceGray ;
70
71
71
72
/**
72
73
* Processes a PDF content stream and executes certain operations.
@@ -202,6 +203,10 @@ protected void processSoftMask(PDTransparencyGroup group) throws IOException
202
203
getGraphicsState ().setCurrentTransformationMatrix (softMaskCTM );
203
204
getGraphicsState ().setTextMatrix (new Matrix ());
204
205
getGraphicsState ().setTextLineMatrix (new Matrix ());
206
+ getGraphicsState ().setNonStrokingColorSpace (PDDeviceGray .INSTANCE );
207
+ getGraphicsState ().setNonStrokingColor (PDDeviceGray .INSTANCE .getInitialColor ());
208
+ getGraphicsState ().setStrokingColorSpace (PDDeviceGray .INSTANCE );
209
+ getGraphicsState ().setStrokingColor (PDDeviceGray .INSTANCE .getInitialColor ());
205
210
206
211
try
207
212
{
You can’t perform that action at this time.
0 commit comments