These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Border bug!

R_Boyd
Registered: Nov 1 2007
Posts: 151

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>

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Very nice!! Looks like you spent a lot of time figuring this out. Thanks for the info.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script