Another way:
In the 1st edition of the book, page 491, see Section 15.3.2, "Adding actions
to
the pushbuttons", Figure 15.9, in which you'll see in the listing for the
SenderReceiver class that the action PdfAction.SUBMIT_COORDINATES will include
the coordinates of the location in the domain of the button in the HTML
submittal. Make a button the size the the domain in which you wish to capture
coordinates defining the location of the "mouse click", put the button on top,
and you're in business. Note: X=0, Y=0 is the upper left hand corner of the
button.
Cheers,
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/