mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fix printing regression from #3848.
This commit is contained in:
parent
d4e4634d06
commit
c9f2390567
1 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue