Open hamedhafeznia opened 1 year ago
In my case, the issue happened because of the 'html2canvas' scale option. If that option has a value above 1.2, Firefox freezes and does not download the PDF. in beforeDownload function i did this
if (navigator.userAgent.indexOf("Firefox") != -1) { options.html2canvas.scale = 1.2 }
Describing the bug: I'm having a problem using this library in Firefox, when I click the Export Button, the page freezes and does not download the PDF file. I also receive the following error message. happens when there are too many elements on the page.
here's my code:
Method for downloading the file:
exportToPDF() { this.$refs.html2Pdf.generatePdf(); },
Error:
Package Version: 1.8.0
Additional context: Just happens in Firefox and works well on Chrome. One thing that I realized is the following element covers the page so the result is freezing the page: