Moving Text up over a hidden text box?

New Here ,
Oct 03, 2017

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Moving Text up over a hidden text box?

New Here ,
Oct 03, 2017

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 03, 2017 0
Most Valuable Participant ,
Oct 03, 2017

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 03, 2017 0
New Here ,
Oct 05, 2017

Copy link to clipboard

Copied

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2017 0
try67 LATEST
Most Valuable Participant ,
Oct 05, 2017

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2017 0