OPF

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Shape Padding

    Text insets inside the shape's text rectangle (a:bodyPr lIns, tIns, rIns, bIns), in reference pixels at a 720-pixel short edge: one number for every side or { top, right, bottom, left }. Default 9.6 left and right, 4.8 top and bottom, PowerPoint's 0.1 and 0.05 inch.

    Metadata

    Definition
    #/$defs/ShapePadding
    Form
    2 inclusive forms (anyOf)
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    anyOf 1 · number

    The same inset on every side, in reference pixels at a 720-pixel short edge.

    Exact constraints for anyOf 1
    anyOf 1 schema
    {
      "type": "number",
      "minimum": 0,
      "maximum": 200,
      "description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
    }

    anyOf 2 · ref:TableCellPadding

    Referenced TableCellPadding · object

    Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10.

    FieldTypeReq.DefaultDescription
    topnumber——
    rightnumber——
    bottomnumber——
    leftnumber——

    top

    typenumberrequirednodefault—

    right

    typenumberrequirednodefault—

    bottom

    typenumberrequirednodefault—

    left

    typenumberrequirednodefault—

    Exact constraints for Referenced TableCellPadding
    Referenced TableCellPadding schema
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "top": {
          "type": "number",
          "minimum": 0,
          "maximum": 200
        },
        "right": {
          "type": "number",
          "minimum": 0,
          "maximum": 200
        },
        "bottom": {
          "type": "number",
          "minimum": 0,
          "maximum": 200
        },
        "left": {
          "type": "number",
          "minimum": 0,
          "maximum": 200
        }
      },
      "description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
    }
    Exact constraints for anyOf 2
    anyOf 2 schema
    {
      "$ref": "#/$defs/TableCellPadding"
    }
    Complete definition constraints
    Schema constraints
    {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0,
          "maximum": 200,
          "description": "The same inset on every side, in reference pixels at a 720-pixel short edge."
        },
        {
          "$ref": "#/$defs/TableCellPadding"
        }
      ],
      "description": "Text insets inside the shape's text rectangle (a:bodyPr lIns, tIns, rIns, bIns), in reference pixels at a 720-pixel short edge: one number for every side or { top, right, bottom, left }. Default 9.6 left and right, 4.8 top and bottom, PowerPoint's 0.1 and 0.05 inch."
    }