• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Participant ,
Jul 29, 2020 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

TOPICS
Scripting

Views

232

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
community guidelines

correct answers 1 Correct answer

Participant , Jul 30, 2020 Jul 30, 2020

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

Votes

Translate

Translate
Participant ,
Jul 30, 2020 Jul 30, 2020

Copy link to clipboard

Copied

hi, add this line after placing :

 

myrectangle.frameFittingOptions.fittingAlignment = 1095660652

 

 

Votes

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
community guidelines
Participant ,
Jul 30, 2020 Jul 30, 2020

Copy link to clipboard

Copied

LATEST

Thanks for helping!!

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

cheers  🙂

Votes

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
community guidelines