CharSet is optional
This commit is contained in:
parent
17cbc72e19
commit
1be8c5e7ed
2
pdf.js
2
pdf.js
@ -1912,9 +1912,11 @@ var CanvasGraphics = (function() {
|
|||||||
|
|
||||||
// Get the font charset if any
|
// Get the font charset if any
|
||||||
var charset = descriptor.get("CharSet");
|
var charset = descriptor.get("CharSet");
|
||||||
|
if (charset) {
|
||||||
assertWellFormed(IsString(charset), "invalid charset");
|
assertWellFormed(IsString(charset), "invalid charset");
|
||||||
|
|
||||||
charset = charset.split("/");
|
charset = charset.split("/");
|
||||||
|
}
|
||||||
} else if (IsName(encoding)) {
|
} else if (IsName(encoding)) {
|
||||||
var encoding = Encodings[encoding.name];
|
var encoding = Encodings[encoding.name];
|
||||||
if (!encoding)
|
if (!encoding)
|
||||||
|
Loading…
Reference in New Issue
Block a user