Filter more characters on font name
This commit is contained in:
parent
6600e747e5
commit
4275a68e29
2
pdf.js
2
pdf.js
@ -3674,7 +3674,7 @@ var PartialEvaluator = (function() {
|
||||
|
||||
var fontName = descriptor.get('FontName');
|
||||
assertWellFormed(IsName(fontName), 'invalid font name');
|
||||
fontName = fontName.name.replace('+', '_');
|
||||
fontName = fontName.name.replace(/[\+,\-]/g, '_');
|
||||
|
||||
var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
|
||||
if (!fontFile)
|
||||
|
Loading…
Reference in New Issue
Block a user