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:
parent
d71948038f
commit
bcc085ec52
5 changed files with 26 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue