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

Resize PDF to fit the textFrame

Community Beginner ,
Mar 20, 2025 Mar 20, 2025

Hello, i insert a PDF but i'm not able to resize it to fit a certain dimension.

 

My code is:

var pdf = textFrame.place(myPDFPath);
textFrame.fit(FitOptions.CENTER_CONTENT);

 

That center the pdf in the page but I can't resize it.

I tried pdf.resize but without success

I'm using Indesign CS5.5 

TOPICS
Scripting
75
Translate
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

Community Beginner , Mar 20, 2025 Mar 20, 2025

I solved using 

textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Translate
Community Beginner ,
Mar 20, 2025 Mar 20, 2025

I solved using 

textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Translate
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
Community Expert ,
Mar 20, 2025 Mar 20, 2025
LATEST
Translate
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