I want to scrape a pdf document and I want the coordinates of input fields (the bottom left corner point of the text field). Is there a way to accomplish that using some python library like pyPDF2 or pdfMiner? the following images may help understand the problem

Usually, such fields are either a repetition of periods or underscores. You can extract the textlines of the pdf file using PyMuPDF and use a regex expression (
import re) to identify such repetitions and then save the coordinates to a list or something similar whenever a match is identified.The code below does this except it saves (x0,y0,x1,y1) as the coordinates of the bottom left corner (x0,y0) and the top right corner (x1,y1) - you can extract the ones you need.