Class PSProcedure


  • public class PSProcedure
    extends PSObject
    Class represents PostScript procedure. Notice that when it is read from PostScript program it is pushed to operand stack for later invocation.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • PSProcedure

        public PSProcedure​(COSArray procedure)
    • Method Detail

      • execute

        public void execute​(Stack<COSObject> operandStack,
                            Map<ASAtom,​COSObject> userDict)
        Description copied from class: PSObject
        Executes PostScript object. For literal objects this execution means pushing object to operand stack, for operator and procedure objects execution mean execution of this operator or procedure.
        Specified by:
        execute in class PSObject
        Parameters:
        operandStack - is stack for PostScript operands (see PostScript specification for further information).
        userDict - is a dictionary that stores all key-value associated pair encountered during PostScript parsing. Full PostScript parser needs a dict stack, our implementation has only one dictionary.