PredefinedCMap

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

NameTypeAccessDescription
namestrReadGets the name.
collectionCharacterCollectionReadGets the collection.
verticalboolReadGets the vertical.
codespacestuple[tuple[bytes, bytes], ...]ReadGets the codespaces.
code_to_cidMapping[bytes, int]ReadGets the code to cid.
code_to_textMapping[bytes, str]ReadGets the code to text.

Methods

SignatureDescription
decode_units(raw: bytes, budget: _LoadBudget | None)list[tuple[int, int, int | None, str | None]]Split show-string bytes into codespace-aware decoded units.

See Also