mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-31 11:27:21 +02:00
Compare commits
4 Commits
f302323c7e
...
58ac273f1f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58ac273f1f | ||
|
|
b92bdf80a2 | ||
|
|
ff42c0bd50 | ||
|
|
9677798ba0 |
@ -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 = 65537;
|
const MAX_IMAGE_DIM = 32768;
|
||||||
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,7 +319,9 @@ class WorkerMessageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onFailure(ex) {
|
function onFailure(ex) {
|
||||||
ensureNotTerminated();
|
if (terminated) {
|
||||||
|
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