Skip to main content
shelbycott
Known Participant
March 30, 2020
Question

Remove form field padding using JavaScript

  • March 30, 2020
  • 1 reply
  • 1032 views

Not too optimistic about this one, but does anyone know if there's a way to remove the annoying default top padding in a form field using JavaScript? I've been looking everywhere and haven't been able to find a solution.

 

Thanks!

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
March 30, 2020

Can you explain your problem?

shelbycott
Known Participant
March 30, 2020

Basically what I'm trying to do recreate text in Photoshop as form fields in Acrobat. Unfortunately, both programs handle placement inside text box bounds differently. I'm trying to align my Acrobat text to the top of its form field or at least understand how Acrobat calculates its top margin. In the example below, the bounding boxes are the same, but the top margin results in clipping in Acrobat.

 

Photoshop:

Acrobat:

 

Even when I use the rich text tools in Acrobat and set the top to 0, there is still a margin.

 

Hopefully that makes sense!

Bernd Alheit
Community Expert
Community Expert
March 30, 2020

Why is this a problem?