1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

Limit image size to 1024*1024 for b2g.

This commit is contained in:
Brendan Dahl 2013-07-10 09:52:37 -07:00
parent d71948038f
commit bcc085ec52
5 changed files with 26 additions and 2 deletions

View file

@ -307,6 +307,9 @@ var WorkerMessageHandler = {
}
};
PDFJS.maxImageSize = data.maxImageSize === undefined ?
-1 : data.maxImageSize;
getPdfManager(data).then(function pdfManagerReady() {
loadDocument(false).then(onSuccess, function loadFailure(ex) {
// Try again with recoveryMode == true