fixed font size

This commit is contained in:
Torsten Schulz
2025-07-15 18:12:31 +02:00
parent 69b4302e23
commit b6dd39dda3

View File

@@ -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;