Datenschutzerklärung
from fpdf import FPDF
# Define multilingual privacy sections (starting with German)
privacy_sections = {
"de": {
"title": "Datenschutzerklärung – HEIMAT 24/7",
"content": [
("1. Wer wir sind",
"HEIMAT 24/7 ist eine digitale Plattform, betrieben von HEIMAT Basel, Erlenstrasse 59, CH-4058 Basel. "
"Wir betreiben die Website heimatclub.ch, die App HEIMAT 24/7, sowie angeschlossene Dienste (Shop, Ticketing, Livestreams, Mitgliederbereich, Community-Funktionen). "
"Kontakt: datenschutz@heimatclub.ch, Tel: +41 61 511 2600"),
("2. Welche Daten wir erfassen",
"Wir erheben personenbezogene Daten, wenn du unsere Website/App nutzt, Tickets oder Produkte kaufst, Mitglied wirst, mit uns kommunizierst oder an Events teilnimmst."),
("3. Wofür wir deine Daten verwenden",
"Für Vertragsabwicklung, Nutzerkonto, Kommunikation, Marketing (mit Einwilligung), Analyse & Verbesserung sowie Livestreams."),
("4. Rechtsgrundlagen",
"Einwilligung, Vertragserfüllung, berechtigtes Interesse gemäß DSGVO und DSG."),
("5. Drittanbieter & Tools",
"Wir nutzen: Wix, Printful, Stripe, PayPal, Wix Video, Vimeo, YouTube, Google Analytics, Newsletterdienste."),
("6. Cookies & Tracking",
"Cookies dienen zur Funktionalität, Analyse und Personalisierung. Zustimmung ist erforderlich."),
("7. Deine Rechte",
"Auskunft, Berichtigung, Löschung, Widerspruch, Datenübertragbarkeit, Widerruf der Einwilligung."),
("8. Aufbewahrungsdauer",
"Solange Nutzerkonto besteht oder gesetzlich notwendig."),
("9. Datensicherheit",
"SSL-Verschlüsselung, Zugangsbeschränkungen, System-Updates."),
("10. Änderungen dieser Erklärung",
"Aktuelle Version stets auf heimatclub.ch/privacy einsehbar.")
]
}
}
# Create PDF
pdf = FPDF()
pdf.set_auto_page_break(auto=True, margin=15)
# Function to add sections
def add_language_section(lang_code, lang_data):
pdf.add_page()
pdf.set_font("Helvetica", 'B', 16)
pdf.cell(0, 10, lang_data["title"], ln=True)
pdf.ln(5)
pdf.set_font("Helvetica", size=12)
for title, text in lang_data["content"]:
pdf.set_font("Helvetica", 'B', 12)
pdf.multi_cell(0, 10, title)
pdf.set_font("Helvetica", size=12)
pdf.multi_cell(0, 10, text)
pdf.ln(2)
# Add German section first
add_language_section("de", privacy_sections["de"])
# Save PDF
output_path = "/mnt/data/HEIMAT24_7_Datenschutzerklaerung_Mehrsprachig_Start_DE.pdf"
pdf.output(output_path)
output_path
Section Title
This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.
List Title
This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.
List Title
This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.
List Title
This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.
List Title
This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.