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:
parent
2fcc93c751
commit
aa8699a334
2 changed files with 19 additions and 13 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue