fix: doc convert docx failed

This commit is contained in:
GuoQing Zhang
2025-12-19 16:40:31 +08:00
parent 0ba44aac55
commit 13b51cdc25
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -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
@@ -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