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;
|
break;
|
||||||
default:
|
default:
|
||||||
warn('Unknown type of font: ' + type);
|
warn('Unknown type of font: ' + type);
|
||||||
|
baseEncoding = [];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4749,9 +4751,7 @@ var PartialEvaluator = (function partialEvaluator() {
|
|||||||
// This case is here for compatibility.
|
// This case is here for compatibility.
|
||||||
var descriptor = xref.fetchIfRef(dict.get('FontDescriptor'));
|
var descriptor = xref.fetchIfRef(dict.get('FontDescriptor'));
|
||||||
if (!descriptor) {
|
if (!descriptor) {
|
||||||
var baseFontName = dict.get('BaseFont');
|
var baseFontName = dict.get('BaseFont') || new Name('sans-serif');
|
||||||
if (!isName(baseFontName))
|
|
||||||
return null;
|
|
||||||
|
|
||||||
// Using base font name as a font name.
|
// Using base font name as a font name.
|
||||||
baseFontName = baseFontName.name.replace(/,/g, '_');
|
baseFontName = baseFontName.name.replace(/,/g, '_');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user