InDesign Server2025
API 20.5.0.49
Enumeration

FitOptions

Options for fitting content to a frame.

Values

NameType AccessDescription
Number = 1634100847 readonly Applies the current frame fitting options to the frame and content. Before using this, do confirm that the expected Frame Fitting Options are applied on the frame. For example, the act of placing an image in a frame set to 'Fit Content Proportionally' can change the crop settings in the Frame Fitting Options, which would then get applied for any subsequent image placement when this API is called.
Number = 1667591779 readonly Centers content in the frame; preserves the frame size as well as content size and proportions. Note: If the content is larger than the frame, content around the edges is obscured.
Number = 1667327593 readonly Selects best crop region of the content for the frame based on Adobe Sensei. Note: Preserves frame size but might scale the content size.
Number = 1668575078 readonly Resizes content to fit the frame. Note: Content that is a different size than the frame appears stretched or squeezed.
Number = 1718185072 readonly Resizes content to fill the frame while perserving the proportions of the content. If the content and frame have different proportions, some of the content is obscured by the bounding box of the frame.
Number = 1718906723 readonly Resizes the frame so it fits the content.
Number = 1668247152 readonly Resizes content to fit the frame while preserving content proportions. If the content and frame have different proportions, some empty space appears in the frame.

Parameter of 31

Method parameters that accept an FitOptions value.