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 7d7151a commit 0fe9726Copy full SHA for 0fe9726
src/worker.js
@@ -195,7 +195,7 @@ Worker.prototype.toPdf = function toPdf() {
195
196
for (var page=0; page<nPages; page++) {
197
// Trim the final page to reduce file size.
198
- if (page === nPages-1) {
+ if (page === nPages-1 && pxFullHeight % pxPageHeight !== 0) {
199
pageCanvas.height = pxFullHeight % pxPageHeight;
200
pageHeight = pageCanvas.height * this.prop.pageSize.inner.width / pageCanvas.width;
201
}
0 commit comments