1 31 package org.pdfbox.util.operator; 32 33 import java.util.List ; 34 import org.pdfbox.cos.COSName; 35 import org.pdfbox.pdmodel.graphics.PDExtendedGraphicsState; 36 import org.pdfbox.util.PDFOperator; 37 38 import java.io.IOException ; 39 40 48 49 public class SetGraphicsStateParameters extends OperatorProcessor 50 { 51 57 public void process(PDFOperator operator, List arguments) throws IOException 58 { 59 COSName graphicsName = (COSName)arguments.get( 0 ); 61 PDExtendedGraphicsState gs = (PDExtendedGraphicsState)context.getGraphicsStates().get( graphicsName.getName() ); 62 gs.copyIntoGraphicsState( context.getGraphicsState() ); 63 } 64 } 65 | Popular Tags |