You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsProject/dsRag/Test/T1_extract_images_from_docx.py

9 lines
312 B

1 month ago
from Util.WordImageUtil import extract_images_from_docx
1 month ago
# 使用示例
1 month ago
if __name__ == "__main__":
1 month ago
word_path = "d:\\dsWork\\dsProject\\dsRag\\static\\Test\\带图的WORD文档_MATH_3.docx"
1 month ago
output_dir = "../static/Images" # 图片输出目录
1 month ago
extract_images_from_docx(word_path, output_dir)