Check availability of canvas & PDF before printing
This commit is contained in:
parent
8aa1c8102e
commit
f4ba0e342e
2 changed files with 2 additions and 2 deletions
|
@ -1101,7 +1101,7 @@ var PDFViewerApplication = {
|
|||
|
||||
var alertNotReady = false;
|
||||
var i, ii;
|
||||
if (!this.pagesCount) {
|
||||
if (!this.pdfDocument || !this.pagesCount) {
|
||||
alertNotReady = true;
|
||||
} else {
|
||||
for (i = 0, ii = this.pagesCount; i < ii; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue