Merge pull request #19184 from calixteman/issue19182

Get the first codepoint instead of the first char when using the toUnicode map
This commit is contained in:
calixteman 2024-12-06 18:31:30 +01:00 committed by GitHub
commit 23c42f891b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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));
}
}

View File

@ -687,3 +687,4 @@
!rotated_ink.pdf
!inks.pdf
!inks_basic.pdf
!issue19182.pdf

BIN
test/pdfs/issue19182.pdf Normal file

Binary file not shown.

View File

@ -11201,5 +11201,12 @@
"id": "20R"
}
}
},
{
"id": "issue19182",
"file": "pdfs/issue19182.pdf",
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
"rounds": 1,
"type": "eq"
}
]