Fusszeile aus PDF entfernt
This commit is contained in:
27
app.py
27
app.py
@@ -390,33 +390,6 @@ def invoice_pdf():
|
||||
pdf.ln(6)
|
||||
pdf.cell(180, 4, "Zahlbar innerhalb von 14 Tagen ohne Abzug. Vielen Dank fur Ihren Auftrag!")
|
||||
|
||||
# --- Footer ---
|
||||
pdf.set_y(-35)
|
||||
pdf.set_draw_color(180, 180, 180)
|
||||
pdf.line(left, pdf.get_y(), 195, pdf.get_y())
|
||||
pdf.set_draw_color(0, 0, 0)
|
||||
pdf.ln(3)
|
||||
pdf.set_font("Arial", "", 8)
|
||||
pdf.set_text_color(100, 100, 100)
|
||||
footer_parts = [firmen_name] if firmen_name else []
|
||||
if telefon:
|
||||
footer_parts.append(f"Tel: {telefon}")
|
||||
if email:
|
||||
footer_parts.append(email)
|
||||
if footer_parts:
|
||||
pdf.set_x(left)
|
||||
pdf.cell(0, 4, " | ".join(footer_parts), ln=True)
|
||||
if paypal:
|
||||
pdf.set_x(left)
|
||||
pdf.cell(0, 4, f"PayPal: {paypal}", ln=True)
|
||||
if iban and bank_name:
|
||||
pdf.set_x(left)
|
||||
pdf.cell(0, 4, f"{iban} | {bank_name}", ln=True)
|
||||
elif iban:
|
||||
pdf.set_x(left)
|
||||
pdf.cell(0, 4, iban, ln=True)
|
||||
pdf.set_text_color(0, 0, 0)
|
||||
|
||||
return send_file(
|
||||
io.BytesIO(pdf.output(dest='S').encode('latin-1')),
|
||||
mimetype='application/pdf',
|
||||
|
||||
Reference in New Issue
Block a user