script to convert pdf to excel using python

  • Post author:
  • Post category:Python

hello everyone in this small piece of code you will be able to convert a PDF to Excel using just your terminal

You can copy and paste the code just by changing the address of your file

# Import the required Module
import tabula
# Read a PDF File
df = tabula.read_pdf("IPLmatch.pdf", pages='all')[0]
# convert PDF into CSV
tabula.convert_into("IPLmatch.pdf", "iplmatch.csv", output_format="csv", pages='all')