fix(core): PDF-Export — Abschnittslinien bis zum Spaltenende und Titel angepasst

- pdfSectionTitle: Linie zieht sich jetzt ueber die volle Spaltenbreite (width-Parameter)
  statt nur bis zum Textende
- Titel 'BERUFSERFAHRUNG' umbenannt in 'BERUFSERFAHRUNG / PROJEKTE'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Reitz 2026-03-14 08:46:19 +01:00
parent ed24c061c4
commit f8aed00645

View file

@ -343,7 +343,7 @@ export class ProfileExportService {
// --- SEITE 1: Rechte Spalte — BERUFSERFAHRUNG --- // --- SEITE 1: Rechte Spalte — BERUFSERFAHRUNG ---
if (profile && profile.projects.length > 0) { 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 timelineX = rightColX + 6;
const contentX = rightColX + 18; const contentX = rightColX + 18;
@ -356,7 +356,7 @@ export class ProfileExportService {
if (yRight > pageBottom) { if (yRight > pageBottom) {
doc.addPage(); doc.addPage();
yRight = 40; 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; let pageBreakOccurred = false;
@ -829,14 +829,13 @@ export class ProfileExportService {
title: string, title: string,
x: number, x: number,
y: number, y: number,
_width: number, width: number,
accentColor: string, accentColor: string,
): number { ): number {
doc.font('Helvetica-Bold').fontSize(10).fillColor('#333333'); doc.font('Helvetica-Bold').fontSize(10).fillColor('#333333');
doc.text(title, x, y); doc.text(title, x, y);
const titleWidth = doc.widthOfString(title);
y += 14; y += 14;
doc.moveTo(x, y).lineTo(x + titleWidth + 4, y) doc.moveTo(x, y).lineTo(x + width, y)
.strokeColor(accentColor).lineWidth(2).stroke(); .strokeColor(accentColor).lineWidth(2).stroke();
y += 8; y += 8;
return y; return y;