From 3c006884d1f5f8c35cfeaf618c3b65953641376e Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Mon, 17 Feb 2025 14:46:46 +0800 Subject: [PATCH] =?UTF-8?q?2.17=20=E5=A2=9E=E5=8A=A0=E8=AF=BB=E6=96=87?= =?UTF-8?q?=E4=BB=B6pdf=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/routes/test_readpdf.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flask_app/routes/test_readpdf.py b/flask_app/routes/test_readpdf.py index 42ed689..4110bd7 100644 --- a/flask_app/routes/test_readpdf.py +++ b/flask_app/routes/test_readpdf.py @@ -28,13 +28,13 @@ def process_file(): # 生成唯一文件名 filename = os.path.join(output_folder,'ztbfile.pdf') file_path,file_type=download_file(file_url, filename) - # # print(file_path) - # # 调用预处理函数 - # result = read_pdf_main(pdf_path=file_path) - # - # # 处理结果 - # if not result: - # return jsonify({'error': 'File processing failed'}) + # print(file_path) + # 调用预处理函数 + result = read_pdf_main(pdf_path=file_path) + + # 处理结果 + if not result: + return jsonify({'error': 'File processing failed'}) response_data={ "处理结果":"yes" }