This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
@esridhar126 something like this below should help. Actually, the table is a list so the iteration is done differently.
This is a simple code that just goes through the table object and parses every single table to different output...
I mean table 1 -> output 1, table 2-> output 2 etc.
#specify the path to your PDF document
tables = camelot.read_pdf('Z:/Google Drive/Alteryx/foo2.pdf')
output_number = 1
for table in tables:
df = table.df
#Get the dataframe from the PDF table data
#Write the dataframe with tabular data to the tool output number 1
This is not exactly elegant but i had a long day :-D
Also, you could just do quite a bit by just specifying the page to focus on directly in the read_pdf call...