Hello, Francisco.
This is not an iText question; and therefore is off-topic for this forum. You
are asking thousands of people for help on a problem that's not even an iText
problem.
That said, one way to do what you want is with JavaScript. You need to write
JavaScript(s) to get the X,Y coordinates and then set the script(s) as
action(s)
for either the page or the fields, IIRC. Also IIRC, you'll need the mouseUp,
mouseX, and mouseY methods. See the Adobe Acrobat SDK, JavaScript for Acrobat
API Reference, available here:
http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf
On page 249, you'll find mouseX and mouseY. You can look up mouseUp yourself.
You may find helpful examples at PlanetPDF.com.
Good luck!
Bill Segraves
________________________________
From: Francisco Javier Morales López de Gamarra <[email protected]>
To: [email protected]
Sent: Wed, July 7, 2010 4:24:24 AM
Subject: [iText-questions] Howto get X/Y coordinates of a open PDF
Hello, I am making a simple application that show the X/Y coordinate of the
mouse when it is over a opened PDF file.
How can I do it?, how can get the X/Y coordenates of the mouse pointer when
it is over it??, and capture it when the user do click???
I dont want to get the XY cooridnates of a text ... I need to get the X/Y
coordinates where the user make click in the PDF for modify it and place a
rectangle....
I have made the rectangle function and It works fine, but I need to know where
the user want
to put the rectangule ..., now the user simply write it on a text box (X/Y)
and works fine, but I would like to automatizate it and that if the user
made click over the PDF capture the XY coordinates of the possitionand fill
in the textbox automatically the x/y coordinates.
Please, any help would be very aprecciated
Thanks a lot
---
Francisco Javier Morales López de Gamarra
________________________________
Prepárate para la multitud de novedades que Hotmail tiene para ti
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/