You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a veteran ID user here, but still pretty green on scripting. I had taken a JS class once about three years ago, but it's one of those use-it-or-lose-it things, I think. I don't remember much, but I remember enough to read the code and see if it would work for me.
Currently, I'm working on a 250-300 page document. About 1/2 of those pages have an image on it that is oversized for the page. I would like to have a script that will allow me to select the pages that I want to work with (From page to page), scale the image proportionally (either by percentage, dimensions in inches, or by entering one value - height or width and allowing the secondary value to adjust proportionally. Additionally, it is the image itself that I want to resize - the frame needs to adjust proportionally to the graphic.
Lastly, I want to rotate the image 90º counterclockwise and then center vertically and horizontally to the page margins.
I have scoured the internet for a similar code - even one that I could modify to fit my needs but each time I've tried to modify something, I've managed to break it. So, I'll let it to the code gurus, and I'll stick with my page layout skills. 🙂
So, to recap, I need a script that will:
Choose the specific range of pages (From page XX to page XX) that I need to adjust.
Scale the images to a specific percentage or dimension (inches) and/or enter one value and have the secondary value auto-size proportionally. The frame needs to adjust proportionally to the image.
Rotate images 90 counterclockwise.
Center the images vertically and horizontally to page margins.
Can someone help - pretty please? 😄
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am a veteran ID user here, but still pretty green on scripting. I had taken a JS class once about three years ago, but it's one of those use-it-or-lose-it things, I think. I don't remember much, but I remember enough to read the code and see if it would work for me.
Currently, I'm working on a 250-300 page document. About 1/2 of those pages have an image on it that is oversized for the page. I would like to have a script that will allow me to select the pages that I want to work with (From page to page), scale the image proportionally (either by percentage, dimensions in inches, or by entering one value - height or width and allowing the secondary value to adjust proportionally. Additionally, it is the image itself that I want to resize - the frame needs to adjust proportionally to the graphic.
Lastly, I want to rotate the image 90º counterclockwise and then center vertically and horizontally to the page margins.
I have scoured the internet for a similar code - even one that I could modify to fit my needs but each time I've tried to modify something, I've managed to break it. So, I'll let it to the code gurus, and I'll stick with my page layout skills. 🙂
So, to recap, I need a script that will:
Choose the specific range of pages (From page XX to page XX) that I need to adjust.
Scale the images to a specific percentage or dimension (inches) and/or enter one value and have the secondary value auto-size proportionally. The frame needs to adjust proportionally to the image.
Rotate images 90 counterclockwise.
Center the images vertically and horizontally to page margins.
Can someone help - pretty please? 😄
Here is a link to a script that I've used with success to scale the images but it does not have a rotate and center to margins feature to it: https://drive.google.com/file/d/1wGE7IBHtGlYh_N0PqgtOcTE56Qf92pfk/view?usp=sharing
Beta Was this translation helpful? Give feedback.
All reactions