PredefinedCMapEncoding
Overview
PredefinedCMapEncoding is a class in Aspose.PDF FOSS for Python.
Compact code-to-CID view of a predefined CMap.
This class provides 2 methods for working with PredefinedCMapEncoding objects in Python programs.
Available methods include: cid_for, decode_units.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: 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. |
Methods
| Signature | Description |
|---|---|
cid_for(code: bytes) → int | None | Return the CID for code, honoring local usecmap overrides. |
decode_units(raw: bytes, budget: _LoadBudget | None) → list[tuple[int, int, int | None]] | Split show-string bytes into codespace-aware code/CID units. |