# print("hello")
# import tabula

# pdf_path="dummy.pdf"
# print(pdf_path)
#  dfs = tabula.read_pdf(pdf_path)
# print(dfs[0])
# dfs[0].to_csv("14th_table.csv")

import tabula
import pandas as pd
print(tabula)
pdf_file = "table.pdf"
dfs = tabula.read_pdf(pdf_file, pages="all", multiple_tables=True)
combined_df = pd.concat(dfs)
combined_df.to_csv("14th_table.csv", index=False)
print("PDF content has been successfully written to 14th_table.csv")

