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 committed Nov 26, 2013
1 parent d4e4634 commit c9f2390
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 @@ -850,6 +850,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

1 comment on commit c9f2390

@Rob--W
Copy link

@Rob--W Rob--W commented on c9f2390 Jun 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Brendan,

What's the purpose of the disableAutoFetch flag?

Please sign in to comment.