Skip to content

Commit

Permalink
Merge pull request #3972 from brendandahl/print-reg
Browse files Browse the repository at this point in the history
Fix printing regression from #3848.
  • Loading branch information
yurydelendik committed Nov 26, 2013
2 parents 78c9a76 + c9f2390 commit 585a3d0
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

0 comments on commit 585a3d0

Please sign in to comment.