mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Make xObjForm use raw format
This commit is contained in:
parent
67f745443e
commit
2fcc93c751
2 changed files with 6 additions and 4 deletions
|
@ -152,7 +152,8 @@ var PDFView = {
|
|||
while (container.hasChildNodes())
|
||||
container.removeChild(container.lastChild);
|
||||
|
||||
var pdf = new WorkerPDFDoc(data);
|
||||
// var pdf = new WorkerPDFDoc(data);
|
||||
var 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