Skip to main content
Inspiring
July 30, 2020
Answered

JS: place option to allow image to be placed as TOP LEFT within the Frame instead of CENTER

  • July 30, 2020
  • 1 reply
  • 416 views

Hi...there,

I realized that when placing images/pdfs into a rectangle or frame, the default fit is CENTER in InDesign 2020 even thought the content-aware option was not enabled.

How to place the content to fit in to top left of the frame by default, without changes to frame dimension and actual image size using JS.

 

Thanks much

This topic has been closed for replies.
Correct answer SychevKA

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

1 reply

SychevKA
SychevKACorrect answer
Inspiring
July 30, 2020

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

Inspiring
July 30, 2020

Thanks for helping!!

just one thing to point out should add BEFORE placing..

cheers  🙂