pdf to csv python

# 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')

Here is what the above code is Doing:
1. Importing the tabula library
2. Converting the PDF into CSV format
3. The first parameter is the directory path of the PDF file
4. The second parameter is the output format, which is CSV in this case
5. The third parameter is the page number, which is ‘all’ in this case