Skip to main content

Module cmap

Module cmap 

Source
Expand description

ToUnicode CMap parser for mapping character codes to Unicode strings.

Parses CMap data embedded in PDF /ToUnicode streams to convert glyph codes to Unicode text. Supports beginbfchar/endbfchar (single mappings) and beginbfrange/endbfrange (range mappings) with UTF-16BE encoded values.

Structsยง

CMap
A parsed ToUnicode CMap that maps character codes to Unicode strings.
CidCMap
A parsed CID CMap that maps character codes to CIDs.