PDA

View Full Version : getting x,y coordinates from a PDF file


asc4john
September 19th, 2006, 10:23 AM
I would like to how to get the x,y coordinates from a PDF file. Do I need either the ActiveX control or the DLL to do this? Basically I want to open a pdf, point at a location on the pdf, click and have the coordinate saved to a text file. I would be using VBA to do this. Thats all I need. The pdf would be turned into a text file:
line, startX,startY, endX,endY
line, startX,startY, endX,endY
.......
Thanks

william
September 21st, 2006, 12:35 AM
Hi asc4john,

I guess the coordinates you are going to save are "PDF coordinates", not "window coordinates".
If this is the case, then you can simply use our DLL to achieve this.
There is a function called FPDF_DeviceToPage which converts the screen coordinations of a point to page coordinations.
Our current version of ActiveX doesn't have this feature. However, we can customize a version for you to include this feature.