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。

属性

名称类型访问描述
namestr读取获取名称。
collectionCharacterCollection读取获取集合。
verticalbool读取获取垂直方向。
codespacestuple[tuple[bytes, bytes], ...]读取获取代码空间。
code_to_cidMapping[bytes, int]读取获取代码到 cid。
code_to_textMapping[bytes, str]读取获取代码到文本。

方法

签名描述
`decode_units(raw: bytes, budget: _LoadBudgetNone)→list[tuple[int, int, int

另请参阅

 中文