mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 12:27:21 +02:00
Compare commits
No commits in common. "58ac273f1f36b3d01b21f2a07b19f5884eca1b2a" and "f302323c7e6bc4e0f442ccbd716cfb3d68ff23a0" have entirely different histories.
58ac273f1f
...
f302323c7e
@ -22,7 +22,7 @@ const MIN_IMAGE_DIM = 2048;
|
|||||||
// In Chrome, there aren't max dimensions but only a max area. So an image with
|
// In Chrome, there aren't max dimensions but only a max area. So an image with
|
||||||
// a very large dimensions is acceptable but it probably doesn't hurt to reduce
|
// a very large dimensions is acceptable but it probably doesn't hurt to reduce
|
||||||
// it when considering that it will finally rendered on a small canvas.
|
// it when considering that it will finally rendered on a small canvas.
|
||||||
const MAX_IMAGE_DIM = 32768;
|
const MAX_IMAGE_DIM = 65537;
|
||||||
const MAX_ERROR = 128;
|
const MAX_ERROR = 128;
|
||||||
|
|
||||||
// Large images are encoded in using the BMP format (it's a way faster than
|
// Large images are encoded in using the BMP format (it's a way faster than
|
||||||
|
|||||||
@ -319,9 +319,7 @@ class WorkerMessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onFailure(ex) {
|
function onFailure(ex) {
|
||||||
if (terminated) {
|
ensureNotTerminated();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ex instanceof PasswordException) {
|
if (ex instanceof PasswordException) {
|
||||||
const task = new WorkerTask(`PasswordException: response ${ex.code}`);
|
const task = new WorkerTask(`PasswordException: response ${ex.code}`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user