My purpose of this tool is: To validate whether Name and address of the PDF lies within specific coordinates(so that it does not go beyond the envelope window) . Till now i have created a tool in which user can mention left, right, bottom and top coordinates in form UI. But now user dont want to enter coordinates, they want a UI page where they can draw the rectangle instead of entering coordinates. For ex) address may be in top left, top right of the page. After User draw the rectangle on any UI, i will have to extract the pixel coordinate of rectangle and convert it to PDF units and test pdf if the address lies within the rectangle drawn by user. I have done the final part(validating the pdf). But help me with how to draw the rectangle on some UI and get its coordinates during runtime.
Thanks in Advance!
What I have tried:
I tried to open a bmp and keep 4 points and then read the pixel coordinates of the points. But each point has 4 coordinates of pixel to it. So thought i would draw a rectangle in paint. But people say we cannot read rectangle or any shapes from a bmp file.Only pixels can be read.
Thanks in Advance!