mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
CharSet is optional
This commit is contained in:
parent
8fcd7c6635
commit
fcbf6e61ce
1 changed files with 4 additions and 2 deletions
6
pdf.js
6
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue