PredefinedCMap
Overview
PredefinedCMap is a class in Aspose.PDF FOSS for Python.
A resolved predefined CMap and its semantic Unicode mapping.
This class provides 1 method for working with PredefinedCMap objects in Python programs.
Available methods include: decode_units.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: code_to_cid, code_to_text, codespaces, collection, name, vertical.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | Gets the name. |
collection | CharacterCollection | Read | Gets the collection. |
vertical | bool | Read | Gets the vertical. |
codespaces | tuple[tuple[bytes, bytes], ...] | Read | Gets the codespaces. |
code_to_cid | Mapping[bytes, int] | Read | Gets the code to cid. |
code_to_text | Mapping[bytes, str] | Read | Gets the code to text. |
Methods
| Signature | Description |
|---|---|
decode_units(raw: bytes, budget: _LoadBudget | None) → list[tuple[int, int, int | None, str | None]] | Split show-string bytes into codespace-aware decoded units. |