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
I solved using
textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Copy link to clipboard
Copied
I solved using
textFrame.fit(FitOptions.CONTENT_TO_FRAME);
textFrame.fit(FitOptions.CENTER_CONTENT);
Copy link to clipboard
Copied
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#FitOptions.html
Fill Proportionally might be better?