How to retrieve words and their x_start and x_end coordinates within the table in pdf image in Python?

31 Views Asked by At

Is it possible to read table headers like the example code below? To get headers with the data below? column by column

For example, as a result, I want to see the response like this:

{
   "ITEM NO.": { x_start: 100, x_end: 220 },
   "DESCRIPTION OF WORK": { x_start: 300, x_end: 420 },
   "ORIGINAL": { x_start: 450, x_end: 550 },
   "CHANGE ORDERS": { x_start: 600, x_end: 720 },
   "CURRENT": { x_start: 750, x_end: 850 },
}

enter image description here

enter image description here

0

There are 0 best solutions below