tables = camelot.read_pdf(r"C:\Users\Ayush ShaZz\Desktop\Code_Python\FoodCaloriesList.pdf")
for table in tables:
print(table.df)
Its reading only the first page. Someone please help me out
By default Camelot only uses the first page, see here: https://camelot-py.readthedocs.io/en/master/user/quickstart.html
From the link, you can do multiple pages:
camelot.read_pdf('your.pdf', pages='1,2,3')
Or, if you want to use them all:
camelot.read_pdf('your.pdf',pages=1,4-10,20-end )
If you want to read all the pages in a pdf then use:
camelot.read_pdf('your.pdf', pages='all')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With