diff --git a/app.go b/app.go index 94d6131..83bc8a4 100644 --- a/app.go +++ b/app.go @@ -376,17 +376,6 @@ func (a *App) DownloadUpdate() (string, error) { // PDF EXPORT // ExportPDF erstellt eine PDF-Datei des Wochenplans -func (a *App) ExportPDF(weekPlanID int, outputPath string) (string, error) { - // PDF-Export ist ein Platzhalter — in einer späteren Version wird hier - // eine richtige PDF-Bibliothek (z.B. gofpdf) verwendet. - // Vorerst geben wir eine Nachricht zurück. - plan, err := a.getWeekPlanByID(weekPlanID) - if err != nil { - return "", fmt.Errorf("Wochenplan nicht gefunden: %w", err) - } - return fmt.Sprintf("PDF-Export für KW %d/%d wird in einer zukünftigen Version unterstützt. Bitte nutzen Sie die Druckvorschau.", plan.Week, plan.Year), nil -} - // getWeekPlanByID lädt einen Wochenplan anhand seiner ID func (a *App) getWeekPlanByID(id int) (*WeekPlan, error) { var plan WeekPlan