1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Support charCodes larger than 32-bit in adjustMapping (issue 18117)

This also required changing the initial `charCodeToGlyphId`-data to an Object, which seems generally correct since it's consistent with existing code in the `src\core\{cff_font, type1_font}.js` files.
This commit is contained in:
Jonas Jenwald 2024-05-20 12:00:42 +02:00
parent 63b66b412c
commit 440b4b6eeb
4 changed files with 17 additions and 3 deletions

View file

@ -242,6 +242,7 @@
!ContentStreamNoCycleType3insideType3.pdf
!ContentStreamCycleType3insideType3.pdf
!issue2074.pdf
!issue18117.pdf
!scan-bad.pdf
!issue13561_reduced.pdf
!bug847420.pdf

BIN
test/pdfs/issue18117.pdf Normal file

Binary file not shown.

View file

@ -5406,6 +5406,20 @@
"lastPage": 2,
"type": "eq"
},
{
"id": "issue18117",
"file": "pdfs/issue18117.pdf",
"md5": "0be6391f9910d807a0ded5e6913ff7e3",
"rounds": 1,
"type": "eq"
},
{
"id": "issue18117-text",
"file": "pdfs/issue18117.pdf",
"md5": "0be6391f9910d807a0ded5e6913ff7e3",
"rounds": 1,
"type": "text"
},
{
"id": "issue4890",
"file": "pdfs/issue4890.pdf",