PsInterpreter

PsInterpreter

개요

PsInterpreter은 Aspose.Page FOSS에서 Python을 위한 클래스입니다.

연산자 레지스트리를 사용하여 PostScript/EPS 객체를 실행합니다.

이 클래스는 Python 프로그램에서 PsInterpreter 객체를 다루기 위한 5개의 메서드를 제공합니다. 사용 가능한 메서드에는 __init__, execute, execute_object, execute_objects, execute_procedure가 포함됩니다. Aspose.Page FOSS for Python 패키지를 설치한 후에는 모든 공개 멤버가 Python 애플리케이션에서 접근할 수 있습니다.

메서드

시그니처설명
__init__(operators: OperatorRegistry)
execute(data: bytes, ctx: ExecutionContext)PostScript/EPS 바이트 스트림을 구문 분석하고 실행합니다.
execute_objects(objects: list[PsObject], ctx: ExecutionContext)이미 구문 분석된 객체들의 시퀀스를 실행합니다.
execute_object(obj: PsObject, ctx: ExecutionContext)단일 객체를 실행합니다.
execute_procedure(proc: PsProcedure, ctx: ExecutionContext)프로시저를 명시적으로 실행하십시오.

참조

 한국어