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

PDF --> PDFJS, global wrapper named

This commit is contained in:
Artur Adib 2011-10-26 14:46:57 -04:00
parent 135af5df13
commit 1d4e3025b6
5 changed files with 12 additions and 12 deletions

View file

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