画像フレームのフィットオプション

画像をフレームピッタリに配置したり、逆に画像に合せてフレームを大きくしたり小さくしたり。

[JavaScript]

var frame = app.activeDocument.selection[0];
frame.place(File("/c/sample.jpg"));
frame.fit(FitOptions.CONTENT_TO_FRAME);

[VBScript]

Set app = CreateObject("InDesign.Application")
Const idContentToFrame = 1668575078
Set frame = app.activeDocument.selection(1)
frame.place("C:/sample.jpg")
frame.fit(idContentToFrame)

※オプション【説明は難しいので省略(滝汗】
FitOptions.CENTER_CONTENT
FitOptions.CONTENT_TO_FRAME
FitOptions.FILL_PROPORTIONALLY
FitOptions.FRAME_TO_CONTENT
FitOptions.PROPORTIONALLY