Highlighted

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

Participant ,
Jul 29, 2020

Copy link to clipboard

Copied

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

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

TOPICS
Scripting

Views

64

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Participant ,
Jul 29, 2020

Copy link to clipboard

Copied

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

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

TOPICS
Scripting

Views

65

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 29, 2020 0
Participant ,
Jul 30, 2020

Copy link to clipboard

Copied

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0
Participant ,
Jul 30, 2020

Copy link to clipboard

Copied

Thanks for helping!!

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

cheers  🙂

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 30, 2020 0