pdf_table_extractor.py 304 B

1234567
  1. import camelot
  2. import matplotlib.pyplot as plt
  3. tables = camelot.read_pdf('/Users/beatescheibel/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()