diff --git a/packages/core-service/src/core/expert-profile/profile-export.service.ts b/packages/core-service/src/core/expert-profile/profile-export.service.ts index 9b65c50..c8c28d0 100644 --- a/packages/core-service/src/core/expert-profile/profile-export.service.ts +++ b/packages/core-service/src/core/expert-profile/profile-export.service.ts @@ -343,7 +343,7 @@ export class ProfileExportService { // --- SEITE 1: Rechte Spalte — BERUFSERFAHRUNG --- if (profile && profile.projects.length > 0) { - yRight = this.pdfSectionTitle(doc, 'BERUFSERFAHRUNG', rightColX, yRight, rightColWidth, accentColor); + yRight = this.pdfSectionTitle(doc, 'BERUFSERFAHRUNG / PROJEKTE', rightColX, yRight, rightColWidth, accentColor); const timelineX = rightColX + 6; const contentX = rightColX + 18; @@ -356,7 +356,7 @@ export class ProfileExportService { if (yRight > pageBottom) { doc.addPage(); yRight = 40; - yRight = this.pdfSectionTitle(doc, 'BERUFSERFAHRUNG (Forts.)', rightColX, yRight, rightColWidth, accentColor); + yRight = this.pdfSectionTitle(doc, 'BERUFSERFAHRUNG / PROJEKTE (Forts.)', rightColX, yRight, rightColWidth, accentColor); } let pageBreakOccurred = false; @@ -829,14 +829,13 @@ export class ProfileExportService { title: string, x: number, y: number, - _width: number, + width: number, accentColor: string, ): number { doc.font('Helvetica-Bold').fontSize(10).fillColor('#333333'); doc.text(title, x, y); - const titleWidth = doc.widthOfString(title); y += 14; - doc.moveTo(x, y).lineTo(x + titleWidth + 4, y) + doc.moveTo(x, y).lineTo(x + width, y) .strokeColor(accentColor).lineWidth(2).stroke(); y += 8; return y;