Fixed used variable in class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user