fontName can be stored in xref
This commit is contained in:
parent
f340f3155d
commit
cffcac597c
2
pdf.js
2
pdf.js
@ -3681,7 +3681,7 @@ var PartialEvaluator = (function() {
|
|||||||
|
|
||||||
var descriptor = xref.fetch(fd);
|
var descriptor = xref.fetch(fd);
|
||||||
|
|
||||||
var fontName = descriptor.get('FontName');
|
var fontName = xref.fetchIfRef(descriptor.get('FontName'));
|
||||||
assertWellFormed(IsName(fontName), 'invalid font name');
|
assertWellFormed(IsName(fontName), 'invalid font name');
|
||||||
fontName = fontName.name.replace(/[\+,\-]/g, '_');
|
fontName = fontName.name.replace(/[\+,\-]/g, '_');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user