1
0
Fork 0
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:
Brendan Dahl 2012-07-23 16:27:55 -07:00
commit b3a603c199
9 changed files with 141 additions and 62 deletions

View file

@ -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;
}