mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
don't die when translating fonts without a charset
This commit is contained in:
parent
2069f3f241
commit
4b118d361c
1 changed files with 3 additions and 3 deletions
6
pdf.js
6
pdf.js
|
@ -2267,10 +2267,10 @@ var CanvasGraphics = (function() {
|
|||
|
||||
// Get the font charset if any
|
||||
var charset = descriptor.get("CharSet");
|
||||
if (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