
1. Re: Trying to underline the rectangle of a Text Field
try67 Jul 24, 2009 12:13 AM (in response to Ramon F Herrera)The square rect defines topleftx, toplefty, bottomleftx and bottomlefty.
For a line it's leftx, lefty, rightx, righty.
So if you want the line to be under the square, use the bottom values of the square to place the line.

2. Re: Trying to underline the rectangle of a Text Field
Ramon F Herrera Jul 24, 2009 8:11 AM (in response to try67)Thanks for your reply, try67:
Could you or anybody else please clarify this:
"The square rect defines topleftx, toplefty, bottomleftx and bottomlefty.
For a line it's leftx, lefty, rightx, righty."
According to such definition, the square rect does not contain any information about the right side?
Maybe what you meant to write is:
"The square rect defines:
topleftx, toplefty, bottomrightx and bottomrighty.
For a line it is
leftx, lefty, rightx, righty."
If that's the case, a rect of zero height is the same thing as a horizontal line. That was my assumption, but I am getting a 45degree line through the origin.
TIA,
Ramon

3. Re: Trying to underline the rectangle of a Text Field
try67 Jul 24, 2009 8:23 AM (in response to Ramon F Herrera)Yes, that's what I meant. Sorry for the mixup.
Maybe you should post your exact code.

4. Re: Trying to underline the rectangle of a Text Field
try67 Jul 24, 2009 9:32 AM (in response to Ramon F Herrera)The problem is this (from the Acrobat JavaScript Reference file):
"The Annotation Object also has a rect property. However, the coordinates are not in rotated user space and they are in a different order than in the Field Object rect property."