StreamEncoder

StreamEncoder

概述

StreamEncoder 是 Aspose.PDF FOSS 中用于 Python 的类。

将原始字节编码为 PDF 流数据,这是 :class:StreamDecoder 的逆操作。

此类提供3个方法,用于在 Python 程序中处理 StreamEncoder 对象。可用的方法包括:encode、fresh_table、write_code。在安装了面向 Python 的 Aspose.PDF FOSS 包后,所有公共成员对任何 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 能将其逆转。

另请参阅

 中文