convert pdf to csv python

38

# Run this command on command prompt in your python folder 'pip install tabula-py', it will install Tabula Library
# Run this code to convert PDF to CSV

import tabula
tabula.convert_into_by_batch("your directory path", output_format='csv', pages='all')
# Run this command on command prompt in your python folder 'pip install tabula-py', it will install Tabula Library
# Run this code to convert PDF to CSV

import tabula
tabula.convert_into("yourpdf.pdf", "output.csv", output_format="csv", pages='all')

Comments

Submit
0 Comments