From 079f2a178b160f5f437ba5b96674759e55da6500 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Thu, 19 Dec 2024 15:31:12 +0800 Subject: [PATCH] =?UTF-8?q?12.19=20invalid=5Fpath=E8=BD=ACmd=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=89=8D=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/general/file2markdown.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flask_app/general/file2markdown.py b/flask_app/general/file2markdown.py index 1bfc1b0..ae37bff 100644 --- a/flask_app/general/file2markdown.py +++ b/flask_app/general/file2markdown.py @@ -54,7 +54,8 @@ def convert_file_to_markdown(file_path): 'page_details': 0, # 不包含页面细节 'markdown_details': 1, 'apply_document_tree': 1, - 'dpi': 216 # 分辨率设置默认为144 dpi + 'dpi': 216, # 分辨率设置默认为144 dpi, + 'get_image':None }) print("request time: ", resp.elapsed.total_seconds()) data = json.loads(resp.text) @@ -74,6 +75,6 @@ def convert_file_to_markdown(file_path): if __name__ == "__main__": # file_path=r"C:\Users\Administrator\Desktop\fsdownload\e702f1e6-095d-443d-bb7d-ef2e42037cb1\ztbfile_procurement.pdf" - file_path=r"C:\Users\Administrator\Desktop\fsdownload\1073c74f-02b5-463e-a129-23c790a3c872\ztbfile_notice.docx" + file_path=r"C:\Users\Administrator\Desktop\new招标文件\output5\HBDL-2024-0514-001-招标文件_procurement\HBDL-2024-0514-001-招标文件_procurement_1.pdf" res=convert_file_to_markdown(file_path) print(res) \ No newline at end of file