1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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, '_');