diff --git a/frontend/src/components/PDFGenerator.js b/frontend/src/components/PDFGenerator.js index 160330c..b19c337 100644 --- a/frontend/src/components/PDFGenerator.js +++ b/frontend/src/components/PDFGenerator.js @@ -181,15 +181,15 @@ class PDFGenerator { this.addressY = 30; } - this.doc.setFontSize(14); - this.doc.setFont(undefined, 'bold'); - this.doc.text(clubName, 20, this.addressY); + this.pdf.setFontSize(14); + this.pdf.setFont(undefined, 'bold'); + this.pdf.text(clubName, 20, this.addressY); - this.doc.setFontSize(12); - this.doc.setFont(undefined, 'normal'); + this.pdf.setFontSize(12); + this.pdf.setFont(undefined, 'normal'); addressLines.forEach(line => { this.addressY += 7; - this.doc.text(line, 20, this.addressY); + this.pdf.text(line, 20, this.addressY); }); this.addressY += 10; // Abstand zur nächsten Adresse