fix(pdf): add missing .save() call to trigger file download
html2pdf().from().set() only configures, .save() actually triggers the browser download dialog.
This commit is contained in:
1 parent
1b53e67d90
commit
7170b8a5fa
2 files changed
+2
-2
No files matched your search
@@ -1053,7 +1053,7 @@
|
||||
image: { type: 'jpeg', quality: 0.95 },
|
||||
html2canvas: { scale: 2, useCORS: true, backgroundColor: '#fff' },
|
||||
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
|
||||
});
|
||||
}).save();
|
||||
})
|
||||
.then(function (result) {
|
||||
console.log('[PDF] step 5: generation COMPLETE, result:', result);
|
||||
|
||||
@@ -922,7 +922,7 @@
|
||||
image: { type: 'jpeg', quality: 0.95 },
|
||||
html2canvas: { scale: 2, useCORS: true, backgroundColor: '#fff' },
|
||||
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
|
||||
});
|
||||
}).save();
|
||||
})
|
||||
.then(function (result) {
|
||||
console.log('[PDF] step 5: generation COMPLETE, result:', result);
|
||||
|
||||
Reference in new issue
Block a user