Use task.pageLimit properly.
This commit is contained in:
parent
31cb9b49d5
commit
ecf831b44b
@ -87,7 +87,11 @@ function nextTask() {
|
||||
}
|
||||
|
||||
function isLastPage(task) {
|
||||
return task.pageNum > (task.pageLimit || task.pdfDoc.numPages);
|
||||
var limit = task.pageLimit || 0;
|
||||
if (!limit || limit > task.pdfDoc.numPages)
|
||||
limit = task.pdfDoc.numPages;
|
||||
|
||||
return task.pageNum > limit;
|
||||
}
|
||||
|
||||
function canvasToDataURL() {
|
||||
|
Loading…
Reference in New Issue
Block a user