### ----------------------------------------------------
### -- PDF::ISO_32000
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: resources/ISO_32000/Table_247-Entries_in_an_icon_fit_dictionary.json
### ----------------------------------------------------
{
  "table": {
    "caption": "Table 247 – Entries in an icon fit dictionary",
    "head": [
      "Key",
      "Type",
      "Value"
    ],
    "rows": [
      [
        "SW",
        "name",
        "(Optional) The circumstances under which the icon is scaled inside the annotation rectangle:\nA Always scale.\nB Scale only when the icon is bigger than the annotation rectangle.\nS Scale only when the icon is smaller than the annotation rectangle.\nN Never scale.\nDefault value: A."
      ],
      [
        "S",
        "name",
        "(Optional) The type of scaling that is used:\nA Anamorphic scaling: Scale the icon to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height).\nP Proportional scaling: Scale the icon to fit the width or height of the annotation rectangle while maintaining the icon’s original aspect ratio. If the required horizontal and vertical scaling factors are different, use the smaller of the two, centering the icon within the annotation rectangle in the other dimension.\nDefault value: P."
      ],
      [
        "A",
        "array",
        "(Optional) An array of two numbers that is between 0.0 and 1.0 indicating the fraction of leftover space to allocate at the left and bottom of the icon. A value of [ 0.0 0.0 ] positions the icon at the bottom-left corner of the annotation rectangle. A value of [ 0.5 0.5 ] centers it within the rectangle. This entry is used only if the icon is scaled proportionally. Default value: [ 0.5 0.5 ]."
      ],
      [
        "FB",
        "boolean",
        "(Optional; PDF 1.5) If true, indicates that the button appearance is scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border. Default value: false."
      ]
    ]
  }
}


