Skip to main content
axelle0701
Participant
Jan 3, 2019 10:49 AM UTC
Answered

When uploading a picture it keeps turning sideways. How do I keep it standing up?

Everytime colleagues (who didn't make the PDF) want to insert a picture, it changes sideways.

I made a button using JavaScript:

event.target.buttonImportIcon();

They need to use pictures received by email.

What can I change in the settings (or what do I tell my colleagues) to make the pictures stand up straight?

Thank you!

This topic is closed to new replies. Start a new post to keep the conversation going.
axelle0701
axelle0701Correct answer
Participant
Jan 3, 2019 2:05 PM UTC

You'll need to change the button's rotation property. For example:

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


Thanks, this will work already!

Is it possible to rotate this automatically though? If the picture itself changes...

8 replies

Legend
Jan 3, 2019 1:29 PM UTC

I meant remake either the file or the page. You can't fix this by further rotations. However, try67 may have a better solution!

Translate
try67
Community Expert
Community Expert
Jan 3, 2019 11:17 AM UTC

You can either rotate the image before importing it into the field, or afterwards.

Doing it afterwards is more complicated as it requires using a script, or changing the field's properties.

If you want to allow your users to do it more easily you can use this (paid-for) tool I've developed: Custom-made Adobe Scripts: Acrobat -- Apply Image Fields Toolkit

Translate
axelle0701
Participant
Jan 3, 2019 12:42 PM UTC

Hi,

Thank you. As it's already in its right position, rotating it before doesn't seem to help. How can it be done afterwards, using a script?

(Sorry, my company doesn't allow me to buy/install software).

Translate
try67
Community Expert
Community Expert
Jan 3, 2019 1:20 PM UTC

You'll need to change the button's rotation property. For example:

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

Translate
Legend
Jan 3, 2019 11:07 AM UTC

The page was rotated at some time in its creation. You may have to remake it e.g. copy paste to a new unrotated page.

Translate
axelle0701
Participant
Jan 3, 2019 12:42 PM UTC

Meaning I have to remake the entire file? Not just the button?

Thank you.

Translate