1
0
Fork 0
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:
Brendan Dahl 2011-11-29 14:50:19 -08:00
parent fcc05b08bf
commit e5d91ab219
2 changed files with 7 additions and 13 deletions

View file

@ -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',