Jonas Jenwald
27513cd23b
[api-minor] Ensure that the `getDocument` Promise is rejected if the `loadingTask` is destroyed, or an `Error` is thrown, inside of the `onPassword` callback (issue 7806)
...
This patch also removes the `UpdatePassword` message, in favour of using the `sendWithPromise` method of `MessageHandler`.
Furthermore, the patch also refactors the `BasePdfManager_updatePassword`/`BasePdfManager_passwordChanged` methods (in pdf_manager.js), and the `pdfManagerReady` function (in worker.js).
9 years ago
Jonas Jenwald
c36468cbce
Fix errors reported by the `keyword-spacing` ESLint rule
...
http://eslint.org/docs/rules/keyword-spacing
9 years ago
Jonas Jenwald
d284cfd5eb
[api-minor] Add support for relative URLs, in both annotations and the outline, by adding a `docBaseUrl` parameter to `PDFJS.getDocument` (bug 766086)
...
Note that in `FIREFOX/MOZCENTRAL/CHROME` builds of the standard viewer the `docBaseUrl` parameter will be set by default, since in that case it makes sense to use the current URL as a base.
For the `GENERIC` viewer, or the API itself, it doesn't make sense to try and set the `docBaseUrl` by default. However, custom deployments/implementations may still find the parameter useful.
9 years ago
Yury Delendik
bda5e6235e
Removes global PDFJS usage from the src/core/.
9 years ago
Yury Delendik
0d591719d9
Makes PDF data reading Streams API friendly.
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
10 years ago
Tim van der Meij
0c41866433
Make use of `Util.inherit` in `src/core/pdf_manager.js`
...
While we are here, fix some incorrect function names.
10 years ago
Yury Delendik
06c1904675
Refactors FontLoader to group fonts per document.
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Tony Jin
ef667823dd
[api-minor] Add an optional param to DocumentInitParameters for specifying the range request chunk size to use. Defaults to 2^16 = 65536.
10 years ago
Yury Delendik
59c13b32aa
Adds destroy method to the document loading task.
...
Also renames PDFPageProxy.destroy method to cleanup.
10 years ago
Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Jonas Jenwald
87d38b0692
Remove LegacyPromise in src/core/worker.js
11 years ago
Jonas Jenwald
caad87eba5
Remove LegacyPromise in src/core/pdf_manager.js
11 years ago
Thorben Bochenek
baccf3d160
refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
...
Rename pdfModel to pdfDocument to let the name closer resemble what the
variable actually holds
11 years ago
Rob Wu
2a19dc86e7
Do not switch to a range request for small PDFs
11 years ago
terje.kristiansen
08737375f8
Added withCredentials parameter and passing it to xhr requests
12 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
12 years ago
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
12 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
biggert
fb957f5c6e
Prevent undefined error on null object when calling .destroy on a
...
document initialized with LocalPdfManager.
Per @brendandahl's recommendation, moved the terminate function out of worker
and into the PdfManager
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Yury Delendik
61a7738a5d
Fixes password for range request loading
12 years ago
Mack Duan
2ce00279be
Address more of brendan's comments
12 years ago
Mack Duan
27fe18e8c6
Address brendan's comments
12 years ago
Mack Duan
dbccbaaa27
Make getOperatorList() calls independent and merge queues at end
12 years ago
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago