I have encountered a problem whereby adding a left hand border to an existing text field produces a bottom and right hand side border as well!
After much wailing and gnashing of teeth I have found the solution.
The field without any borders has the following code
<border> <edge presence="hidden"> </edge> <corner> </corner> <corner> </corner> <corner> </corner> <corner presence="hidden"/> </border>
When I add a left hand side border it produces this code and the effect described above.
<border> <edge presence="hidden"> </edge> <corner/> <edge> </edge> <edge> </edge> <edge/> </border>
The solution is to click on the offending field and then go to the XML tag and then paste this code over the border specification to achieve the desired effect.
<border> <edge presence="hidden"> </edge> <edge presence="hidden"> </edge> <edge presence="hidden"> </edge> <edge/> <corner/> </border>
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script