We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b2077 commit d87c258Copy full SHA for d87c258
src/worker.js
@@ -176,7 +176,6 @@ Worker.prototype.toPdf = function toPdf() {
176
var opt = this.opt;
177
178
// Calculate the number of pages.
179
- var ctx = canvas.getContext('2d');
180
var pxFullHeight = canvas.height;
181
var pxPageHeight = Math.floor(canvas.width * this.prop.pageSize.inner.ratio);
182
var nPages = Math.ceil(pxFullHeight / pxPageHeight);
0 commit comments