mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 00:16:41 +02:00
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:
parent
ed24c061c4
commit
f8aed00645
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue