PsInterpreter

Overview

PsInterpreter is a class in Aspose.Page FOSS for Python.

Execute PostScript/EPS objects using a registry of operators.

This class provides 5 methods for working with PsInterpreter objects in Python programs. Available methods include: __init__, execute, execute_object, execute_objects, execute_procedure. All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package.

Methods

SignatureDescription
__init__(operators: OperatorRegistry)
execute(data: bytes, ctx: ExecutionContext)Parse and execute a PostScript/EPS byte stream.
execute_objects(objects: list[PsObject], ctx: ExecutionContext)Execute a sequence of already-parsed objects.
execute_object(obj: PsObject, ctx: ExecutionContext)Execute a single object.
execute_procedure(proc: PsProcedure, ctx: ExecutionContext)Execute a procedure explicitly.

See Also