Merge pull request #1716 from yurydelendik/issue-1709
Adjusts MacRoman switch heuristics threshold
This commit is contained in:
commit
139200e772
@ -1976,9 +1976,9 @@ var Font = (function FontClosure() {
|
|||||||
this.isSymbolicFont = false;
|
this.isSymbolicFont = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// heuristics: if removed more than 2 glyphs encoding WinAnsiEncoding
|
// heuristics: if removed more than 10 glyphs encoding WinAnsiEncoding
|
||||||
// does not set properly
|
// does not set properly (broken PDFs have about 100 removed glyphs)
|
||||||
if (glyphsRemoved > 2) {
|
if (glyphsRemoved > 10) {
|
||||||
warn('Switching TrueType encoding to MacRomanEncoding for ' +
|
warn('Switching TrueType encoding to MacRomanEncoding for ' +
|
||||||
this.name + ' font');
|
this.name + ' font');
|
||||||
encoding = Encodings.MacRomanEncoding;
|
encoding = Encodings.MacRomanEncoding;
|
||||||
|
1
test/pdfs/issue1709.pdf.link
Normal file
1
test/pdfs/issue1709.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://www.mft-online.de/files/medizinerreport_2012.pdf
|
@ -402,6 +402,14 @@
|
|||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue1709",
|
||||||
|
"file": "pdfs/issue1709.pdf",
|
||||||
|
"md5": "84497bd23b7c82d03d2681a1cb1d9ed0",
|
||||||
|
"rounds": 1,
|
||||||
|
"pageLimit": 10,
|
||||||
|
"link": true,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue1015",
|
{ "id": "issue1015",
|
||||||
"file": "pdfs/issue1015.pdf",
|
"file": "pdfs/issue1015.pdf",
|
||||||
"md5": "b61503d1b445742b665212866afb60e2",
|
"md5": "b61503d1b445742b665212866afb60e2",
|
||||||
|
Loading…
Reference in New Issue
Block a user