My task: to connect points with lines using known coordinates.
What I have already done: using the doctr library, I find the coordinates of the words I am interested in on a pdf file. (My python code is not important for this question, below I will show what data I get from a specific file)
For example, there is a pdf file in which I am looking for the word “INVOICE”
After doctr has run, I get the following data
((0.09370404411764705, 0.0439453125), (0.33140099789915967, 0.09765625));
((0.5925912552521009, 0.1796875), (0.6575433298319328, 0.1953125));
((0.5925912552521009, 0.2041015625), (0.6575433298319328, 0.21875));
My question: how can I draw lines between these three points? To get a figure at the output.
For a better understanding of the situation for you: the figure on this file will be like a template for me. I receive a large number of documents, and in order not to look through everything, I will check whether this figure is on the received document, and look through only the necessary document.