mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #11020 from Snuffleupagus/issue-11016
Add a work-around, in `glyphlist.js`, for bad PDF generators which use a non-standard `/f_f` string in the `Encoding` dictionary when referring to the ff ligature (issue 11016)
This commit is contained in:
commit
d909b86b28
4 changed files with 9 additions and 0 deletions
|
@ -1826,6 +1826,7 @@ var getGlyphsUnicode = getLookupTableFactory(function (t) {
|
||||||
t['feicoptic'] = 0x03E5;
|
t['feicoptic'] = 0x03E5;
|
||||||
t['female'] = 0x2640;
|
t['female'] = 0x2640;
|
||||||
t['ff'] = 0xFB00;
|
t['ff'] = 0xFB00;
|
||||||
|
t['f_f'] = 0xFB00; // Fixes issue 11016.
|
||||||
t['ffi'] = 0xFB03;
|
t['ffi'] = 0xFB03;
|
||||||
t['ffl'] = 0xFB04;
|
t['ffl'] = 0xFB04;
|
||||||
t['fi'] = 0xFB01;
|
t['fi'] = 0xFB01;
|
||||||
|
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -79,6 +79,7 @@
|
||||||
!issue10529.pdf
|
!issue10529.pdf
|
||||||
!issue10542_reduced.pdf
|
!issue10542_reduced.pdf
|
||||||
!issue10665_reduced.pdf
|
!issue10665_reduced.pdf
|
||||||
|
!issue11016_reduced.pdf
|
||||||
!bad-PageLabels.pdf
|
!bad-PageLabels.pdf
|
||||||
!decodeACSuccessive.pdf
|
!decodeACSuccessive.pdf
|
||||||
!filled-background.pdf
|
!filled-background.pdf
|
||||||
|
|
BIN
test/pdfs/issue11016_reduced.pdf
Normal file
BIN
test/pdfs/issue11016_reduced.pdf
Normal file
Binary file not shown.
|
@ -39,6 +39,13 @@
|
||||||
"lastPage": 1,
|
"lastPage": 1,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue11016",
|
||||||
|
"file": "pdfs/issue11016_reduced.pdf",
|
||||||
|
"md5": "b75578bd052d2e6acdcc85b615eab6b1",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{ "id": "issue1293",
|
{ "id": "issue1293",
|
||||||
"file": "pdfs/issue1293r.pdf",
|
"file": "pdfs/issue1293r.pdf",
|
||||||
"md5": "4a098f5051f34fab036f5bbe88f8deef",
|
"md5": "4a098f5051f34fab036f5bbe88f8deef",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue