Skip to main content
MadMich
Inspiring
February 20, 2017
Answered

Rotate text field?

  • February 20, 2017
  • 2 replies
  • 3739 views

I have a row of text fields that need to be rotated based on another field value.

From this:

To this:

I've read through the forum and the only option I can see is to resize each text box? But that would be a lot of coordinates to script!
Cheers in advance

(P.S. Each text field has a custom calculation script and are individually hidden/shown based on another fields value, so they need to be text fields as far as I can see as opposed to image/button fields!)

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

This is almost perfect timing... I've had a blog post in the works about rotating form fields for a while, and I took your question as the prompt to publish it. Take a look here for a JavaScript solution to rotate PDF form fields: Rotate PDF Fields in Adobe Acrobat Using JavaScript - KHKonsulting LLC

2 replies

Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
February 20, 2017

This is almost perfect timing... I've had a blog post in the works about rotating form fields for a while, and I took your question as the prompt to publish it. Take a look here for a JavaScript solution to rotate PDF form fields: Rotate PDF Fields in Adobe Acrobat Using JavaScript - KHKonsulting LLC

MadMich
MadMichAuthor
Inspiring
February 21, 2017

Thanks Heinz, I checked your script and it works fine.
Your blog also suggest that I can do an array of fields so I will work on that.

Kind regards

try67
Community Expert
Community Expert
February 20, 2017

Yes, you will need to calculate the new rect value for your fields, and also set their rotate property (but that only affects the direction of the text in the field, so you can't do only that).