I have lots of PDF files with text, charts, formulas in it.

I wanted to find the position from the starting point to the ending point for the formulas. Using pdfminer.six and pypdf does not return the formulas in a right way. Tried the OCR tools and ScanSSD but they are way to old and gave tons of errors when setup.
the Question focus is page 23 of https://www.st.com/resource/en/datasheet/vl6180.pdf Font object # 483
SNR RESULT __RANGE_RETURN_SIGNAL_COUNT{0x6C} RESULT__RANGE_RETURN_AMB_COUNT{0x74} * 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =so it starts with the S and ends with the = having gone around in a zigzag thus measure height as total heights and width as total widthsIf you are lucky the "Figure" will have been tagged so we can see that object is MCID34
Thus we can search for its data. Here is the smaller first part heading as the object body is many lines long.
so left edge is
200.04and at a GUESS the righthand end will be450.###likewise the height is roughly654to675. Normally we could not know with precision what scale the font letter would be, as it would be device specific, however here they are imbedded so are fixed dimensions.For a programmable answer there are many applications and personally I will try MuPDF as suitable to give an accurate set of values.
So we can say the upper left bound is
x ="200.04"and for y667.75997+ nominal 9 = nominally675.75997(you can round that down as 9 is overkill) for the lower right bound we can usethus
x = 450.719anyy = 656.720but that y value will need rounding down for descenders, so at a guess 655 same as done by eye.