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 fa832be..181b01c 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 @@ -567,8 +567,9 @@ export class ProfileExportService { yRight += 12; - // Timeline-Linie (korrekte Länge basiert auf tatsächlicher Höhe) - if (i < profile.projects.length - 1 && !pageBreakOccurred) { + // Timeline-Linie: nur zeichnen wenn kein Seitenumbruch im Eintrag + // UND der nächste Eintrag noch auf dieser Seite passt (kein hängender Strich) + if (i < profile.projects.length - 1 && !pageBreakOccurred && yRight + 40 <= pageBottom) { doc.moveTo(timelineX, entryStartY + 8).lineTo(timelineX, yRight - 4) .strokeColor(accentColor).lineWidth(1).stroke(); }