From 6d6aab18ea988076abaacad8010c469e0cba6044 Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Thu, 2 Jul 2026 15:45:50 +0200 Subject: [PATCH] Mehr Platz oben: Logo bei y=12 statt 5 --- app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 84bc198..9ac2a34 100644 --- a/app.py +++ b/app.py @@ -291,15 +291,15 @@ def invoice_pdf(): logo_name = config.get('logo', '') logo_path = os.path.join('static', logo_name) if logo_name else '' if logo_name and os.path.exists(logo_path): - pdf.image(logo_path, x=171, y=5, w=24) + pdf.image(logo_path, x=171, y=12, w=24) img_w, img_h = image_dimensions(logo_path) if img_w and img_h: - logo_bottom = 5 + 24 * (img_h / img_w) + 3 + logo_bottom = 12 + 24 * (img_h / img_w) + 3 else: - logo_bottom = 5 + 15 + 3 + logo_bottom = 12 + 15 + 3 else: pdf.set_font("Arial", "B", 18) - pdf.set_xy(150, 15) + pdf.set_xy(150, 12) pdf.set_text_color(6, 111, 209) pdf.cell(col_w, 7, "JET", ln=True, align='R') pdf.set_x(150)