1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +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

@ -3201,6 +3201,7 @@ window.addEventListener('afterprint', function afterPrint(evt) {
//#if B2G
//window.navigator.mozSetMessageHandler('activity', function(activity) {
// var url = activity.source.data.url;
// PDFJS.maxImageSize = 1024 * 1024;
// PDFView.open(url);
// var cancelButton = document.getElementById('activityClose');
// cancelButton.addEventListener('click', function() {