OperationResult
개요
OperationResult은 Aspose.PDF FOSS의 Python용 클래스입니다.
플러그인에 의해 생성된 단일 결과.
이 클래스는 Python 프로그램의 OperationResult 객체에 대해 6개의 메서드를 선언합니다. 사용 가능한 메서드에는 __init__, is_byte_array, is_string, save, to_array, to_string가 포함됩니다. 모든 public 멤버는 Aspose.PDF FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
| `init(value: bytes | str)` |
is_string() → bool | 문자열이 설정되어 있으면 true를 반환합니다. |
is_byte_array() → bool | 바이트 배열이 설정되어 있으면 true를 반환합니다. |
to_array() → bytes | 결과를 바이트 형태로 반환합니다 (텍스트는 UTF-8 인코딩됨). |
to_string() → str | 결과를 텍스트로 반환합니다 (바이너리는 UTF-8를 관대하게 디코딩한 것입니다). |
| `save(destination: DataSource | str |