From 0ef4ab6c5a72b612b7c3abdcb0a4edc2062dbfc6 Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Thu, 2 Jul 2026 15:40:33 +0200 Subject: [PATCH] Logo 40% kleiner (w=24, x=165) --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 3b76881..c24cf13 100644 --- a/app.py +++ b/app.py @@ -291,12 +291,12 @@ 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=155, y=5, w=40) + pdf.image(logo_path, x=165, y=5, w=24) img_w, img_h = image_dimensions(logo_path) if img_w and img_h: - logo_bottom = 5 + 40 * (img_h / img_w) + 3 + logo_bottom = 5 + 24 * (img_h / img_w) + 3 else: - logo_bottom = 5 + 25 + 3 + logo_bottom = 5 + 15 + 3 else: pdf.set_font("Arial", "B", 18) pdf.set_xy(150, 15)