Class PSObject

    • Constructor Detail

      • PSObject

        protected PSObject​(COSBase base)
    • Method Detail

      • execute

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

        public static PSObject getPSObject​(COSObject obj)
        Constructs PostScript object from COS object.
      • getPSObject

        public static PSObject getPSObject​(COSObject obj,
                                           boolean isExecutable)