Added printing + Resume name input
Some checks failed
linter / quality (push) Failing after 6m25s
tests / ci (push) Failing after 12m38s

This commit is contained in:
2025-08-27 14:54:51 +02:00
parent 55a52086c1
commit f3ff6fd6ac
11 changed files with 303 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
import { jsPDF } from "jspdf";
export function exportToPdf(element: HTMLElement, name: string) {
const pdf = new jsPDF();
pdf.html(element, {
callback: function (doc) {
doc.save(name);
},
width: 210,
windowWidth: element.scrollWidth,
});
}