parent
35d113b86f
commit
324573ea31
@ -1,11 +1,8 @@
|
||||
import os
|
||||
|
||||
from Util.WordImageUtil import extract_images_from_docx
|
||||
|
||||
|
||||
# 使用示例
|
||||
if __name__ == "__main__":
|
||||
word_path = "d:\\dsWork\\dsProject\\dsRag\\Test\\带图的WORD文档.docx"
|
||||
word_path = "d:\\dsWork\\dsProject\\dsRag\\static\\Test\\带图的WORD文档_MATH_3.docx"
|
||||
output_dir = "../static/Images" # 图片输出目录
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
extract_images_from_docx(word_path, output_dir)
|
Binary file not shown.
After Width: | Height: | Size: 120 KiB |
Loading…
Reference in new issue