CharSet is optional

This commit is contained in:
Chris Jones 2011-06-18 21:18:56 -07:00
parent 17cbc72e19
commit 1be8c5e7ed

6
pdf.js
View File

@ -1912,9 +1912,11 @@ var CanvasGraphics = (function() {
// Get the font charset if any
var charset = descriptor.get("CharSet");
assertWellFormed(IsString(charset), "invalid charset");
if (charset) {
assertWellFormed(IsString(charset), "invalid charset");
charset = charset.split("/");
charset = charset.split("/");
}
} else if (IsName(encoding)) {
var encoding = Encodings[encoding.name];
if (!encoding)