Python Forum

Full Version: export PDF to excel or csv
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to extract tables from PDF and extract it to CSV. i have tried:

1. tabula: It gives error: java` command is not found from this Python process. Please ensure Java is installed and PATH is set for `java
Have installed Java and set the environment also. but not working.
2. camelot: It is also showing error:  module 'camelot' has no attribute 'read_pdf'
3. import extract_table_data: Not giving correct results.. it shows: [[['', 'EAN', 'DESC'],
  ['', '1234 ABC', ''],
  ['', '2345 PQR', ''],
  ['', '5678 LMN', ''],
  ['', '6790 XYZ PQ', ''],
  ['', '3423 AABB', ''],
  ['', '1212 CCDD', '']]]
you can use reportlab for this see: https://www.blog.pythonlibrary.org/2018/...with-pytho