mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Stops font processing when valid glyphs are absent in the font
This commit is contained in:
parent
399463a450
commit
62b2c5a030
2 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
translated = this.translateFont(font, xref, resources,
|
||||
dependency);
|
||||
} catch (e) {
|
||||
translated = { error: e };
|
||||
translated = { error: e instanceof Error ? e.message : e };
|
||||
}
|
||||
font.translated = translated;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue