mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Use data directly in PDFDoc.
And create the Stream inside the PDFDoc constructor for a cleaner interface. Also encapsulate unnecessary details from the user.
This commit is contained in:
parent
7c7fb4bcee
commit
2094c29169
4 changed files with 5 additions and 4 deletions
|
@ -83,7 +83,7 @@ function nextTask() {
|
|||
r.responseArrayBuffer || r.response;
|
||||
|
||||
try {
|
||||
task.pdfDoc = new PDFDoc(new Stream(data));
|
||||
task.pdfDoc = new PDFDoc(data);
|
||||
} catch (e) {
|
||||
failure = 'load PDF doc : ' + e.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue