Skip to content

Commit

Permalink
Fix printing regression from mozilla#3848.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandahl authored and arrogantrobot committed Dec 24, 2013
1 parent 3ab56fa commit 5e04fc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,13 @@ var PDFView = {
bindOnAfterDraw(pageView, thumbnailView);
pages.push(pageView);
thumbnails.push(thumbnailView);
if (!PDFJS.disableAutoFetch) {
pagePromises.push(pdfDocument.getPage(pageNum).then(
function (pageView, pdfPage) {
pageView.setPdfPage(pdfPage);
}.bind(this, pageView)
));
}
}

var event = document.createEvent('CustomEvent');
Expand Down

0 comments on commit 5e04fc0

Please sign in to comment.