Skip to content

modern-pdf-lib


modern-pdf-lib / SubsetCmap

Interface: SubsetCmap

Defined in: src/assets/font/fontSubset.ts:50

A CMap mapping from CIDs (Character IDs, which correspond to new GIDs in the subset) to Unicode codepoints.

Properties

cidToUnicode

readonly cidToUnicode: ReadonlyMap<number, number[]>

Defined in: src/assets/font/fontSubset.ts:61

Map from new GID to the Unicode codepoint(s) it represents. For most glyphs this is a single codepoint; for ligatures it may be multiple.


cmapStream

readonly cmapStream: string

Defined in: src/assets/font/fontSubset.ts:55

The CMap as a PDF stream body string, ready to be wrapped in a /ToUnicode stream object.

Released under the MIT License.