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 Details

    • PSProcedure

      public PSProcedure(COSArray procedure)
  • Method Details

    • executeProcedure

      public void executeProcedure(Stack<COSObject> operandStack, Map<ASAtom,COSObject> userDict) throws PostScriptException
      Throws:
      PostScriptException
    • 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.
    • modifiedExecuteProcedure

      public Stack<COSObject> modifiedExecuteProcedure(Stack<COSObject> operandStack, Map<ASAtom,COSObject> userDict) throws PostScriptException
      Throws:
      PostScriptException