Skip to main content
Participant
October 3, 2017
Question

Moving Text up over a hidden text box?

  • October 3, 2017
  • 1 reply
  • 520 views

I have a pdf form that I am creating. I have yest no questions with a check box. If checked yes I have a text box that appears. When checked no it is hidden. Is it possible to get the next question to move up the page over the hidden text box? I am trying to reduce the white space on the form. I saw a closed post that mentioned how to do it but there was not enough information for me to figure it out.  I am a beginner so I will need step by step instructions. Thanks

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 3, 2017

PDF files can't be "re-flowed" like that. You can only move objects like fields, so your entire file will have to be comprised of fields to be able to do that. That's possible, but it's very complicated to implement. As the thread you linked to mentions, you will need to manipulate the "rect" property of all of these fields to move them up and down the page, according to your needs.

Participant
October 5, 2017

How do you get to the "rect" properties of a text box? Any chance you could write some steps on how to do this with text boxes?

try67
Community Expert
Community Expert
October 5, 2017

this.getField("Text1").rect will return the rect property of the "Text1" field, which is an array of four coordinates.

You can apply a new array to this value to move the field to a new location/size.