This commit is contained in:
zy123 2025-02-14 09:08:51 +08:00
parent e89f29eeaa
commit b231e02773

View File

@ -32,10 +32,7 @@ def preprocess_files(output_folder, file_path, file_type,logger):
# docx_path = pdf2docx(pdf_path)
elif file_type == 3: # doc
# docx_path = doc2docx(file_path)
if is_pure_image(file_path):
is_pure_image_flag = True
else:
pdf_path = docx2pdf(file_path) # 将docx转换为pdf以供后续处理
pdf_path = docx2pdf(file_path) # 将docx转换为pdf以供后续处理
else:
logger.error("Unsupported file type provided. Preprocessing halted.")
return None