fontName can be stored in xref

This commit is contained in:
Ivars Veksins 2011-08-03 11:56:43 +01:00
parent f340f3155d
commit cffcac597c

2
pdf.js
View File

@ -3681,7 +3681,7 @@ var PartialEvaluator = (function() {
var descriptor = xref.fetch(fd);
var fontName = descriptor.get('FontName');
var fontName = xref.fetchIfRef(descriptor.get('FontName'));
assertWellFormed(IsName(fontName), 'invalid font name');
fontName = fontName.name.replace(/[\+,\-]/g, '_');