StreamEncoder

Overview

StreamEncoder is a class in Aspose.PDF FOSS for Python.

Encode raw bytes into PDF stream data, the inverse of :class:StreamDecoder.

This class provides 3 methods for working with StreamEncoder objects in Python programs. Available methods include: encode, fresh_table, write_code. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
write_code(code: int, width: int)Calls write_code(code, width) on this StreamEncoder instance.
fresh_table()Calls fresh_table on this StreamEncoder instance.
encode(data: bytes, filters: Any, decode_parms: Any)bytesEncode data so that :meth:StreamDecoder.decode reverses it.

See Also