how to find area coordinates of a invoice table in pdf file using python ? I am currently using camelot or tabula for table extraction from pdf files. However i would like to know if there is way to extract area coordinates of each tables so that i can customise accordingly
Asked
Active
Viewed 1,326 times
1 Answers
0
In Camelot, table coordinates are specificied in table attribute _bbox
.
Example:
import camelot
tables=camelot.read_pdf('your_doc.pdf', pages='1-end')
for i,table in enumerate(tables):
print(f'table id: {i}')
print(f'page: {table.page}')
print(f'coordinates: {table._bbox}')

Stefano Fiorucci - anakin87
- 3,143
- 7
- 26