xavctn / img2table

img2table is a table identification and extraction Python Library for PDF and images, based on OpenCV image processing
MIT License
581 stars 76 forks source link

width and height of each grid #160

Open listenfree opened 10 months ago

listenfree commented 10 months ago

Very good project, when using .to_xlsx can we provide a parameter that preserves the relative width and height of each grid within the table, with some tolerance.

xavctn commented 9 months ago

Hello, Right now, the cells height/width are supposed to be autofitted to their content but it might be possible to do it. I will check if I can do it in an easy way

listenfree commented 9 months ago

At the same time, it would be nice to determine the font size based on the relative proportions of text and A4. Which would be perfect.

7ph0n commented 5 months ago

Is there an update on this?