PredefinedCMapEncoding
PredefinedCMapEncoding
概述
PredefinedCMapEncoding 是 Aspose.PDF FOSS 中用于 Python 的类。
预定义 CMap 的紧凑 code-to-CID 视图。
此类提供 2 个方法,用于在 Python 程序中处理 PredefinedCMapEncoding 对象。可用的方法包括:cid_for、decode_units。安装 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:codespaces、collection、name、vertical。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
name | str | 读取 | 获取名称。 |
collection | CharacterCollection | 读取 | 获取集合。 |
vertical | bool | 读取 | 获取垂直方向。 |
codespaces | tuple[tuple[bytes, bytes], ...] | 读取 | 获取代码空间。 |
方法
| 签名 | 描述 |
|---|---|
cid_for(code: bytes) → `int | None` |
| `decode_units(raw: bytes, budget: _LoadBudget | None)→list[tuple[int, int, int |