diff --git a/pdf.js b/pdf.js index 9c4344fab..c0e4791d4 100644 --- a/pdf.js +++ b/pdf.js @@ -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)