mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Parse Type1 font files to determine the various Length{n}
properties, instead of trusting the PDF file (issue 5686, issue 3928)
Fixes 5686. Fixes 3928.
This commit is contained in:
parent
c40df8a393
commit
05cf709f8e
6 changed files with 141 additions and 4 deletions
|
@ -2197,6 +2197,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
}
|
||||
var length1 = fontFile.dict.get('Length1');
|
||||
var length2 = fontFile.dict.get('Length2');
|
||||
var length3 = fontFile.dict.get('Length3');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2207,6 +2208,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
file: fontFile,
|
||||
length1: length1,
|
||||
length2: length2,
|
||||
length3: length3,
|
||||
loadedName: baseDict.loadedName,
|
||||
composite: composite,
|
||||
wideChars: composite,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue