pdf_table_extractor.py 316 B

12345678
  1. import camelot
  2. import matplotlib.pyplot as plt
  3. tables = camelot.read_pdf('/home/bscheibel/PycharmProjects/dxf_reader/iso_documents/ISO2768-1.PDF', pages="3",line_scale=70, line_tol=2, joint_tol=35)
  4. tables.export('foo.csv', f='csv')
  5. print(tables[0].df)
  6. camelot.plot(tables[0], kind='grid')
  7. plt.show()
  8. print(tables[3])