diff --git a/src/core/to_unicode_map.js b/src/core/to_unicode_map.js index 24bd8fe7d977c..e1a0e5c9b34a4 100644 --- a/src/core/to_unicode_map.js +++ b/src/core/to_unicode_map.js @@ -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)); } } diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 7083ac7d95f00..fc38de944c38c 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -687,3 +687,4 @@ !rotated_ink.pdf !inks.pdf !inks_basic.pdf +!issue19182.pdf diff --git a/test/pdfs/issue19182.pdf b/test/pdfs/issue19182.pdf new file mode 100644 index 0000000000000..93ad565396dd6 Binary files /dev/null and b/test/pdfs/issue19182.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index d3167615d5f73..30dffed82a0af 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -11201,5 +11201,12 @@ "id": "20R" } } + }, + { + "id": "issue19182", + "file": "pdfs/issue19182.pdf", + "md5": "497370ab55cbb9c60bb0ea4b5d9e4d08", + "rounds": 1, + "type": "eq" } ]