Skip to main content
Inspiring
March 20, 2025
Answered

Resize PDF to fit the textFrame

  • March 20, 2025
  • 1 reply
  • 197 views

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 

Correct answer giovanni_4827

I solved using 

textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);

1 reply

giovanni_4827AuthorCorrect answer
Inspiring
March 20, 2025

I solved using 

textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Robert at ID-Tasker
Legend
March 20, 2025