StreamEncoder
개요
StreamEncoder은 Aspose.PDF FOSS의 Python용 클래스입니다.
원시 바이트를 PDF 스트림 데이터로 인코딩하며, :class:StreamDecoder의 역작용입니다.
이 클래스는 Python 프로그램에서 StreamEncoder 객체를 다루기 위한 3개의 메서드를 제공합니다. 사용 가능한 메서드에는 encode, fresh_table, write_code가 포함됩니다. Aspose.PDF FOSS for Python 패키지를 설치한 후, 모든 공개 멤버는 Python 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
write_code(code: int, width: int) | 이 StreamEncoder 인스턴스에서 write_code(code, width)를 호출합니다. |
fresh_table() | 이 StreamEncoder 인스턴스에서 fresh_table를 호출합니다. |
encode(data: bytes, filters: Any, decode_parms: Any) → bytes | 이 data을 인코딩하여 :meth:StreamDecoder.decode가 이를 되돌리도록 합니다. |