1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Don't display cmds used on the page by default + turn on worker support for now again

This commit is contained in:
Julian Viereck 2011-09-06 10:44:26 -07:00
parent 2fcc93c751
commit aa8699a334
2 changed files with 19 additions and 13 deletions

View file

@ -152,8 +152,13 @@ var PDFView = {
while (container.hasChildNodes())
container.removeChild(container.lastChild);
// var pdf = new WorkerPDFDoc(data);
var pdf = new PDFDoc(new Stream(data));
var pdf;
if (true /* Use Worker */) {
pdf = new WorkerPDFDoc(data);
} else {
pdf = new PDFDoc(new Stream(data));
}
var pagesCount = pdf.numPages;
document.getElementById('numPages').innerHTML = pagesCount;