FitOptions (Enum)

Options for fitting content to a frame.

Name Description Value
CONTENT_TO_FRAME Resizes content to fit the frame. Note: Content that is a different size than the frame appears stretched or squeezed. 1668575078 =
‘ctof’
CENTER_CONTENT 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. 1667591779 =
‘cenc’
PROPORTIONALLY 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. 1668247152 =
‘conp’
FRAME_TO_CONTENT Resizes the frame so it fits the content. 1718906723 =
‘ftoc’
FILL_PROPORTIONALLY 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. 1718185072 =
‘filp’

Usage:

  • In function:
    • void Button.fit (
      given:
      FitOptions
      )
    • void EPS.fit (
      given:
      FitOptions
      )
    • void FormField.fit (
      given:
      FitOptions
      )
    • void Graphic.fit (
      given:
      FitOptions
      )
    • void GraphicLine.fit (
      given:
      FitOptions
      )
    • void Group.fit (
      given:
      FitOptions
      )
    • void Image.fit (
      given:
      FitOptions
      )
    • void ImportedPage.fit (
      given:
      FitOptions
      )
    • void Movie.fit (
      given:
      FitOptions
      )
    • void Oval.fit (
      given:
      FitOptions
      )
    • void PageItem.fit (
      given:
      FitOptions
      )
    • void PDF.fit (
      given:
      FitOptions
      )
    • void PICT.fit (
      given:
      FitOptions
      )
    • void Polygon.fit (
      given:
      FitOptions
      )
    • void Rectangle.fit (
      given:
      FitOptions
      )
    • void Sound.fit (
      given:
      FitOptions
      )
    • void TextFrame.fit (
      given:
      FitOptions
      )
    • void WMF.fit (
      given:
      FitOptions
      )

Leave a Comment

Previous post:

Next post: