0
Community Beginner
,
/t5/indesign-discussions/resize-pdf-to-fit-the-textframe/td-p/15222747
Mar 20, 2025
Mar 20, 2025
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
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);
Community Beginner
,
/t5/indesign-discussions/resize-pdf-to-fit-the-textframe/m-p/15222755#M617065
Mar 20, 2025
Mar 20, 2025
Copy link to clipboard
Copied
I solved using
textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/indesign-discussions/resize-pdf-to-fit-the-textframe/m-p/15223041#M617092
Mar 20, 2025
Mar 20, 2025
Copy link to clipboard
Copied
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#FitOptions.html
Fill Proportionally might be better?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

