"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/contentstream/operator/color/SetStrokingColorSpace.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

SetStrokingColorSpace.java  (pdfbox-2.0.23-src):SetStrokingColorSpace.java  (pdfbox-2.0.24-src)
skipping to change at line 40 skipping to change at line 40
* CS: Set color space for stroking operations. * CS: Set color space for stroking operations.
* *
* @author Ben Litchfield * @author Ben Litchfield
* @author John Hewson * @author John Hewson
*/ */
public class SetStrokingColorSpace extends OperatorProcessor public class SetStrokingColorSpace extends OperatorProcessor
{ {
@Override @Override
public void process(Operator operator, List<COSBase> arguments) throws IOExc eption public void process(Operator operator, List<COSBase> arguments) throws IOExc eption
{ {
if (arguments.isEmpty())
{
return;
}
COSBase base = arguments.get(0); COSBase base = arguments.get(0);
if (!(base instanceof COSName)) if (!(base instanceof COSName))
{ {
return; return;
} }
PDColorSpace cs = context.getResources().getColorSpace((COSName) base); PDColorSpace cs = context.getResources().getColorSpace((COSName) base);
context.getGraphicsState().setStrokingColorSpace(cs); context.getGraphicsState().setStrokingColorSpace(cs);
context.getGraphicsState().setStrokingColor(cs.getInitialColor()); context.getGraphicsState().setStrokingColor(cs.getInitialColor());
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)