mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Fix invalid arguments error.
This commit is contained in:
parent
fcc05b08bf
commit
e5d91ab219
2 changed files with 7 additions and 13 deletions
|
@ -155,6 +155,11 @@ var PartialEvaluator = (function partialEvaluator() {
|
|||
font.loadedName = loadedName;
|
||||
|
||||
var translated = font.translated;
|
||||
// Convert the file to an ArrayBuffer which will be turned back into
|
||||
// a Stream in the main thread.
|
||||
if (translated.file)
|
||||
translated.file = translated.file.getBytes();
|
||||
|
||||
handler.send('obj', [
|
||||
loadedName,
|
||||
'Font',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue