PredefinedCMap
PredefinedCMap
概述
PredefinedCMap 是 Aspose.PDF FOSS 中用于 Python 的一个类。
已解析的预定义 CMap 及其语义 Unicode 映射。
此类提供 1 个方法,用于在 Python 程序中处理 PredefinedCMap 对象。可用的方法包括:decode_units。在安装了 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:code_to_cid, code_to_text, codespaces, collection, name, vertical。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
name | str | 读取 | 获取名称。 |
collection | CharacterCollection | 读取 | 获取集合。 |
vertical | bool | 读取 | 获取垂直方向。 |
codespaces | tuple[tuple[bytes, bytes], ...] | 读取 | 获取代码空间。 |
code_to_cid | Mapping[bytes, int] | 读取 | 获取代码到 cid。 |
code_to_text | Mapping[bytes, str] | 读取 | 获取代码到文本。 |
方法
| 签名 | 描述 |
|---|---|
| `decode_units(raw: bytes, budget: _LoadBudget | None)→list[tuple[int, int, int |