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:
parent
8fbb05613e
commit
21753b9e89
8 changed files with 104 additions and 131 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue