/** * abstracted command processing for Q command. Used directly and as * part of processing of mushed QBT command. */ private void processQCmd() { // pop graphics state ('Q') cmds.addPop(); // pop the parser state state = (ParserState) parserStates.pop(); }
/** * abstracted command processing for Q command. Used directly and as * part of processing of mushed QBT command. */ private void processQCmd() { // pop graphics state ('Q') cmds.addPop(); // pop the parser state state = (ParserState) parserStates.pop(); }
/** * abstracted command processing for Q command. Used directly and as * part of processing of mushed QBT command. */ private void processQCmd() { // pop graphics state ('Q') cmds.addPop(); // pop the parser state state = (ParserState) parserStates.pop(); }
/** * add a collection of commands to the page list. This is probably * invoked as the result of an XObject 'do' command, or through a * type 3 font. * @param page the source of other commands. It MUST be finished. * @param extra a transform to perform before adding the commands. * If null, no extra transform will be added. */ public void addCommands(PDFPage page, AffineTransform extra) { synchronized (commands) { addPush(); if (extra != null) { addXform(extra); } //addXform(page.getTransform()); commands.addAll(page.getCommands()); addPop(); } // notify any outstanding images updateImages(); }
/** * add a collection of commands to the page list. This is probably * invoked as the result of an XObject 'do' command, or through a * type 3 font. * @param page the source of other commands. It MUST be finished. * @param extra a transform to perform before adding the commands. * If null, no extra transform will be added. */ public void addCommands(PDFPage page, AffineTransform extra) { synchronized (commands) { addPush(); if (extra != null) { addXform(extra); } //addXform(page.getTransform()); commands.addAll(page.getCommands()); addPop(); } // notify any outstanding images updateImages(); }
/** * add a collection of commands to the page list. This is probably * invoked as the result of an XObject 'do' command, or through a * type 3 font. * @param page the source of other commands. It MUST be finished. * @param extra a transform to perform before adding the commands. * If null, no extra transform will be added. */ public void addCommands(PDFPage page, AffineTransform extra) { synchronized (commands) { addPush(); if (extra != null) { addXform(extra); } //addXform(page.getTransform()); commands.addAll(page.getCommands()); addPop(); } // notify any outstanding images updateImages(); }
/** * build a shader from a dictionary. */ private void doShader(PDFObject shaderObj) throws IOException { PDFShader shader = PDFShader.getShader(shaderObj, resources); cmds.addPush(); Rectangle2D bbox = shader.getBBox(); if (bbox != null) { cmds.addFillPaint(shader.getPaint()); cmds.addPath(new GeneralPath(bbox), PDFShapeCmd.FILL); } cmds.addPop(); }