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 cfc00c6 commit 8bd5481Copy full SHA for 8bd5481
src/html2pdf.js
@@ -151,7 +151,7 @@ var html2pdf = (function(html2canvas, jsPDF) {
151
// Enable page-breaks.
152
var pageBreaks = source.querySelectorAll('.html2pdf__page-break');
153
var pxPageHeight = pageSize.inner.height * pageSize.k / 72 * 96;
154
- pageBreaks.forEach(function(el) {
+ Array.prototype.forEach.call(pageBreaks, function(el) {
155
el.style.display = 'block';
156
var clientRect = el.getBoundingClientRect();
157
el.style.height = pxPageHeight - (clientRect.top % pxPageHeight) + 'px';
0 commit comments