From e738a2cb72ac55e41a09267305c9014b6e446645 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 24 May 2026 12:54:04 -0700 Subject: [PATCH] Add theme to pptx template to fix OnlyOffice presentation crash --- backend/handlers/onlyoffice.go | 51 +++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/backend/handlers/onlyoffice.go b/backend/handlers/onlyoffice.go index 309b248..f2c2461 100644 --- a/backend/handlers/onlyoffice.go +++ b/backend/handlers/onlyoffice.go @@ -225,6 +225,7 @@ func writePptxContents(w *zip.Writer) error { + `, "_rels/.rels": ` @@ -236,14 +237,60 @@ func writePptxContents(w *zip.Writer) error { xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"> - + `, "ppt/_rels/presentation.xml.rels": ` + `, + "ppt/theme/theme1.xml": ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`, "ppt/slideMasters/slideMaster1.xml": ` + `, "ppt/slideMasters/_rels/slideMaster1.xml.rels": ` + `, "ppt/slideLayouts/slideLayout1.xml": `