Skip to main content
robertd44013449
Participant
March 26, 2025
Question

A button to rotate image fields in a PDF

  • March 26, 2025
  • 2 replies
  • 315 views

How do I create a button to rotate an image field in 90 degree increments in a PDF while in Reader? Sometimes after clicking to add an image, the images show up rotated incorrectly. I'd like the user to be able to rotate the image field when that happens.

Does anyone know Java Script I could add or another way to add the feature?

Thanks!

2 replies

try67
Community Expert
Community Expert
March 27, 2025

You can use JS to set the rotation property of a field to either 0, 90, 180 or 270, like this:

this.getField("FieldName").rotation = 90;

 

If you're interested, I've developed a (paid-for) tool that embeds a "toolkit" into the image fields in your file that allow the user to modify them very easily (including rotation) with a couple of clicks, even in Reader. You can find it here:

http://try67.blogspot.com/2017/04/acrobat-apply-image-fields-toolkit.html

 

kglad
Community Expert
Community Expert
March 27, 2025

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">