mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Clear canvas for skipped pages
This commit is contained in:
parent
18db087f79
commit
d4e22f5a92
1 changed files with 5 additions and 0 deletions
|
@ -139,6 +139,11 @@ function nextPage(task, loadError) {
|
|||
if (task.skipPages && task.skipPages.indexOf(task.pageNum) >= 0) {
|
||||
log(' skipping page ' + task.pageNum + '/' + task.pdfDoc.numPages +
|
||||
'... ');
|
||||
// empty the canvas
|
||||
canvas.width = 1;
|
||||
canvas.height = 1;
|
||||
clear(canvas.getContext('2d'));
|
||||
|
||||
snapshotCurrentPage(task, '');
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue