testTu.py 295 B

12345678910
  1. #-*- conding: utf-8 -*-
  2. import tabula
  3. path = 'D:/mydocument/myproject/git/busscredit/闻海雁532329198801060347.pdf'
  4. df = tabula.read_pdf(path, encoding='utf-8', pages='all')
  5. print(df)
  6. for indexs in df.index:
  7. # 遍历打印企业名称
  8. print(df.loc[indexs].values[1].strip())