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