From 13b51cdc2594d6bbeecfa624564638375d0cab4b Mon Sep 17 00:00:00 2001 From: GuoQing Zhang Date: Fri, 19 Dec 2025 16:40:31 +0800 Subject: [PATCH] fix: doc convert docx failed --- .gitmodules | 6 ------ src/backend/bisheng/api/services/libreoffice_converter.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitmodules b/.gitmodules index 2fd458bbf..e69de29bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +0,0 @@ -[submodule "src/bisheng-unstructured"] - path = src/bisheng-unstructured - url = https://github.com/dataelement/bisheng-unstructured.git -[submodule "src/bisheng-rt"] - path = src/bisheng-rt - url = https://github.com/dataelement/bisheng-rt.git diff --git a/src/backend/bisheng/api/services/libreoffice_converter.py b/src/backend/bisheng/api/services/libreoffice_converter.py index 6f001f2b5..ebd3cf279 100644 --- a/src/backend/bisheng/api/services/libreoffice_converter.py +++ b/src/backend/bisheng/api/services/libreoffice_converter.py @@ -89,7 +89,7 @@ def convert_doc_to_docx(input_doc_path, output_dir=None): soffice_path, "--headless", # Run in headless mode (no GUI) "--convert-to", - "docx", # Specify the output format + "docx:Office Open XML Text", # Specify the output format "--outdir", output_dir, # Specify the output directory input_doc_path, # The input file