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():