From ccb37a150939ffdeecc6adfb3c7827edcc8b66df Mon Sep 17 00:00:00 2001 From: aiyingfeng Date: Fri, 21 Jul 2023 20:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdf处理/program/discern.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdf处理/program/discern.py b/pdf处理/program/discern.py index 8ffdc27..9d9c718 100644 --- a/pdf处理/program/discern.py +++ b/pdf处理/program/discern.py @@ -35,8 +35,12 @@ class Discern(object): line_str += line if '报告编号:' in line: self.xlsx_keys['报告编号'] = line.split("报告编号")[1].strip().replace(': ', '') + if 'Report Number:' in line: + self.xlsx_keys['报告编号'] = line.split("Report Number")[1].strip().replace(': ', '') if '样品名称:' in line: self.xlsx_keys['样品名称'] = line.split("样品名称")[1].strip().replace(': ', '') + if 'Article Name:' in line: + self.xlsx_keys['样品名称'] = line.split("Article Name")[1].strip().replace(': ', '') if '公司' in line and '中检华通' not in line and '制造商' not in line: self.xlsx_keys['公司名称'] = line.strip() if '最终报告' in line: