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

Don't allow adjustToUnicode to extend a built-in /ToUnicode map (issue 15352)

Given that the change in PR 13393 was slightly speculative, given the lack of test-cases, let's just revert part of that to fix the referenced issue.
Based on a quick look at old issues and existing test-cases, it seems that most (if not all) PDF documents that benefit from using the font-data in this way lack any /ToUnicode maps which should mean that they're unaffected by these changes.
This commit is contained in:
Jonas Jenwald 2022-09-03 22:55:24 +02:00
parent 50d72fc111
commit 12d60e0acf
3 changed files with 13 additions and 5 deletions

View file

@ -0,0 +1 @@
https://web.archive.org/web/20220903205442/https://pdf.cdn.readpaper.com/aiKnowledge/pdf/2022-05-06/d55ec560f4c142c3973abc66397d1822-/userUpload/d0edf452a85821acf41cbfa0a6f2f2ac.pdf

View file

@ -2860,6 +2860,14 @@
"link": false,
"type": "text"
},
{ "id": "issue15352",
"file": "pdfs/issue15352.pdf",
"md5": "d0edf452a85821acf41cbfa0a6f2f2ac",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "text"
},
{ "id": "issue6962",
"file": "pdfs/issue6962.pdf",
"md5": "d40e871ecca68baf93114bd28c782148",