Skip to main content

Module cmap

Module cmap 

Source
Expand description

A parser for cmap files, as they are found in PDFs.

This crate provides a parser for cmap files and allows you to

  • Map character codes from text-showing operators to CID identifiers.
  • Map CIDs to Unicode characters or strings.

§Safety

This crate forbids unsafe code via a crate-level attribute.

Structs§

CMap
A parsed cmap.
CharacterCollection
A CID character collection identifying the character set and ordering.
CidRange
A range of character codes mapped to CIDs.
Metadata
Metadata extracted from a cmap file.

Enums§

BfString
A Unicode value decoded from a cmap.
CMapName
The name of the cmap.
CidFamily
The registry+ordering family of a CID character collection.
WritingMode
The writing mode of a cmap.

Functions§

load_embedded
Load the data for a cmap file, by name.

Type Aliases§

Cid
A CID (Character Identifier).