Logo rechtsbundig (x=171, rechte Kante am Rand) wie Text darunter
This commit is contained in:
2
app.py
2
app.py
@@ -291,7 +291,7 @@ def invoice_pdf():
|
|||||||
logo_name = config.get('logo', '')
|
logo_name = config.get('logo', '')
|
||||||
logo_path = os.path.join('static', logo_name) if logo_name else ''
|
logo_path = os.path.join('static', logo_name) if logo_name else ''
|
||||||
if logo_name and os.path.exists(logo_path):
|
if logo_name and os.path.exists(logo_path):
|
||||||
pdf.image(logo_path, x=165, y=5, w=24)
|
pdf.image(logo_path, x=171, y=5, w=24)
|
||||||
img_w, img_h = image_dimensions(logo_path)
|
img_w, img_h = image_dimensions(logo_path)
|
||||||
if img_w and img_h:
|
if img_w and img_h:
|
||||||
logo_bottom = 5 + 24 * (img_h / img_w) + 3
|
logo_bottom = 5 + 24 * (img_h / img_w) + 3
|
||||||
|
|||||||
Reference in New Issue
Block a user