2.13
This commit is contained in:
parent
e89f29eeaa
commit
b231e02773
@ -32,9 +32,6 @@ 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以供后续处理
|
||||
else:
|
||||
logger.error("Unsupported file type provided. Preprocessing halted.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user