From b6dd39dda38117abc1ca6ac12e54e4ccbb31d1c7 Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Tue, 15 Jul 2025 18:12:31 +0200 Subject: [PATCH] fixed font size --- frontend/src/components/PDFGenerator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/PDFGenerator.js b/frontend/src/components/PDFGenerator.js index dd0ec41..630fbba 100644 --- a/frontend/src/components/PDFGenerator.js +++ b/frontend/src/components/PDFGenerator.js @@ -20,6 +20,8 @@ class PDFGenerator { } async addSchedule(element) { + const originalFontSize = element.style.fontSize; + element.style.fontSize = '12pt'; const canvas = await html2canvas(element, { scale: 2 }); const imgData = canvas.toDataURL('image/png'); const imgWidth = 210 - this.margin * 2;