PredefinedCMapEncoding

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

NameTypeAccessDescription
namestrReadGets the name.
collectionCharacterCollectionReadGets the collection.
verticalboolReadGets the vertical.
codespacestuple[tuple[bytes, bytes], ...]ReadGets the codespaces.

Methods

SignatureDescription
cid_for(code: bytes)int | NoneReturn 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.

See Also