Properly bypass Type3 fonts (ref #577)

This commit is contained in:
notmasteryet 2011-10-02 16:53:22 -05:00
parent 6b41e52800
commit 34f438b776

6
pdf.js
View File

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