org.apache.pdfbox.pdmodel.graphics.PDGraphicsState Java Examples
The following examples show how to use
org.apache.pdfbox.pdmodel.graphics.PDGraphicsState.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GSave.java From pdfxtk with Apache License 2.0 | 4 votes |
/** * process : q : Save graphics state. * @param operator The operator that is being executed. * @param arguments List */ public void process(PDFOperator operator, List arguments) { context.getGraphicsStack().push( (PDGraphicsState) context.getGraphicsState().clone() ); ((PDFObjectExtractor)context).pushClipBounds(); }
Example #2
Source File: GRestore.java From pdfxtk with Apache License 2.0 | 4 votes |
/** * process : Q : Restore graphics state. * @param operator The operator that is being executed. * @param arguments List */ public void process(PDFOperator operator, List arguments) { context.setGraphicsState( (PDGraphicsState)context.getGraphicsStack().pop() ); ((PDFObjectExtractor)context).popClipBounds(); }