File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
pdfbox/src/main/java/org/apache/pdfbox/contentstream Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 6767import org .apache .pdfbox .contentstream .operator .OperatorName ;
6868import org .apache .pdfbox .contentstream .operator .OperatorProcessor ;
6969import org .apache .pdfbox .pdmodel .graphics .blend .BlendMode ;
70+ import org .apache .pdfbox .pdmodel .graphics .color .PDDeviceGray ;
7071
7172/**
7273 * Processes a PDF content stream and executes certain operations.
@@ -202,6 +203,10 @@ protected void processSoftMask(PDTransparencyGroup group) throws IOException
202203 getGraphicsState ().setCurrentTransformationMatrix (softMaskCTM );
203204 getGraphicsState ().setTextMatrix (new Matrix ());
204205 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 ());
205210
206211 try
207212 {
You can’t perform that action at this time.
0 commit comments