I'm trying to create a 'fillable' PDF form. I have code that draws rectangles and text onto an existing PDF when given a list of coordinates and data, but I need to build (or find!) a tool to generate these lists of coordinates. I want to be able to draw a rectangle and save the coordinates and size of it. (If this were a raster image, it would be trivial, but I need the values in points.)
So: how can I display a PDF in python such that I can convert mouse coordinates into document-space coordinates?
Or, alternatively: how can I draw rectangles on a PDF and easily record a lot of coordinates and sizes in point units?