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
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
If you want to read all the pages in a pdf then use:
camelot.read_pdf('your.pdf', pages='all')
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 )
© 2022 - 2024 — McMap. All rights reserved.