mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #1840 from yurydelendik/loadpdf-1
Moves loading of the binary PDF data to the worker
This commit is contained in:
commit
b3a603c199
9 changed files with 141 additions and 62 deletions
|
@ -395,7 +395,7 @@ var PDFView = {
|
|||
if (typeof url === 'string') { // URL
|
||||
this.url = url;
|
||||
document.title = decodeURIComponent(getFileName(url)) || url;
|
||||
parameters.url = url;
|
||||
parameters.url = PDFJS.combineUrl(window.location.href, url);
|
||||
} else if (url && 'byteLength' in url) { // ArrayBuffer
|
||||
parameters.data = url;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue