Properly bypass Type3 fonts (ref #577)
This commit is contained in:
parent
6b41e52800
commit
34f438b776
6
pdf.js
6
pdf.js
@ -4563,6 +4563,8 @@ var PartialEvaluator = (function partialEvaluator() {
|
||||
break;
|
||||
default:
|
||||
warn('Unknown type of font: ' + type);
|
||||
baseEncoding = [];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4749,9 +4751,7 @@ var PartialEvaluator = (function partialEvaluator() {
|
||||
// This case is here for compatibility.
|
||||
var descriptor = xref.fetchIfRef(dict.get('FontDescriptor'));
|
||||
if (!descriptor) {
|
||||
var baseFontName = dict.get('BaseFont');
|
||||
if (!isName(baseFontName))
|
||||
return null;
|
||||
var baseFontName = dict.get('BaseFont') || new Name('sans-serif');
|
||||
|
||||
// Using base font name as a font name.
|
||||
baseFontName = baseFontName.name.replace(/,/g, '_');
|
||||
|
Loading…
x
Reference in New Issue
Block a user