Copy link to clipboard
Copied
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 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
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now