i solved my problem by pdfminer.six and pymupdf by getting line  and character position
thx all of you
Used Pymupdf faced the problem of getting information about the text in the pdf file
I asked in the library's discord channel about the possibility of obtaining information about intervals, but they told me that the library does not know how to work with them
Perhaps there are other libraries that can do this?
I tried to look in other libraries but did not find it. Maybe I missed something....
How to get information about character spacing and word spacing from pdf file?