Also fix a few minor nits.
-// <canvas> contexts store most of the state we need natively.
-// However, PDF needs a bit more state, which we store here.
+/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
+// <canvas> contexts store most of the state we need natively.
+// However, PDF needs a bit more state, which we store here.
+
var CanvasExtraState = (function canvasExtraState() {
function constructor(old) {
// Are soft masks and alpha values shapes or opacities?
return constructor;
})();
+
{f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
{f: 7, c: 19887}]
};
+
return rgbBuf;
}
};
+
return constructor;
})();
+
return constructor;
})();
+
globalScope.PDFJS.PDFDoc = PDFDoc;
+
return constructor;
})();
+
};
return constructor;
})();
+
return constructor;
})();
+
return JpegImage;
})();
+
};
return PDFObjects;
})();
+
return constructor;
})();
+
return TilingPattern;
})();
+
/* PDFJSSCRIPT_INCLUDE_ALL */
})();
+
return constructor;
})();
+
}
}
};
+
return Promise;
})();
+
var obj = new Font(font.name, font.file, font.properties);
var str = '';
- var data = obj.data;
- if (data) {
- var length = data.length;
- for (var j = 0; j < length; j++)
- str += String.fromCharCode(data[j]);
+ var objData = obj.data;
+ if (objData) {
+ var length = objData.length;
+ for (var j = 0; j < length; ++j)
+ str += String.fromCharCode(objData[j]);
}
obj.str = str;
var handler = new MessageHandler('worker_processor', globalScope);
WorkerProcessorHandler.setup(handler);
}
+
importScripts('../src/pattern.js');
importScripts('../src/stream.js');
importScripts('../src/worker.js');
+