happypdf / parseToUnicode
Function: parseToUnicode()
ts
function parseToUnicode(data): Map<number, string>;Defined in: src/api/extraction/ToUnicode.ts:10
Parse a ToUnicode CMap (as decoded stream bytes / string) into a map from character code (number) to Unicode string.
Supports beginbfchar / endbfchar and beginbfrange / endbfrange (both destination-offset and array forms).
Parameters
| Parameter | Type |
|---|---|
data | string | Uint8Array<ArrayBufferLike> |
Returns
Map<number, string>