Very basic worker implementation
This commit is contained in:
parent
2c51c6fb9e
commit
0a571899c8
3 changed files with 69 additions and 1 deletions
|
@ -152,7 +152,7 @@ var PDFView = {
|
|||
while (container.hasChildNodes())
|
||||
container.removeChild(container.lastChild);
|
||||
|
||||
var pdf = new PDFDoc(new Stream(data));
|
||||
var pdf = new WorkerPDFDoc(data);
|
||||
var pagesCount = pdf.numPages;
|
||||
document.getElementById('numPages').innerHTML = pagesCount;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue