From 4cefde375ce2536fb1bb19dd8667785504783622 Mon Sep 17 00:00:00 2001 From: aiyingfeng Date: Sat, 5 Aug 2023 10:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8F=96pdf=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E5=9B=BE=E7=89=87=E5=92=8C=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdf处理/program/pdf_base.py | 2 +- pdf处理/program/testing_agency_report.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pdf处理/program/pdf_base.py b/pdf处理/program/pdf_base.py index 5afcf68..8a737b4 100644 --- a/pdf处理/program/pdf_base.py +++ b/pdf处理/program/pdf_base.py @@ -110,7 +110,7 @@ class PDFBase(Base): # 替换空单元格 pf.fillna(' ', inplace=True) # 输出 - pf = pf.sort_values(by='样品名称') + pf = pf.sort_values(by='文件名') pf.to_excel(file_path, index=False) # 保存表格 file_path.close() diff --git a/pdf处理/program/testing_agency_report.py b/pdf处理/program/testing_agency_report.py index 85e8fa7..1b9e829 100644 --- a/pdf处理/program/testing_agency_report.py +++ b/pdf处理/program/testing_agency_report.py @@ -126,7 +126,8 @@ class TestingAgencyReport(PDFBase): '检测项目': '', '标志': '', '签发日期': '', - '公司名称': '' + '公司名称': '', + '文件名': '' } self.remove_img(img_path) if entry.is_file():