How do you check the chars in each cell in a row in a table? #991
-
I have a table and want to check all the char properties in each cell in a table. I can access the char properties by |
Beta Was this translation helpful? Give feedback.
Answered by
samkit-jain
Sep 18, 2023
Replies: 1 comment
-
You can get the cells by for table in page.find_tables(my_table_settings):
for row in table.rows:
for cell in row.cells:
print(cell) # This is the bounding box of the cell.
cropped_cell = page.crop(cell) # Now crop the page so that only the cell is there.
# Do anything like cropped_cell.chars Treat cropped_cell as a page |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samkit-jain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get the cells by