1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Get the first codepoint instead of the first char when using the toUnicode map

It fixes #19182.
This commit is contained in:
Calixte Denizet 2024-12-06 15:53:36 +01:00
parent c198e0b446
commit 6fe6b6d6b7
4 changed files with 9 additions and 1 deletions

View file

@ -28,7 +28,7 @@ class ToUnicodeMap {
forEach(callback) {
for (const charCode in this._map) {
callback(charCode, this._map[charCode].charCodeAt(0));
callback(charCode, this._map[charCode].codePointAt(0));
}
}