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

Only one worker file, bundled in pdf.js

This commit is contained in:
Artur Adib 2011-10-25 10:16:20 -07:00
parent 8fbb05613e
commit 21753b9e89
8 changed files with 104 additions and 131 deletions

View file

@ -122,7 +122,7 @@ var PDFView = {
document.title = this.url = url;
var self = this;
getPdf(
PDF.getPdf(
{
url: url,
progress: function getPdfProgress(evt) {
@ -209,7 +209,7 @@ var PDFView = {
while (container.hasChildNodes())
container.removeChild(container.lastChild);
var pdf = new PDFDoc(data);
var pdf = new PDF.PDFDoc(data);
var pagesCount = pdf.numPages;
document.getElementById('numPages').innerHTML = pagesCount;
document.getElementById('pageNumber').max = pagesCount;