1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00

extracted filetype in pdf.js instead of fonts.js

This commit is contained in:
sbarman 2011-07-20 11:25:00 -07:00
parent 37ef03d51e
commit 8763002c44
2 changed files with 9 additions and 2 deletions

7
pdf.js
View file

@ -3814,8 +3814,15 @@ var PartialEvaluator = (function() {
}
}
if (fontFile && fontFile.dict) {
var fileType = fontFile.dict.get('Subtype');
if (fileType)
fileType = fileType.name;
}
var properties = {
type: subType.name,
subtype: fileType,
encoding: encodingMap,
charset: charset,
firstChar: fontDict.get('FirstChar'),