Code for converting pdf to csv

July 12, 2020 - Reading time: ~1 minute

<code>

import tabula

#file = "/home/work/Documents/Unit_Reports/SFC-00428 Gaurang.pdf"
# output all the tables in the PDF to a CSV
#tabula.convert_into(file, "SFC-00428_Gaurang.csv", pages = "all")
tabula.convert_into_by_batch("/home/work/Documents/Unit_Reports/PDf/", output_format = "csv", pages = "all")

</code>

LazyCoderOZ

I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)