{
  "$id": "https://www.booster-technology.com/pdfbooster/pdfbooster.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "ArrowHead": {
      "description": "線の端の矢印の形。",
      "oneOf": [
        {
          "const": "triangle",
          "description": "塗りの三角",
          "type": "string"
        },
        {
          "const": "open",
          "description": "線の矢じり（＞の形）",
          "type": "string"
        },
        {
          "const": "circle",
          "description": "塗りの丸",
          "type": "string"
        }
      ]
    },
    "BackgroundShape": {
      "description": "座布団の形。",
      "oneOf": [
        {
          "const": "rect",
          "description": "四角（radius で角を丸める）",
          "type": "string"
        },
        {
          "const": "circle",
          "description": "円（文字の束の中心に、束を囲む円）",
          "type": "string"
        }
      ]
    },
    "BarcodeFormat": {
      "description": "バーコードの種類。",
      "oneOf": [
        {
          "const": "jan13",
          "description": "JAN（13 桁。EAN-13）",
          "type": "string"
        },
        {
          "const": "jan8",
          "description": "JAN（8 桁。EAN-8）",
          "type": "string"
        },
        {
          "const": "upca",
          "description": "UPC-A（12 桁）",
          "type": "string"
        },
        {
          "const": "upce",
          "description": "UPC-E（8 桁。0 を省いた短い UPC）",
          "type": "string"
        },
        {
          "const": "code128",
          "description": "Code128（ASCII の文字）",
          "type": "string"
        },
        {
          "const": "gs1_128",
          "description": "GS1-128（「(AI)データ」の並び。コンビニ収納用の (91) など）",
          "type": "string"
        },
        {
          "const": "code39",
          "description": "Code39",
          "type": "string"
        },
        {
          "const": "nw7",
          "description": "NW-7（Codabar）",
          "type": "string"
        },
        {
          "const": "itf",
          "description": "ITF（Interleaved 2 of 5）",
          "type": "string"
        },
        {
          "const": "itf14",
          "description": "ITF-14（物流用の 14 桁）",
          "type": "string"
        },
        {
          "const": "qr",
          "description": "QR コード",
          "type": "string"
        },
        {
          "const": "micro_qr",
          "description": "マイクロ QR コード（M1〜M4。小さな部品・ラベル向け）",
          "type": "string"
        },
        {
          "const": "pdf417",
          "description": "PDF417（行を重ねた 2 次元のバーコード）",
          "type": "string"
        },
        {
          "const": "databar",
          "description": "GS1 データバー標準型（GS1 DataBar Omnidirectional。GTIN 14 桁）",
          "type": "string"
        },
        {
          "const": "databar_limited",
          "description": "GS1 データバー限定型（GS1 DataBar Limited。先頭が 0 か 1 の GTIN）",
          "type": "string"
        },
        {
          "const": "datamatrix",
          "description": "DataMatrix（ECC200）",
          "type": "string"
        },
        {
          "const": "gs1_datamatrix",
          "description": "GS1 DataMatrix",
          "type": "string"
        },
        {
          "const": "customer",
          "description": "日本郵便のカスタマバーコード",
          "type": "string"
        }
      ]
    },
    "BoxSpec": {
      "additionalProperties": false,
      "description": "枠。左上の位置（x, y）と幅・高さ。単位は Job の unit。",
      "properties": {
        "height": {
          "format": "double",
          "type": "number"
        },
        "width": {
          "format": "double",
          "type": "number"
        },
        "x": {
          "format": "double",
          "type": "number"
        },
        "y": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "x",
        "y",
        "width",
        "height"
      ],
      "type": "object"
    },
    "Cell": {
      "anyOf": [
        {
          "description": "文字列",
          "type": "string"
        },
        {
          "description": "数（整数なら小数点なしで表示する。桁区切りが要るときは文字列で渡す）",
          "format": "double",
          "type": "number"
        },
        {
          "allOf": [
            {
              "$ref": "#/definitions/CellSpec"
            }
          ],
          "description": "結合や色の指定つき"
        }
      ],
      "description": "表のセル。文字列・数・オブジェクト（結合や色の指定つき）のどれでも書ける。"
    },
    "CellBorder": {
      "anyOf": [
        {
          "description": "四辺とも同じ太さ（pt。0 で四辺とも引かない）",
          "format": "double",
          "type": "number"
        },
        {
          "allOf": [
            {
              "$ref": "#/definitions/CellBorderSides"
            }
          ],
          "description": "辺ごとの太さと色"
        }
      ],
      "description": "セルの辺ごとの罫線。数 1 つなら四辺とも同じ太さ（pt）、オブジェクトなら辺ごと。"
    },
    "CellBorderSides": {
      "additionalProperties": false,
      "description": "セルの辺ごとの罫線の太さ（pt。0 で引かない）と色。書かない辺は表の罫線のまま。",
      "properties": {
        "bottom": {
          "default": null,
          "description": "下の辺",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "線の色（省くと表の line_color）。斜線の色にも使う"
        },
        "left": {
          "default": null,
          "description": "左の辺",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "right": {
          "default": null,
          "description": "右の辺",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "top": {
          "default": null,
          "description": "上の辺",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "CellSpec": {
      "additionalProperties": false,
      "description": "指定つきのセル。",
      "properties": {
        "align": {
          "anyOf": [
            {
              "$ref": "#/definitions/HAlign"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "左右の寄せ（省略時は列の指定）。"
        },
        "border": {
          "anyOf": [
            {
              "$ref": "#/definitions/CellBorder"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの辺ごとの罫線。太さ（pt）を辺ごとに書き（`{\"top\": 1.5, \"bottom\": 1.5}`）、0 でその辺の罫線を引かない。\n数 1 つなら四辺とも。color で色も変えられる（省くと表の line_color）。書かない辺は表の罫線のまま"
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "文字の色（省略時は表の指定）。"
        },
        "colspan": {
          "default": 1,
          "description": "右へ何列分を 1 つにするか（既定は 1）。",
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "diagonal": {
          "anyOf": [
            {
              "$ref": "#/definitions/Diagonal"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの斜線：down（左上から右下へ ＼）・up（左下から右上へ ／）・both（×）。「該当なし」の欄など。\n線の太さは表の line_width、色は border の color（なければ表の line_color）。表の lines が none でも引く"
        },
        "features": {
          "default": null,
          "description": "OpenType 機能（フォントの字形の切り替え）。機能の名前（4 文字）を並べる：`tnum`（等幅の数字）・`jp90` / `jp78`・`nlck`（人名などの字形）・\n`hwid` / `fwid`（半角・全角の字形）・`zero`（斜線つきのゼロ）など。前に `-` で切り（`-kern`）、`=数` で候補の番号（`salt=2`）。\nフォントにない機能は何もせず、警告する。省くと表の指定。",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "fill": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの塗り。"
        },
        "font": {
          "default": null,
          "description": "フォント（省略時は表の指定）。合計の行を太字にするときなどに使う。",
          "type": [
            "string",
            "null"
          ]
        },
        "rowspan": {
          "default": 1,
          "description": "下へ何行分を 1 つにするか（既定は 1）。見出し・明細・最後の行のそれぞれの中で結ぶ。下の行では、結んだ列のセルを書かない。\n結んだ行は、続きのページへ分けずに同じページに置く。",
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "style": {
          "default": null,
          "description": "スタイルの名前（styles に定義したもの）。書いていない項目を、スタイルから受け取る。",
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "default": "",
          "description": "表示する文字列",
          "type": "string"
        },
        "vertical": {
          "default": false,
          "description": "セルの文字を縦書きにする（縦書きの見出しなど）。行の高さは、文字の列がいちばん長い列まで入る高さに伸びる。",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ChartKind": {
      "description": "グラフの種類。",
      "oneOf": [
        {
          "const": "bar",
          "description": "棒グラフ",
          "type": "string"
        },
        {
          "const": "line",
          "description": "折れ線グラフ",
          "type": "string"
        },
        {
          "const": "pie",
          "description": "円グラフ（最初の系列の値を、項目ごとの扇形にする）",
          "type": "string"
        }
      ]
    },
    "ChartSeries": {
      "additionalProperties": false,
      "description": "グラフの系列（凡例の 1 項目）。",
      "properties": {
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "色（省略時は、既定の色の並びから順に）"
        },
        "name": {
          "default": "",
          "description": "系列の名前（凡例に出す）",
          "type": "string"
        },
        "values": {
          "description": "値（categories と同じ数）",
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": "array"
        }
      },
      "required": [
        "values"
      ],
      "type": "object"
    },
    "Cmyk": {
      "description": "CMYK の色 [C, M, Y, K]（それぞれ 0〜100 の %）。墨は [0, 0, 0, 100]",
      "items": {
        "maximum": 100,
        "minimum": 0,
        "type": "number"
      },
      "maxItems": 4,
      "minItems": 4,
      "type": "array"
    },
    "Color": {
      "description": "色。CMYK の配列 [C, M, Y, K]（%）か、特色 {\"spot\": 名前, \"cmyk\": [C, M, Y, K], \"tint\": 濃度}",
      "oneOf": [
        {
          "$ref": "#/definitions/Cmyk"
        },
        {
          "$ref": "#/definitions/SpotColor"
        }
      ]
    },
    "ColorConversion": {
      "additionalProperties": false,
      "description": "RGB の画像を CMYK に変換するときの指定。",
      "properties": {
        "cmyk_profile": {
          "default": null,
          "description": "変換先の CMYK の ICC プロファイル（印刷用）。省略時は pdfx.icc_profile を使う。",
          "type": [
            "string",
            "null"
          ]
        },
        "intent": {
          "allOf": [
            {
              "$ref": "#/definitions/RenderingIntent"
            }
          ],
          "default": "perceptual"
        }
      },
      "type": "object"
    },
    "ColumnSpec": {
      "additionalProperties": false,
      "description": "表の列の指定。",
      "properties": {
        "align": {
          "anyOf": [
            {
              "$ref": "#/definitions/HAlign"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "明細の行の左右の寄せ（既定は left。見出しの行は center）。"
        },
        "width": {
          "default": null,
          "description": "列の幅（単位は Job の unit）。省略した列は、枠の幅の残りを等分する。",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ContinueSpec": {
      "additionalProperties": false,
      "description": "表の続きのページの指定。",
      "properties": {
        "box": {
          "anyOf": [
            {
              "$ref": "#/definitions/BoxSpec"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "続きのページで表を置く枠（幅は最初の box と同じにする）。省略時は最初の box と同じ。"
        },
        "items": {
          "default": [],
          "description": "続きのページに毎回置く要素（「（続き）」の見出しやページ番号など）。表は置けない。",
          "items": {
            "$ref": "#/definitions/Item"
          },
          "type": "array"
        },
        "template_page": {
          "default": null,
          "description": "続きのページの下地にするテンプレートのページ番号（1 から）。省略時は表のあるページと同じ。",
          "format": "uint32",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "Diagonal": {
      "description": "セルの斜線の向き。",
      "oneOf": [
        {
          "const": "down",
          "description": "左上から右下へ（＼）",
          "type": "string"
        },
        {
          "const": "up",
          "description": "左下から右上へ（／）",
          "type": "string"
        },
        {
          "const": "both",
          "description": "両方（×）",
          "type": "string"
        }
      ]
    },
    "Direction": {
      "description": "文字の向き（横書き・縦書き）。",
      "oneOf": [
        {
          "const": "horizontal",
          "description": "横書き",
          "type": "string"
        },
        {
          "const": "vertical",
          "description": "縦書き",
          "type": "string"
        }
      ]
    },
    "DropCap": {
      "additionalProperties": false,
      "description": "ドロップキャップ：段落（流し込みのブロックは、その最初の段落）の最初の字を大きくし、数行分に落とし込む（横書きで折り返す文字だけ）。\n大きくした字は、em の箱の上端を 1 行目の em の箱の上端に、下端を lines 行目の em の箱の下端にそろえ、最初の lines 行は、\nその字の幅と gap だけ行頭を空けて組む。",
      "properties": {
        "chars": {
          "default": 1,
          "description": "大きくする字の数（1〜4。既定 1）",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "大きくした字の色（CMYK の % か特色。省略時は文字の色）"
        },
        "gap": {
          "default": null,
          "description": "大きくした字と、右の文字の間（pt。0〜50。省略時は文字の大きさの 1/4）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "lines": {
          "default": 3,
          "description": "落とし込む行の数（2〜6。既定 3）",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "EmphasisMark": {
      "description": "圏点（強調の点）の形。",
      "oneOf": [
        {
          "const": "sesame",
          "description": "黒ゴマ（﹅）",
          "type": "string"
        },
        {
          "const": "white_sesame",
          "description": "白ゴマ（﹆）",
          "type": "string"
        },
        {
          "const": "dot",
          "description": "黒丸（●）",
          "type": "string"
        },
        {
          "const": "circle",
          "description": "白丸（○）",
          "type": "string"
        }
      ]
    },
    "EveryPage": {
      "additionalProperties": false,
      "description": "全ページに置く要素。",
      "properties": {
        "even_items": {
          "default": [],
          "description": "偶数ページ（2・4・6… ページ目。見開きの左のページ）だけに置く要素。items の後ろに描く",
          "items": {
            "$ref": "#/definitions/Item"
          },
          "type": "array"
        },
        "except": {
          "default": [],
          "description": "置かないページ（できあがった PDF の何ページ目か。1 から。表紙など）。items・odd_items・even_items のどれも置かない",
          "items": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "type": "array"
        },
        "items": {
          "default": [],
          "description": "置く要素（文字・画像・線・図形・バーコード・リンク・透かし。文字の {page}・{pages} はページごとに置き換える）",
          "items": {
            "$ref": "#/definitions/Item"
          },
          "type": "array"
        },
        "odd_items": {
          "default": [],
          "description": "奇数ページ（できあがった PDF の 1・3・5… ページ目。見開きの右のページ）だけに置く要素。items の後ろに描く",
          "items": {
            "$ref": "#/definitions/Item"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "FieldFont": {
      "description": "入力欄に書き込む文字の字体。",
      "oneOf": [
        {
          "const": "gothic",
          "description": "ゴシック体",
          "type": "string"
        },
        {
          "const": "mincho",
          "description": "明朝体",
          "type": "string"
        }
      ]
    },
    "Fit": {
      "description": "行（縦書きは列）が枠に入らないときの扱い。",
      "oneOf": [
        {
          "const": "none",
          "description": "何もしない（はみ出したら警告）。",
          "type": "string"
        },
        {
          "const": "shrink",
          "description": "行（縦書きは列）が枠に入らないとき、送り方向に縮めて収める。",
          "type": "string"
        },
        {
          "const": "size",
          "description": "枠に入らないとき、文字の大きさを（縦横とも）小さくして、行（列）の長さと行数（列数）の両方を収める。\n行送り・字間も同じ割合で小さくなる。`min_size` より小さくはしない。",
          "type": "string"
        }
      ]
    },
    "FlowBlock": {
      "additionalProperties": false,
      "description": "流し込みのブロック（段落・見出しなど、ひとまとまりの文字）。流し込みの向き（横書き・縦書き）で組み、段の幅（縦書きは高さ）で折り返す。",
      "properties": {
        "align": {
          "anyOf": [
            {
              "$ref": "#/definitions/HAlign"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "左右の寄せ（既定は left）。"
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "文字の色（省略時は流し込みの color）。"
        },
        "drop_cap": {
          "anyOf": [
            {
              "$ref": "#/definitions/DropCap"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "ドロップキャップ：ブロックの最初の字を大きくし、数行分に落とし込む（[`DropCap`]）。"
        },
        "features": {
          "default": null,
          "description": "OpenType 機能（フォントの字形の切り替え）。機能の名前（4 文字）を並べる：`tnum`（等幅の数字）・`jp90` / `jp78`・`nlck`（人名などの字形）・\n`hwid` / `fwid`（半角・全角の字形）・`zero`（斜線つきのゼロ）など。前に `-` で切り（`-kern`）、`=数` で候補の番号（`salt=2`）。\nフォントにない機能は何もせず、警告する。省くと流し込みの指定。",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "font": {
          "default": null,
          "description": "フォント（省略時は流し込みの font）。",
          "type": [
            "string",
            "null"
          ]
        },
        "hanging": {
          "default": false,
          "description": "句読点のぶら下げ。",
          "type": "boolean"
        },
        "indent": {
          "default": 0.0,
          "description": "段落の 1 行目の字下げ（文字数）。",
          "format": "double",
          "type": "number"
        },
        "justify": {
          "default": false,
          "description": "両端揃え。",
          "type": "boolean"
        },
        "keep_together": {
          "default": false,
          "description": "ブロックを途中で分けない（入りきらなければ、まとめて次のページへ送る）。",
          "type": "boolean"
        },
        "keep_with_next": {
          "default": false,
          "description": "次のブロックの 1 行目と同じページに置く（見出しだけがページの最後に残らないように）。",
          "type": "boolean"
        },
        "kinsoku": {
          "default": true,
          "description": "禁則処理。",
          "type": "boolean"
        },
        "latin_spacing": {
          "default": 25.0,
          "description": "和文と欧文の間の空き（文字の大きさに対する %）。",
          "format": "double",
          "type": "number"
        },
        "line_spacing": {
          "default": null,
          "description": "行送り（文字の大きさに対する %。省略時は流し込みの line_spacing）。",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "line_start_bracket": {
          "allOf": [
            {
              "$ref": "#/definitions/LineStartBracket"
            }
          ],
          "default": "full",
          "description": "行頭に来た始め括弧の扱い。"
        },
        "overprint": {
          "default": null,
          "description": "墨ノセ。",
          "type": [
            "boolean",
            "null"
          ]
        },
        "proportional": {
          "default": false,
          "description": "プロポーショナル詰め。",
          "type": "boolean"
        },
        "ruby": {
          "default": false,
          "description": "ルビを付ける（「｜親文字《るび》」の書き方を読む）。",
          "type": "boolean"
        },
        "ruby_size": {
          "default": null,
          "description": "ルビの大きさ（親文字に対する %）。",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "size": {
          "default": null,
          "description": "文字の大きさ（pt。省略時は流し込みの size）。",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "space_after": {
          "default": 0.0,
          "description": "ブロックの後ろの空き（unit）。",
          "format": "double",
          "type": "number"
        },
        "space_before": {
          "default": 0.0,
          "description": "ブロックの前の空き（unit。ページの先頭に来たときは空けない）。",
          "format": "double",
          "type": "number"
        },
        "squeeze_punctuation": {
          "default": true,
          "description": "約物の空きを詰める。",
          "type": "boolean"
        },
        "style": {
          "default": null,
          "description": "スタイルの名前（styles に定義したもの）。書いていない項目を、スタイルから受け取る。",
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "description": "文字列。改行（\\n）で段落を分ける。",
          "type": "string"
        },
        "tracking": {
          "default": 0.0,
          "description": "字間（文字の大きさに対する %）。",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    },
    "FlowFrame": {
      "additionalProperties": false,
      "description": "流し込みのつないだ枠（frames の 1 つ）。",
      "properties": {
        "box": {
          "allOf": [
            {
              "$ref": "#/definitions/BoxSpec"
            }
          ],
          "description": "枠（unit。幅は最初の枠と違ってよい。行は、置いた枠（段）の幅で折り返す）"
        },
        "columns": {
          "default": null,
          "description": "この枠の段の数（省くと流し込みの columns）",
          "format": "uint",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "page": {
          "default": null,
          "description": "枠を置くページ（ジョブの pages の何番目か。1 から）。省くと流し込みと同じページ。流し込みのページより前にはできず、\n並びの順に同じか後ろのページにする",
          "format": "uint",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "box"
      ],
      "type": "object"
    },
    "FontSpec": {
      "additionalProperties": false,
      "description": "使うフォントの指定。",
      "properties": {
        "fallback": {
          "default": [],
          "description": "代わりのフォント（fonts で付けた名前の並び）。このフォントにない文字（外字・人名の難しい漢字など）を、\n並びの先頭から順に、字形のあるフォントで出す。代わりのフォントに書いた fallback はたどらない。",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "file": {
          "type": "string"
        },
        "index": {
          "default": 0,
          "description": "フォントコレクション（.ttc / .otc）の何番目か。",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "file"
      ],
      "type": "object"
    },
    "FormValue": {
      "anyOf": [
        {
          "description": "チェックボックスの印（true で印を付ける）",
          "type": "boolean"
        },
        {
          "description": "数（文字にして差し込む）",
          "format": "double",
          "type": "number"
        },
        {
          "description": "文字（文字の入力欄・選択欄の値、ラジオボタンで選ぶ値、チェックボックスの状態の名前）",
          "type": "string"
        }
      ],
      "description": "テンプレートのフォームの入力欄に差し込む値。文字の入力欄・選択欄は文字（数も可）、\nチェックボックスは true / false（または状態の名前）、ラジオボタンは選ぶボタンの値。"
    },
    "GradientKind": {
      "description": "グラデーションの種類。",
      "oneOf": [
        {
          "const": "linear",
          "description": "線形（向きは angle）",
          "type": "string"
        },
        {
          "const": "radial",
          "description": "円形（広がりの中心から外へ。最初の色が中心、最後の色が外側。angle は使わない）",
          "type": "string"
        }
      ]
    },
    "HAlign": {
      "description": "左右の寄せ。",
      "oneOf": [
        {
          "const": "left",
          "description": "左寄せ",
          "type": "string"
        },
        {
          "const": "center",
          "description": "中央",
          "type": "string"
        },
        {
          "const": "right",
          "description": "右寄せ",
          "type": "string"
        },
        {
          "const": "distribute",
          "description": "均等割付（文字と表のセルだけ）。横書きのどの行も、字と字の間を均等に広げて枠の幅いっぱいにする\n（段落の最後の行・1 行だけの文字も。広げられない 1 文字だけの行は中央）。縦書きは valign で指定する",
          "type": "string"
        }
      ]
    },
    "ImageClip": {
      "description": "画像を切り抜く形。",
      "oneOf": [
        {
          "const": "ellipse",
          "description": "見えている画像の範囲に内接する楕円（正方形なら円）",
          "type": "string"
        }
      ]
    },
    "ImageFit": {
      "description": "画像の枠への合わせ方。",
      "oneOf": [
        {
          "const": "contain",
          "description": "縦横比を保って、枠に収まる大きさにする（余白ができることがある）。",
          "type": "string"
        },
        {
          "const": "cover",
          "description": "縦横比を保って、枠いっぱいを覆う大きさにし、はみ出す部分を切り抜く（顔写真・写真報告書など）。",
          "type": "string"
        }
      ]
    },
    "Item": {
      "description": "ページに置く要素。JSON の \"type\" の値で種類を分ける。\n文字の要素は項目が多く、ほかの種類より大きい。要素の数は 1 つのジョブで多くても数千なので、箱に入れずにそのまま持つ",
      "oneOf": [
        {
          "additionalProperties": false,
          "anyOf": [
            {
              "required": [
                "font",
                "size"
              ]
            },
            {
              "required": [
                "style"
              ]
            }
          ],
          "description": "文字の要素。横書き・縦書き、寄せ、字間、長体・平体、折り返し、文字組みの指定を持つ。",
          "properties": {
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "左右の寄せ。既定は横書き=left、縦書き=right。"
            },
            "arc": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextArc"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "アーチ文字（字の形ごと弧に沿って曲げる。横書きだけ）。`{\"radius\": 120}`（ジョブの単位。正で山なり、負で谷なり。[`TextArc`]）。"
            },
            "background": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextBackground"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "座布団：文字の後ろに、文字の束の大きさに合わせた四角（角丸）や円を敷く（[`TextBackground`]）。"
            },
            "box": {
              "$ref": "#/definitions/BoxSpec"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ]
            },
            "direction": {
              "allOf": [
                {
                  "$ref": "#/definitions/Direction"
                }
              ],
              "default": "horizontal"
            },
            "drop_cap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/DropCap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "ドロップキャップ：最初の段落の最初の字を大きくし、数行分に落とし込む（横書きで wrap のときだけ。[`DropCap`]）。"
            },
            "emphasis_mark": {
              "allOf": [
                {
                  "$ref": "#/definitions/EmphasisMark"
                }
              ],
              "default": "sesame",
              "description": "圏点の形。ruby が true のとき、「《《強調》》」のように《《》》で囲んだ文字の横（縦書きは右）に点を付ける。"
            },
            "features": {
              "default": [],
              "description": "OpenType 機能（フォントの字形の切り替え）。機能の名前（4 文字）を並べる：`tnum`（等幅の数字）・`jp90` / `jp78`・`nlck`（人名などの字形）・\n`hwid` / `fwid`（半角・全角の字形）・`zero`（斜線つきのゼロ）など。前に `-` で切り（`-kern`）、`=数` で候補の番号（`salt=2`）。\nフォントにない機能は何もせず、警告する。",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "fit": {
              "allOf": [
                {
                  "$ref": "#/definitions/Fit"
                }
              ],
              "default": "none"
            },
            "font": {
              "type": "string"
            },
            "gradient": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextGradient"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "グラデーション：字の塗りを CMYK のグラデーションにする（[`TextGradient`]）。文字の色（color）の代わりに使う。"
            },
            "hanging": {
              "default": false,
              "description": "折り返すときに句読点（、。，．）を行末の外へぶら下げる。",
              "type": "boolean"
            },
            "hollow": {
              "default": null,
              "description": "中抜き文字：字の中を塗らず、輪郭をこの太さ（pt。0 より大きく 10 以下）の線で描く。線の色は文字の色。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "indent": {
              "default": 0.0,
              "description": "段落の 1 行目（縦書きは 1 列目）の字下げ（文字数。em）。",
              "format": "double",
              "type": "number"
            },
            "justify": {
              "default": false,
              "description": "両端揃え（`wrap` のときだけ）。段落の最後の行のほかは、行（列）の長さを枠に合わせる。\n字間を均等に広げ、禁則で字を追い出す前に、約物の空き・和欧間を詰めて追い込めるならそうする。",
              "type": "boolean"
            },
            "kinsoku": {
              "default": true,
              "description": "折り返すときに禁則処理（行頭・行末に来てはいけない文字の追い出し）をする。",
              "type": "boolean"
            },
            "latin_spacing": {
              "default": 25.0,
              "description": "和文と欧文（半角の英数字）の間の空き（文字の大きさに対する %）。0 で入れない。",
              "format": "double",
              "type": "number"
            },
            "line_spacing": {
              "default": 150.0,
              "description": "行送り（縦書きは列送り）。文字の大きさに対する %。",
              "format": "double",
              "type": "number"
            },
            "line_start_bracket": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineStartBracket"
                }
              ],
              "default": "full",
              "description": "行頭に来た始め括弧の扱い（全角のまま / 二分）。"
            },
            "min_size": {
              "default": null,
              "description": "`fit` が `size` のとき、小さくしてよい文字の大きさの下限（pt）。既定は 6pt（`size` がそれより小さければ `size`）。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "outline": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Outline"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "袋文字（字のまわりを縁取る）。`{\"color\": [0, 0, 0, 0], \"width\": 1.5}`、二重・三重なら並べる（[`Outline`]）。"
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "proportional": {
              "default": false,
              "description": "フォントのプロポーショナル詰め（横書きは palt、縦書きは vpal）を使う。",
              "type": "boolean"
            },
            "rotate": {
              "default": null,
              "description": "回転（度。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "ruby": {
              "default": false,
              "description": "ルビを付ける。文字の中の「｜親文字《るび》」「漢字《るび》」の書き方（青空文庫と同じ）を読む。",
              "type": "boolean"
            },
            "ruby_size": {
              "default": null,
              "description": "ルビの大きさ（親文字に対する %）。既定は 50。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "runs": {
              "default": [],
              "description": "文字の中の書式の切り替え：文字列を一続きごとに分けて、大きさ（%）・色・ベースラインのずれ・上付き／下付きを変える\n（横書きだけ。ルビとは一緒に使えない。[`TextRun`]）。text の代わりに書く",
              "items": {
                "$ref": "#/definitions/TextRun"
              },
              "type": "array"
            },
            "scale_x": {
              "default": 100.0,
              "description": "文字の横幅（%）。横書きでは送りも縮む（長体）。",
              "format": "double",
              "type": "number"
            },
            "scale_y": {
              "default": 100.0,
              "description": "文字の高さ（%）。縦書きでは送りも縮む（平体）。",
              "format": "double",
              "type": "number"
            },
            "size": {
              "description": "文字の大きさ（pt）。",
              "format": "double",
              "type": "number"
            },
            "skew": {
              "default": 0.0,
              "description": "斜体（度。-45〜45、正なら字の上が右へ傾く）。和文フォントにはない斜体を、字の形を傾けて作る（横書きだけ）。",
              "format": "double",
              "type": "number"
            },
            "squeeze_punctuation": {
              "default": true,
              "description": "約物（括弧・句読点・中点）が続くときの空きを詰め、行末の約物の後ろの空きを幅に数えない。",
              "type": "boolean"
            },
            "strike": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineDecoration"
                }
              ],
              "default": false,
              "description": "取り消し線（字の真ん中を通る線）。`true` で文字の色の実線。色・太さ・位置・種類はオブジェクトで（[`LineDecoration`]）。"
            },
            "style": {
              "default": null,
              "description": "スタイルの名前（styles に定義したもの）。書いていない項目を、スタイルから受け取る。",
              "type": [
                "string",
                "null"
              ]
            },
            "tag": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextTag"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "タグ付き PDF での役割（p 段落・h1〜h6 見出し・artifact 読まない飾り）。省略時は段落（全ページに置く要素は飾り）。"
            },
            "tcy_digits": {
              "default": 2,
              "description": "縦書きで、この桁数までの半角数字（と !?）を縦中横にする（0〜4。0 でしない）。3 桁以上は、全角 1 字分の幅に縮める。\n前後の半角の空白は縦中横に含めない。",
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "tcy_letters": {
              "default": false,
              "description": "縦書きで、tcy_digits の文字数までの半角の英字（と英数字の混じったもの。A4・OK など）も縦中横にする。",
              "type": "boolean"
            },
            "text": {
              "default": "",
              "description": "文字列。runs を書くときは省く（runs の文字列をつないだものになる）",
              "type": "string"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "tracking": {
              "default": 0.0,
              "description": "字間（文字の大きさに対する %）。負の値で詰める。",
              "format": "double",
              "type": "number"
            },
            "type": {
              "const": "text",
              "type": "string"
            },
            "underline": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineDecoration"
                }
              ],
              "default": false,
              "description": "下線（横書きは字の下、縦書きは列の右側の傍線）。`true` で文字の色の実線。色・太さ・位置・種類はオブジェクトで（[`LineDecoration`]）。"
            },
            "valign": {
              "anyOf": [
                {
                  "$ref": "#/definitions/VAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "上下の寄せ。既定は top。"
            },
            "vertical_latin": {
              "allOf": [
                {
                  "$ref": "#/definitions/VerticalLatin"
                }
              ],
              "default": "rotate",
              "description": "縦書きの中の半角英数字の扱い（縦中横にならないもの）。"
            },
            "warp": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWarp"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "ワープ：字の形ごと、旗のように揺らす・真ん中を膨らませる（横書きだけ。[`TextWarp`]）。"
            },
            "wrap": {
              "default": false,
              "description": "枠の幅（縦書きは高さ）で自動的に折り返す。",
              "type": "boolean"
            }
          },
          "required": [
            "type",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "画像の要素（JPEG・PNG・SVG）。縦横比を保って枠に収める。",
          "properties": {
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "枠内での左右の寄せ（既定は left。fit が cover のときは center）。"
            },
            "alt": {
              "default": null,
              "description": "代わりの文字（タグ付き PDF で読み上げる説明）。省くと、読まない飾りにする。",
              "type": [
                "string",
                "null"
              ]
            },
            "box": {
              "$ref": "#/definitions/BoxSpec"
            },
            "clip": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ImageClip"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "切り抜く形：ellipse で、見えている画像の範囲（fit が cover なら枠、contain なら画像を置いた範囲）に内接する楕円\n（正方形なら円）で切り抜く。顔写真を丸くするときなど"
            },
            "file": {
              "description": "画像のファイル（JPEG・PNG・SVG。SVG は拡張子 .svg・.svgz で見分け、形のまま（拡大しても粗くならずに）置く）",
              "type": "string"
            },
            "fit": {
              "allOf": [
                {
                  "$ref": "#/definitions/ImageFit"
                }
              ],
              "default": "contain",
              "description": "枠への合わせ方：contain（既定。枠に収める）か cover（枠いっぱいを覆い、はみ出す部分を切り抜く）。"
            },
            "font": {
              "default": null,
              "description": "SVG の文字に使うフォント（fonts のキー）。SVG で指定したフォントが fonts にないときに使う。\n省くと fonts の最初のもの。SVG の文字は形（アウトライン）にして描く",
              "type": [
                "string",
                "null"
              ]
            },
            "gray_to_k": {
              "default": false,
              "description": "灰色（R・G・B がほぼ同じ）の画素を墨 1 色にする（RGB の画像だけ。バーコード・ロゴ・文字の画像向け）。\nすべての画素が灰色ならグレーの画像として入れる。色のある画素もあるときは `color_conversion` が要る",
              "type": "boolean"
            },
            "radius": {
              "default": null,
              "description": "見えている画像の範囲の角を、この半径（unit）で丸く切り抜く。clip と一緒には使えない",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "type": {
              "const": "image",
              "type": "string"
            },
            "valign": {
              "anyOf": [
                {
                  "$ref": "#/definitions/VAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "枠内での上下の寄せ（既定は top。fit が cover のときは middle）。"
            }
          },
          "required": [
            "type",
            "file",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "透かしの要素。文字列をページの対角線などに沿って斜めに、半透明で入れる。",
          "properties": {
            "angle": {
              "default": null,
              "description": "角度（度、反時計回り）。省略時はページの対角線（左下→右上）。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                60.0
              ]
            },
            "font": {
              "type": "string"
            },
            "opacity": {
              "default": 30.0,
              "description": "不透明度（%）。",
              "format": "double",
              "type": "number"
            },
            "size": {
              "default": null,
              "description": "文字の大きさ（pt）。省略時は、文字列の長さが、ページの中心を通る角度の向きの線（角度を省けば対角線）の 75% になる大きさ（上限はページの短い辺の 40%）。ページからはみ出さない。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "text": {
              "type": "string"
            },
            "tracking": {
              "default": 0.0,
              "format": "double",
              "type": "number"
            },
            "type": {
              "const": "watermark",
              "type": "string"
            }
          },
          "required": [
            "type",
            "text",
            "font"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "直線（from → to）",
          "properties": {
            "arrow_end": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の終点の矢印（arrow_start と同じ）"
            },
            "arrow_size": {
              "default": null,
              "description": "矢印の大きさ（%。10〜500。既定 100 で、長さは 3pt ＋ 線の太さの 4 倍）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "arrow_start": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の始点の矢印（line と、閉じない polygon（折れ線）だけ）：triangle（塗りの三角）・open（線の矢じり）・circle（塗りの丸）"
            },
            "box": {
              "anyOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "rect / ellipse の枠"
            },
            "cap": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineCap"
                }
              ],
              "default": "butt"
            },
            "closed": {
              "default": null,
              "description": "polygon を閉じるか（既定 true。false で折れ線）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "dash": {
              "default": null,
              "description": "破線の長さの並び（pt）。例 [4, 2]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りの色（CMYK %）。既定は塗りなし"
            },
            "from": {
              "default": null,
              "description": "line の始点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "gradient": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextGradient"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りのグラデーション（rect・ellipse・閉じた polygon。fill の代わりに使う。[`TextGradient`]）。\n形を囲む四角いっぱいに、線形（kind: linear。向きは angle）か円形（kind: radial。中心から外へ）で塗る"
            },
            "join": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineJoin"
                }
              ],
              "default": "miter"
            },
            "opacity": {
              "default": null,
              "description": "不透明度（%）。省略時は不透明",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "points": {
              "default": null,
              "description": "polygon の頂点 [[x, y], ...]",
              "items": {
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "radius": {
              "default": null,
              "description": "rect の角の丸みの半径（unit）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。四角・楕円だけ。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "stroke": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "線の色（CMYK %）。null で線なし。既定は墨 100%"
            },
            "stroke_style": {
              "anyOf": [
                {
                  "$ref": "#/definitions/LineStyle"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の種類（下線と同じ寸法）：solid（実線。既定）・double（stroke_width の線 2 本。間は線 1 本分）・dashed（太さの 3 倍の線と\n2 倍の空き）・dotted（太さの丸い点を 2 倍の間隔で）・wavy（波の長さが太さの 4 倍の波線）"
            },
            "stroke_width": {
              "default": 0.5,
              "description": "線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "to": {
              "default": null,
              "description": "line の終点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "type": {
              "const": "line",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "四角形（box、角丸は radius）",
          "properties": {
            "arrow_end": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の終点の矢印（arrow_start と同じ）"
            },
            "arrow_size": {
              "default": null,
              "description": "矢印の大きさ（%。10〜500。既定 100 で、長さは 3pt ＋ 線の太さの 4 倍）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "arrow_start": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の始点の矢印（line と、閉じない polygon（折れ線）だけ）：triangle（塗りの三角）・open（線の矢じり）・circle（塗りの丸）"
            },
            "box": {
              "anyOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "rect / ellipse の枠"
            },
            "cap": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineCap"
                }
              ],
              "default": "butt"
            },
            "closed": {
              "default": null,
              "description": "polygon を閉じるか（既定 true。false で折れ線）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "dash": {
              "default": null,
              "description": "破線の長さの並び（pt）。例 [4, 2]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りの色（CMYK %）。既定は塗りなし"
            },
            "from": {
              "default": null,
              "description": "line の始点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "gradient": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextGradient"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りのグラデーション（rect・ellipse・閉じた polygon。fill の代わりに使う。[`TextGradient`]）。\n形を囲む四角いっぱいに、線形（kind: linear。向きは angle）か円形（kind: radial。中心から外へ）で塗る"
            },
            "join": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineJoin"
                }
              ],
              "default": "miter"
            },
            "opacity": {
              "default": null,
              "description": "不透明度（%）。省略時は不透明",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "points": {
              "default": null,
              "description": "polygon の頂点 [[x, y], ...]",
              "items": {
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "radius": {
              "default": null,
              "description": "rect の角の丸みの半径（unit）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。四角・楕円だけ。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "stroke": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "線の色（CMYK %）。null で線なし。既定は墨 100%"
            },
            "stroke_style": {
              "anyOf": [
                {
                  "$ref": "#/definitions/LineStyle"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の種類（下線と同じ寸法）：solid（実線。既定）・double（stroke_width の線 2 本。間は線 1 本分）・dashed（太さの 3 倍の線と\n2 倍の空き）・dotted（太さの丸い点を 2 倍の間隔で）・wavy（波の長さが太さの 4 倍の波線）"
            },
            "stroke_width": {
              "default": 0.5,
              "description": "線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "to": {
              "default": null,
              "description": "line の終点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "type": {
              "const": "rect",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "楕円（box に内接。正方形なら円）",
          "properties": {
            "arrow_end": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の終点の矢印（arrow_start と同じ）"
            },
            "arrow_size": {
              "default": null,
              "description": "矢印の大きさ（%。10〜500。既定 100 で、長さは 3pt ＋ 線の太さの 4 倍）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "arrow_start": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の始点の矢印（line と、閉じない polygon（折れ線）だけ）：triangle（塗りの三角）・open（線の矢じり）・circle（塗りの丸）"
            },
            "box": {
              "anyOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "rect / ellipse の枠"
            },
            "cap": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineCap"
                }
              ],
              "default": "butt"
            },
            "closed": {
              "default": null,
              "description": "polygon を閉じるか（既定 true。false で折れ線）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "dash": {
              "default": null,
              "description": "破線の長さの並び（pt）。例 [4, 2]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りの色（CMYK %）。既定は塗りなし"
            },
            "from": {
              "default": null,
              "description": "line の始点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "gradient": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextGradient"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りのグラデーション（rect・ellipse・閉じた polygon。fill の代わりに使う。[`TextGradient`]）。\n形を囲む四角いっぱいに、線形（kind: linear。向きは angle）か円形（kind: radial。中心から外へ）で塗る"
            },
            "join": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineJoin"
                }
              ],
              "default": "miter"
            },
            "opacity": {
              "default": null,
              "description": "不透明度（%）。省略時は不透明",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "points": {
              "default": null,
              "description": "polygon の頂点 [[x, y], ...]",
              "items": {
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "radius": {
              "default": null,
              "description": "rect の角の丸みの半径（unit）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。四角・楕円だけ。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "stroke": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "線の色（CMYK %）。null で線なし。既定は墨 100%"
            },
            "stroke_style": {
              "anyOf": [
                {
                  "$ref": "#/definitions/LineStyle"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の種類（下線と同じ寸法）：solid（実線。既定）・double（stroke_width の線 2 本。間は線 1 本分）・dashed（太さの 3 倍の線と\n2 倍の空き）・dotted（太さの丸い点を 2 倍の間隔で）・wavy（波の長さが太さの 4 倍の波線）"
            },
            "stroke_width": {
              "default": 0.5,
              "description": "線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "to": {
              "default": null,
              "description": "line の終点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "type": {
              "const": "ellipse",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "多角形（points。closed: false で折れ線）",
          "properties": {
            "arrow_end": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の終点の矢印（arrow_start と同じ）"
            },
            "arrow_size": {
              "default": null,
              "description": "矢印の大きさ（%。10〜500。既定 100 で、長さは 3pt ＋ 線の太さの 4 倍）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "arrow_start": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ArrowHead"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の始点の矢印（line と、閉じない polygon（折れ線）だけ）：triangle（塗りの三角）・open（線の矢じり）・circle（塗りの丸）"
            },
            "box": {
              "anyOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "rect / ellipse の枠"
            },
            "cap": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineCap"
                }
              ],
              "default": "butt"
            },
            "closed": {
              "default": null,
              "description": "polygon を閉じるか（既定 true。false で折れ線）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "dash": {
              "default": null,
              "description": "破線の長さの並び（pt）。例 [4, 2]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りの色（CMYK %）。既定は塗りなし"
            },
            "from": {
              "default": null,
              "description": "line の始点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "gradient": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextGradient"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "塗りのグラデーション（rect・ellipse・閉じた polygon。fill の代わりに使う。[`TextGradient`]）。\n形を囲む四角いっぱいに、線形（kind: linear。向きは angle）か円形（kind: radial。中心から外へ）で塗る"
            },
            "join": {
              "allOf": [
                {
                  "$ref": "#/definitions/LineJoin"
                }
              ],
              "default": "miter"
            },
            "opacity": {
              "default": null,
              "description": "不透明度（%）。省略時は不透明",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "points": {
              "default": null,
              "description": "polygon の頂点 [[x, y], ...]",
              "items": {
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "radius": {
              "default": null,
              "description": "rect の角の丸みの半径（unit）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。四角・楕円だけ。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "stroke": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "線の色（CMYK %）。null で線なし。既定は墨 100%"
            },
            "stroke_style": {
              "anyOf": [
                {
                  "$ref": "#/definitions/LineStyle"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "線の種類（下線と同じ寸法）：solid（実線。既定）・double（stroke_width の線 2 本。間は線 1 本分）・dashed（太さの 3 倍の線と\n2 倍の空き）・dotted（太さの丸い点を 2 倍の間隔で）・wavy（波の長さが太さの 4 倍の波線）"
            },
            "stroke_width": {
              "default": 0.5,
              "description": "線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "to": {
              "default": null,
              "description": "line の終点 [x, y]",
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": [
                "array",
                "null"
              ]
            },
            "type": {
              "const": "polygon",
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "anyOf": [
            {
              "required": [
                "font",
                "size"
              ]
            },
            {
              "required": [
                "style"
              ]
            }
          ],
          "description": "表（行が枠に入りきらなければ、続きのページを足して続ける）",
          "properties": {
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "表を置く枠。表は枠の左上から始まり、行は下へ並ぶ。枠の高さを超える行は次のページへ送る。"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "セルの文字の色。"
            },
            "columns": {
              "description": "列の指定（左から順に）。",
              "items": {
                "$ref": "#/definitions/ColumnSpec"
              },
              "type": "array"
            },
            "continue": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ContinueSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "続きのページの指定（省略時は、同じページの写しに同じ枠で続ける）。"
            },
            "features": {
              "default": [],
              "description": "セルの文字のOpenType 機能（フォントの字形の切り替え）。機能の名前（4 文字）を並べる：`tnum`（等幅の数字）・`jp90` / `jp78`・`nlck`（人名などの字形）・\n`hwid` / `fwid`（半角・全角の字形）・`zero`（斜線つきのゼロ）など。前に `-` で切り（`-kern`）、`=数` で候補の番号（`salt=2`）。\nフォントにない機能は何もせず、警告する。",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "font": {
              "description": "セルの文字のフォント（fonts のキー）。",
              "type": "string"
            },
            "footer": {
              "default": [],
              "description": "表の最後に置く行（小計・合計など）。途中で分けず、入らなければまとめて次のページへ送る。",
              "items": {
                "items": {
                  "$ref": "#/definitions/Cell"
                },
                "type": "array"
              },
              "type": "array"
            },
            "header": {
              "default": [],
              "description": "見出しの行（[[セル, …], …]）。ページが変わるたびに繰り返す。",
              "items": {
                "items": {
                  "$ref": "#/definitions/Cell"
                },
                "type": "array"
              },
              "type": "array"
            },
            "header_fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "見出しの行の塗り。"
            },
            "header_font": {
              "default": null,
              "description": "見出しの行のフォント（省略時は font）。",
              "type": [
                "string",
                "null"
              ]
            },
            "line_color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "罫線の色。"
            },
            "line_spacing": {
              "default": 130.0,
              "description": "セルの中の行送り（文字の大きさに対する %）。",
              "format": "double",
              "type": "number"
            },
            "line_width": {
              "default": 0.5,
              "description": "罫線の太さ（pt）。",
              "format": "double",
              "type": "number"
            },
            "lines": {
              "allOf": [
                {
                  "$ref": "#/definitions/TableLines"
                }
              ],
              "default": "all",
              "description": "罫線の引き方。"
            },
            "min_row_height": {
              "default": null,
              "description": "行の高さの下限（単位は Job の unit）。文字が多ければ、行はこれより高くなる。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "padding": {
              "default": null,
              "description": "セルの内側の余白（上下左右。単位は Job の unit）。省略時は文字の大きさの 40%。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "page_totals": {
              "anyOf": [
                {
                  "$ref": "#/definitions/PageTotals"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "ページごとの小計と繰越（金額などの列を、ページごとに足して、小計・次頁へ繰越・前頁より繰越の行を置く）。"
            },
            "repeat_header": {
              "default": true,
              "description": "見出しの行を続きのページでも繰り返すか。",
              "type": "boolean"
            },
            "rows": {
              "description": "明細の行（[[セル, …], …]）。",
              "items": {
                "items": {
                  "$ref": "#/definitions/Cell"
                },
                "type": "array"
              },
              "type": "array"
            },
            "rows_per_page": {
              "default": null,
              "description": "1 ページに置く明細の行の数（伝票のように行の数を決める）。明細が足りないページは、空の行（罫線だけ）で埋める。",
              "format": "uint32",
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "ruby": {
              "default": false,
              "description": "セルの文字にルビを付ける（「｜親文字《るび》」の書き方を読む。名簿のふりがな など）。",
              "type": "boolean"
            },
            "size": {
              "description": "セルの文字の大きさ（pt）。",
              "format": "double",
              "type": "number"
            },
            "stripe": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Color"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "明細の行を 1 行おきに塗る色（2 行目、4 行目、…）。"
            },
            "style": {
              "default": null,
              "description": "スタイルの名前（styles に定義したもの）。書いていない項目を、スタイルから受け取る。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "table",
              "type": "string"
            }
          },
          "required": [
            "type",
            "box",
            "columns",
            "rows"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "バーコード（JAN・Code128・QR コード・郵便のカスタマバーコードなど）",
          "properties": {
            "addon": {
              "default": null,
              "description": "JAN（13 桁）・UPC-A・UPC-E の右に付けるアドオン（2 桁か 5 桁。雑誌の定期刊行物コード・書籍など）。数字はバーの上に添える",
              "type": [
                "string",
                "null"
              ]
            },
            "address": {
              "default": null,
              "description": "カスタマバーコード：住所（町域名より後ろ）。ここから住所表示番号を抜き出す",
              "type": [
                "string",
                "null"
              ]
            },
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "左右の寄せ（module を指定したときや 2 次元のとき）。既定は left"
            },
            "alt": {
              "default": null,
              "description": "代わりの文字（タグ付き PDF で読み上げる説明）。省くと、読まない飾りにする。",
              "type": [
                "string",
                "null"
              ]
            },
            "bar_reduction": {
              "default": null,
              "description": "バーを細くする量（印刷でインキが太るのを見込む。単位は Job の unit）。バーの両側から半分ずつ削る",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "bearer": {
              "default": null,
              "description": "上下のベアラーバー（ITF・ITF-14。ITF-14 の既定は付ける）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "置く枠"
            },
            "check_digit": {
              "default": null,
              "description": "チェックデジットを付ける（Code39 はモジュラス 43、ITF はモジュラス 10）。既定は付けない",
              "type": [
                "boolean",
                "null"
              ]
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "バーの色（既定は墨 100%）"
            },
            "columns": {
              "default": null,
              "description": "PDF417 のデータの列の数（1〜30。省略時は、記号の縦横の比が枠に近くなる数）",
              "format": "uint32",
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "data": {
              "description": "中身（文字列）",
              "type": "string"
            },
            "ec_level": {
              "anyOf": [
                {
                  "$ref": "#/definitions/QrLevel"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "QR コード・マイクロ QR コードの誤り訂正のレベル（既定 M）"
            },
            "error_level": {
              "default": null,
              "description": "PDF417 の誤り訂正のレベル（0〜8。省略時はデータの量に応じた推奨値）",
              "format": "uint8",
              "maximum": 255,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "font": {
              "default": null,
              "description": "バーの下に添える文字のフォント（fonts のキー）。省略すると文字を添えない（1 次元だけ）",
              "type": [
                "string",
                "null"
              ]
            },
            "format": {
              "allOf": [
                {
                  "$ref": "#/definitions/BarcodeFormat"
                }
              ],
              "description": "種類"
            },
            "module": {
              "default": null,
              "description": "いちばん細いバーの幅（2 次元は 1 マスの大きさ。単位は Job の unit）。省略時は枠に合わせる",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "overprint": {
              "default": null,
              "description": "墨ノセ（オーバープリント）。省略時は overprint_black の設定に従う。",
              "type": [
                "boolean",
                "null"
              ]
            },
            "rotate": {
              "default": null,
              "description": "回転（度。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "text": {
              "default": null,
              "description": "添える文字を、データの代わりにこの文字にする（バーの幅の中央に置く）",
              "type": [
                "string",
                "null"
              ]
            },
            "text_size": {
              "default": null,
              "description": "添える文字の大きさ（pt）。省略時は細いバーの幅の 10 倍（4〜14pt）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "type": {
              "const": "barcode",
              "type": "string"
            },
            "valign": {
              "anyOf": [
                {
                  "$ref": "#/definitions/VAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "上下の寄せ（2 次元とカスタマバーコード）。既定は top"
            },
            "wide_ratio": {
              "default": null,
              "description": "太いバーの、細いバーに対する倍率（Code39・NW-7・ITF。2〜3、既定 2.5）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "format",
            "data",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "リンク（枠を押すと URL・ページ・しおりの位置へ移る。描くものはないので、見た目は文字や図形で作る）",
          "properties": {
            "alt": {
              "default": null,
              "description": "リンクの説明（注釈の /Contents。タグ付き PDF で読み上げる）。省くと、URL・ページの番号・しおりの名前から作る。",
              "type": [
                "string",
                "null"
              ]
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "押せる範囲。"
            },
            "page": {
              "default": null,
              "description": "移る先のページ（できあがった PDF の何ページ目か。1 から数える。表の続きのページも数える）。",
              "format": "uint32",
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "to": {
              "default": null,
              "description": "移る先のしおりの名前（bookmark の name）。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "link",
              "type": "string"
            },
            "url": {
              "default": null,
              "description": "開く URL（http://・https://・mailto:・tel: で始まるもの）。",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "しおり（PDF の見出しの一覧。置いたページの位置へ移る）",
          "properties": {
            "level": {
              "default": 1,
              "description": "階層（1 がいちばん上）。前のしおりより 1 段だけ深くできる。",
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "name": {
              "default": null,
              "description": "リンクの to で指すときの名前（同じ名前は 1 つだけ）。",
              "type": [
                "string",
                "null"
              ]
            },
            "open": {
              "default": false,
              "description": "下の階層のしおりを開いた状態で見せる。",
              "type": "boolean"
            },
            "title": {
              "description": "しおりの文字。",
              "type": "string"
            },
            "type": {
              "const": "bookmark",
              "type": "string"
            },
            "y": {
              "default": 0.0,
              "description": "移る先の位置（ページの上からの距離。unit）。",
              "format": "double",
              "type": "number"
            }
          },
          "required": [
            "type",
            "title"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "既存の PDF のページを、部品として枠に縮めて置く（図面・地図など）",
          "properties": {
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "枠内での左右の寄せ（既定は left。fit が cover のときは center）。"
            },
            "alt": {
              "default": null,
              "description": "代わりの文字（タグ付き PDF で読み上げる説明）。省くと、読まない飾りにする。",
              "type": [
                "string",
                "null"
              ]
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "置く枠。"
            },
            "file": {
              "description": "置く PDF のファイル。",
              "type": "string"
            },
            "fit": {
              "allOf": [
                {
                  "$ref": "#/definitions/ImageFit"
                }
              ],
              "default": "contain",
              "description": "枠への合わせ方：contain（既定。枠に収める）か cover（枠いっぱいを覆い、はみ出す部分を切り抜く）。"
            },
            "page": {
              "default": 1,
              "description": "何ページ目を置くか（1 から）。",
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "rotate": {
              "default": null,
              "description": "回転（度。反時計回りで、透かしの angle と同じ向き）。枠（box）の中心を軸に回す。box は回す前の枠。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "type": {
              "const": "pdf",
              "type": "string"
            },
            "valign": {
              "anyOf": [
                {
                  "$ref": "#/definitions/VAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "枠内での上下の寄せ（既定は top。fit が cover のときは middle）。"
            }
          },
          "required": [
            "type",
            "file",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "流し込み（文章のブロックを上から順に積み、枠に入りきらなければ続きのページへ送る）",
          "properties": {
            "blocks": {
              "description": "流し込むブロック（上から順に）。",
              "items": {
                "$ref": "#/definitions/FlowBlock"
              },
              "type": "array"
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "流し込む枠。ブロックは枠の上から積み、枠の幅で折り返す（縦書きは右から積み、枠（段）の高さで折り返す）。"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "ブロックで省いたときの文字の色。"
            },
            "column_gap": {
              "default": null,
              "description": "段と段の間の空き（unit）。省くと 5mm。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "columns": {
              "default": 1,
              "description": "段の数（段組。枠を左右に等分し、左の段の下まで来たら右の段の上へ続ける。縦書きは枠を上下に等分し、上の段の左端まで来たら\n下の段の右端へ続ける）。つないだ枠・続きのページの枠も同じ段の数に分ける（つないだ枠は frames の columns で変えられる）。\n既定は 1（段組なし）。",
              "format": "uint",
              "minimum": 0,
              "type": "integer"
            },
            "continue": {
              "anyOf": [
                {
                  "$ref": "#/definitions/ContinueSpec"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "続きのページの指定（省略時は、同じページの写しに同じ枠で続ける）。"
            },
            "direction": {
              "allOf": [
                {
                  "$ref": "#/definitions/Direction"
                }
              ],
              "default": "horizontal",
              "description": "組む向き：`horizontal`（横書き。既定）・`vertical`（縦書き）。縦書きは、列を右から左へ並べ、段組（columns）では枠を上下に分けた\n段を上から順に使う（新聞の段組）。ブロックの align は列の中の寄せ（left = 上・center = 中央・right = 下・distribute = 均等割付）になる。\n縦書きでは、2 桁までの数字を縦中横にする。ドロップキャップは使えない"
            },
            "features": {
              "default": [],
              "description": "ブロックで省いたときのOpenType 機能（フォントの字形の切り替え）。機能の名前（4 文字）を並べる：`tnum`（等幅の数字）・`jp90` / `jp78`・`nlck`（人名などの字形）・\n`hwid` / `fwid`（半角・全角の字形）・`zero`（斜線つきのゼロ）など。前に `-` で切り（`-kern`）、`=数` で候補の番号（`salt=2`）。\nフォントにない機能は何もせず、警告する。",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "font": {
              "default": null,
              "description": "ブロックで省いたときのフォント（fonts のキー）。",
              "type": [
                "string",
                "null"
              ]
            },
            "frames": {
              "default": [],
              "description": "つないだ枠（枠の連結）。最初の枠に入りきらない文字を、この並びの順に流す（同じページの別の枠・後ろのページの枠）。\nそれでも入りきらなければ、続きのページへ送る（つないだ枠が後ろのページにあれば、そのページの後ろに足す）。",
              "items": {
                "$ref": "#/definitions/FlowFrame"
              },
              "type": "array"
            },
            "gap": {
              "default": 0.0,
              "description": "ブロックとブロックの間の空き（unit）。",
              "format": "double",
              "type": "number"
            },
            "line_spacing": {
              "default": 150.0,
              "description": "ブロックで省いたときの行送り（文字の大きさに対する %）。",
              "format": "double",
              "type": "number"
            },
            "size": {
              "default": null,
              "description": "ブロックで省いたときの文字の大きさ（pt）。",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "style": {
              "default": null,
              "description": "スタイルの名前（styles に定義したもの）。書いていない項目を、スタイルから受け取る。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "flow",
              "type": "string"
            }
          },
          "required": [
            "type",
            "box",
            "blocks"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "文字の入力欄（フォーム。PDF を開いた人が文字を書き込める）",
          "properties": {
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "左右の寄せ（left・center・right）。既定は left"
            },
            "border": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "枠線の色（CMYK %）。null で枠線なし。既定は墨 100%"
            },
            "border_width": {
              "default": 0.5,
              "description": "枠線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "入力欄の枠。"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "文字の色（CMYK %）"
            },
            "comb": {
              "default": false,
              "description": "1 文字ずつのます目に分ける（郵便番号・電話番号など）。max_length が要る。1 行の欄だけ",
              "type": "boolean"
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "背景の色（CMYK %）。既定は塗らない"
            },
            "font": {
              "description": "最初の値を描くフォント（fonts のキー）。PDF を開いた人が書き込む文字は、field_font の字体で描かれる。",
              "type": "string"
            },
            "max_length": {
              "default": null,
              "description": "書ける文字数の上限",
              "format": "uint32",
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "multiline": {
              "default": false,
              "description": "複数行にする（改行して書ける。枠の幅で折り返す）",
              "type": "boolean"
            },
            "name": {
              "description": "入力欄の名前（フォームの値を取り出すときの名前）。文書の中で 1 つだけ（ラジオボタンは組で同じ名前）。「.」は使えない。",
              "type": "string"
            },
            "readonly": {
              "default": false,
              "description": "書き換えられない欄にする（値を見せるだけ）。",
              "type": "boolean"
            },
            "required": {
              "default": false,
              "description": "入力が必要な欄にする（送信の前に、空でないかを PDF を見るソフトが確かめる）。",
              "type": "boolean"
            },
            "size": {
              "default": 10.0,
              "description": "文字の大きさ（pt）",
              "format": "double",
              "type": "number"
            },
            "tooltip": {
              "default": null,
              "description": "欄に重ねたときに出る説明（ツールチップ）。読み上げソフトも読む。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "text_field",
              "type": "string"
            },
            "value": {
              "default": "",
              "description": "最初から入れておく文字",
              "type": "string"
            }
          },
          "required": [
            "type",
            "name",
            "box",
            "font"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "チェックボックス（フォーム。押すと印が付く・外れる）",
          "properties": {
            "border": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "枠線の色（CMYK %）。null で枠線なし。既定は墨 100%"
            },
            "border_width": {
              "default": 0.5,
              "description": "枠線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "入力欄の枠。"
            },
            "checked": {
              "default": false,
              "description": "最初から印を付けておく",
              "type": "boolean"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "印の色（CMYK %）"
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "背景の色（CMYK %）。既定は塗らない"
            },
            "name": {
              "description": "入力欄の名前（フォームの値を取り出すときの名前）。文書の中で 1 つだけ（ラジオボタンは組で同じ名前）。「.」は使えない。",
              "type": "string"
            },
            "readonly": {
              "default": false,
              "description": "書き換えられない欄にする（値を見せるだけ）。",
              "type": "boolean"
            },
            "required": {
              "default": false,
              "description": "入力が必要な欄にする（送信の前に、空でないかを PDF を見るソフトが確かめる）。",
              "type": "boolean"
            },
            "tooltip": {
              "default": null,
              "description": "欄に重ねたときに出る説明（ツールチップ）。読み上げソフトも読む。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "checkbox",
              "type": "string"
            }
          },
          "required": [
            "type",
            "name",
            "box"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "ラジオボタン（フォーム。同じ name のボタンの組から 1 つを選ぶ）",
          "properties": {
            "border": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "枠線の色（CMYK %）。null で枠線なし。既定は墨 100%"
            },
            "border_width": {
              "default": 0.5,
              "description": "枠線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "入力欄の枠。"
            },
            "checked": {
              "default": false,
              "description": "最初から選んでおく（組の中で 1 つまで）",
              "type": "boolean"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "印（丸）の色（CMYK %）"
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "背景の色（CMYK %）。既定は塗らない"
            },
            "name": {
              "description": "入力欄の名前（フォームの値を取り出すときの名前）。文書の中で 1 つだけ（ラジオボタンは組で同じ名前）。「.」は使えない。",
              "type": "string"
            },
            "readonly": {
              "default": false,
              "description": "書き換えられない欄にする（値を見せるだけ）。",
              "type": "boolean"
            },
            "required": {
              "default": false,
              "description": "入力が必要な欄にする（送信の前に、空でないかを PDF を見るソフトが確かめる）。",
              "type": "boolean"
            },
            "tooltip": {
              "default": null,
              "description": "欄に重ねたときに出る説明（ツールチップ）。読み上げソフトも読む。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "radio",
              "type": "string"
            },
            "value": {
              "description": "このボタンを選んだときの組の値（組の中で 1 つだけ。Off は使えない）",
              "type": "string"
            }
          },
          "required": [
            "type",
            "name",
            "box",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "選択欄（フォーム。並べた項目から 1 つを選ぶドロップダウン）",
          "properties": {
            "align": {
              "anyOf": [
                {
                  "$ref": "#/definitions/HAlign"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "左右の寄せ（left・center・right）。既定は left"
            },
            "border": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "枠線の色（CMYK %）。null で枠線なし。既定は墨 100%"
            },
            "border_width": {
              "default": 0.5,
              "description": "枠線の太さ（pt）",
              "format": "double",
              "type": "number"
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "入力欄の枠。"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "文字の色（CMYK %）"
            },
            "editable": {
              "default": false,
              "description": "一覧にない文字も書けるようにする",
              "type": "boolean"
            },
            "fill": {
              "anyOf": [
                {
                  "$ref": "#/definitions/Cmyk"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "背景の色（CMYK %）。既定は塗らない"
            },
            "font": {
              "description": "最初の値を描くフォント（fonts のキー）。PDF を開いた人が書き込む文字は、field_font の字体で描かれる。",
              "type": "string"
            },
            "name": {
              "description": "入力欄の名前（フォームの値を取り出すときの名前）。文書の中で 1 つだけ（ラジオボタンは組で同じ名前）。「.」は使えない。",
              "type": "string"
            },
            "options": {
              "description": "選ぶ項目の並び",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "readonly": {
              "default": false,
              "description": "書き換えられない欄にする（値を見せるだけ）。",
              "type": "boolean"
            },
            "required": {
              "default": false,
              "description": "入力が必要な欄にする（送信の前に、空でないかを PDF を見るソフトが確かめる）。",
              "type": "boolean"
            },
            "size": {
              "default": 10.0,
              "description": "文字の大きさ（pt）",
              "format": "double",
              "type": "number"
            },
            "tooltip": {
              "default": null,
              "description": "欄に重ねたときに出る説明（ツールチップ）。読み上げソフトも読む。",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "choice",
              "type": "string"
            },
            "value": {
              "default": null,
              "description": "最初に選んでおく項目（省くと空）",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "name",
            "box",
            "options",
            "font"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "グラフ（棒グラフ・折れ線グラフ・円グラフ）",
          "properties": {
            "alt": {
              "default": null,
              "description": "代わりの文字（タグ付き PDF で読み上げる説明）。省くと、読まない飾りにする。",
              "type": [
                "string",
                "null"
              ]
            },
            "box": {
              "allOf": [
                {
                  "$ref": "#/definitions/BoxSpec"
                }
              ],
              "description": "置く枠"
            },
            "categories": {
              "default": [],
              "description": "項目の名前（棒・点の並び。円グラフは扇形の名前）",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "color": {
              "allOf": [
                {
                  "$ref": "#/definitions/Color"
                }
              ],
              "default": [
                0.0,
                0.0,
                0.0,
                100.0
              ],
              "description": "文字の色"
            },
            "font": {
              "description": "文字のフォント（fonts のキー）",
              "type": "string"
            },
            "grid": {
              "default": true,
              "description": "目盛りの横（横向きの棒グラフは縦）の補助線",
              "type": "boolean"
            },
            "horizontal": {
              "default": false,
              "description": "棒を横向きにする（棒グラフ）",
              "type": "boolean"
            },
            "kind": {
              "allOf": [
                {
                  "$ref": "#/definitions/ChartKind"
                }
              ],
              "description": "種類（bar・line・pie）"
            },
            "labels": {
              "default": false,
              "description": "値を棒・点に添える（円グラフは割合（%）を扇形の中に）",
              "type": "boolean"
            },
            "legend": {
              "default": null,
              "description": "凡例を下に置く（省略時は、系列が 2 つ以上か円グラフのとき置く）",
              "type": [
                "boolean",
                "null"
              ]
            },
            "max": {
              "default": null,
              "description": "値の軸の最大（省略時は値から自動）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "min": {
              "default": null,
              "description": "値の軸の最小（省略時は値から自動。0 を含める）",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            },
            "prefix": {
              "default": "",
              "description": "目盛りと値の前に付ける文字（例 \"¥\"）",
              "type": "string"
            },
            "series": {
              "description": "系列（棒グラフ・折れ線グラフは複数を並べられる。円グラフは最初の 1 つ）",
              "items": {
                "$ref": "#/definitions/ChartSeries"
              },
              "type": "array"
            },
            "size": {
              "default": 8.0,
              "description": "文字の大きさ（pt。題はこの 1.2 倍）",
              "format": "double",
              "type": "number"
            },
            "stacked": {
              "default": false,
              "description": "系列を積み上げる（棒グラフ）",
              "type": "boolean"
            },
            "suffix": {
              "default": "",
              "description": "目盛りと値の後ろに付ける文字（例 \"円\"・\"%\"）",
              "type": "string"
            },
            "text_wrap": {
              "anyOf": [
                {
                  "$ref": "#/definitions/TextWrap"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "回り込み（流し込みの文章が、この要素の枠を避けて組まれる）。同じページ（続きのページの要素なら続きのページ）の流し込みに効く"
            },
            "title": {
              "default": null,
              "description": "題（上に置く）",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "chart",
              "type": "string"
            }
          },
          "required": [
            "type",
            "kind",
            "box",
            "font",
            "series"
          ],
          "type": "object"
        }
      ]
    },
    "LineCap": {
      "description": "線の端の形。",
      "enum": [
        "butt",
        "round",
        "square"
      ],
      "type": "string"
    },
    "LineDecoration": {
      "anyOf": [
        {
          "description": "引くか",
          "type": "boolean"
        },
        {
          "allOf": [
            {
              "$ref": "#/definitions/LineDecorationSpec"
            }
          ],
          "description": "細かい指定で引く"
        }
      ],
      "description": "下線・取り消し線。`true` で文字の色の実線を引く。色・太さ・位置・種類を変えるときはオブジェクトで書く\n（`{\"color\": [0, 0, 100, 0], \"width\": 4, \"offset\": -3}`。[`LineDecorationSpec`]）。"
    },
    "LineDecorationSpec": {
      "additionalProperties": false,
      "description": "下線・取り消し線の細かい指定。",
      "properties": {
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "線の色（CMYK の % か特色）。省略時は文字の色。色を指定した線は、文字の後ろ（先）に描く（マーカーのようにも使える）"
        },
        "offset": {
          "default": 0.0,
          "description": "線をずらす量（pt。-50〜50）。正なら下（縦書きは右）へ、負なら上（縦書きは左）へ",
          "format": "double",
          "type": "number"
        },
        "style": {
          "allOf": [
            {
              "$ref": "#/definitions/LineStyle"
            }
          ],
          "default": "solid",
          "description": "線の種類（既定は実線）"
        },
        "width": {
          "default": null,
          "description": "線の太さ（pt。0.01〜20）。省略時はフォントの下線の太さ",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "LineJoin": {
      "description": "線の角（つなぎ目）の形。",
      "enum": [
        "miter",
        "round",
        "bevel"
      ],
      "type": "string"
    },
    "LineStartBracket": {
      "description": "行頭に来た始め括弧（「（ など）の扱い。",
      "oneOf": [
        {
          "const": "full",
          "description": "全角のまま（括弧の字形の前の二分の空きを残す）。",
          "type": "string"
        },
        {
          "const": "half",
          "description": "二分（括弧の字形の前の空きを詰める）。",
          "type": "string"
        }
      ]
    },
    "LineStyle": {
      "description": "下線・取り消し線の線の種類。",
      "oneOf": [
        {
          "const": "solid",
          "description": "実線",
          "type": "string"
        },
        {
          "const": "double",
          "description": "二重線（同じ太さの線 2 本。間は線 1 本分）",
          "type": "string"
        },
        {
          "const": "dashed",
          "description": "破線（線の太さの 3 倍の線と 2 倍の空き）",
          "type": "string"
        },
        {
          "const": "dotted",
          "description": "点線（線の太さの丸い点を、太さの 2 倍の間隔で）",
          "type": "string"
        },
        {
          "const": "wavy",
          "description": "波線（波の長さは線の太さの 4 倍、高さは太さと同じ）",
          "type": "string"
        }
      ]
    },
    "Outline": {
      "anyOf": [
        {
          "allOf": [
            {
              "$ref": "#/definitions/OutlineLayer"
            }
          ],
          "description": "縁 1 つ"
        },
        {
          "description": "縁を並べる（二重・三重の袋文字）",
          "items": {
            "$ref": "#/definitions/OutlineLayer"
          },
          "type": "array"
        }
      ],
      "description": "袋文字（字のまわりを、別の色で縁取る）。縁 1 つなら `{\"color\": …, \"width\": …}`。二重・三重の袋文字は並べる\n（`width` はどれも字の輪郭から外側への幅で、太いほうが外側。4 つまで）。`offset` を書いた縁は、ずらした影になる。縁は字の形の線として描き、その上に文字を重ねる\n（文字は 1 回だけ入るので、検索・コピー・読み上げで字が重ならない）。下線・取り消し線も縁取る。"
    },
    "OutlineLayer": {
      "additionalProperties": false,
      "description": "袋文字の縁 1 つ（色と太さ）。",
      "properties": {
        "color": {
          "allOf": [
            {
              "$ref": "#/definitions/Color"
            }
          ],
          "default": [
            0.0,
            0.0,
            0.0,
            0.0
          ],
          "description": "縁の色（CMYK の % か特色）。既定は白"
        },
        "offset": {
          "default": null,
          "description": "ずらす量（pt。`[右, 下]`。それぞれ -50〜50）。書くと影になる：縁の形を中まで塗り、この量だけずらして、\nずらさない縁より先に描く",
          "items": {
            "format": "double",
            "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": [
            "array",
            "null"
          ]
        },
        "width": {
          "description": "縁の太さ（pt。字の輪郭から外側への幅。0 より大きく 50 以下）。影（offset を書いた縁）は 0 も書け、\n0 なら字と同じ形の影になる",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "width"
      ],
      "type": "object"
    },
    "Padding": {
      "anyOf": [
        {
          "description": "上下左右",
          "format": "double",
          "type": "number"
        },
        {
          "description": "[上下, 左右]",
          "items": {
            "format": "double",
            "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        }
      ],
      "description": "座布団の余白：数 1 つ（上下左右）か `[上下, 左右]`（pt）。"
    },
    "PageBox": {
      "description": "座標の基準にするページの枠（テンプレートを使うとき）。",
      "enum": [
        "media",
        "crop",
        "trim",
        "bleed"
      ],
      "type": "string"
    },
    "PageNumberStyle": {
      "description": "ページ番号の書き方。",
      "oneOf": [
        {
          "const": "arabic",
          "description": "1, 2, 3（半角の数字）",
          "type": "string"
        },
        {
          "const": "fullwidth",
          "description": "１, ２, ３（全角の数字。縦書きのノンブルなど）",
          "type": "string"
        },
        {
          "const": "roman",
          "description": "i, ii, iii（小文字のローマ数字。3999 まで、それより大きければ数字）",
          "type": "string"
        },
        {
          "const": "upper_roman",
          "description": "I, II, III（大文字のローマ数字）",
          "type": "string"
        },
        {
          "const": "kanji",
          "description": "一, 二, 十一, 百二十（漢数字）",
          "type": "string"
        }
      ]
    },
    "PageNumbering": {
      "additionalProperties": false,
      "description": "ページ番号（文字の {page}・{pages}）の数え方と書き方。表紙を数えない・ローマ数字の前付けなど。",
      "properties": {
        "from": {
          "default": 1,
          "description": "数え始めるページ（できあがった PDF の何ページ目か。1 から。既定 1）。それより前のページの {page} は空にする",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "start": {
          "default": 1,
          "description": "数え始めるページの番号（既定 1）",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "style": {
          "allOf": [
            {
              "$ref": "#/definitions/PageNumberStyle"
            }
          ],
          "default": "arabic",
          "description": "番号の書き方（既定 arabic）"
        }
      },
      "type": "object"
    },
    "PageSpec": {
      "additionalProperties": false,
      "description": "1 ページ分の指定（どのページに、何を置くか）。",
      "properties": {
        "form_values": {
          "additionalProperties": {
            "$ref": "#/definitions/FormValue"
          },
          "default": {},
          "description": "テンプレートのフォームの、このページにある入力欄に差し込む値（入力欄の名前 → 値）。",
          "type": "object"
        },
        "items": {
          "default": [],
          "items": {
            "$ref": "#/definitions/Item"
          },
          "type": "array"
        },
        "page": {
          "default": null,
          "description": "テンプレートの何ページ目に重ねるか（1 始まり）。省略時は並び順。\nsource があるときは、取り込む PDF の何ページ目か（省略すると全ページ）。",
          "format": "uint32",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "source": {
          "default": null,
          "description": "ページとして取り込む PDF（PDF の結合）。取り込んだページの上に items を重ねる。",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "PageTotals": {
      "additionalProperties": false,
      "description": "表のページごとの小計と繰越。行の名前は label_column の列から、足す列の手前までを 1 つのセルにして書く。",
      "properties": {
        "brought_forward": {
          "default": null,
          "description": "続きのページの頭（見出しの下）に置く行の名前（例 \"前頁より繰越\"）。値は、前のページまでの累計",
          "type": [
            "string",
            "null"
          ]
        },
        "carry_over": {
          "default": null,
          "description": "次のページへ続くとき、ページの最後に置く行の名前（例 \"次頁へ繰越\"）。値は、そのページまでの累計",
          "type": [
            "string",
            "null"
          ]
        },
        "columns": {
          "description": "足す列（左から 0 で数える列の番号）。明細のセルの文字を数として読む（桁区切りの「,」・「¥」「円」は外し、「△」「▲」は負の数）",
          "items": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "type": "array"
        },
        "decimals": {
          "default": null,
          "description": "小数点以下の桁数。省くと、足した値の中でいちばん多い桁数",
          "format": "uint32",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "fill": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "行の塗り"
        },
        "font": {
          "default": null,
          "description": "行のフォント（fonts のキー。省くと表の font）",
          "type": [
            "string",
            "null"
          ]
        },
        "label_column": {
          "default": 0,
          "description": "行の名前を書く列（0 から）。足す列は選べない",
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "prefix": {
          "default": "",
          "description": "値の前に付ける文字（例 \"¥\"）",
          "type": "string"
        },
        "subtotal": {
          "default": null,
          "description": "ページごとの小計の行の名前（例 \"小計\"）。省くと置かない",
          "type": [
            "string",
            "null"
          ]
        },
        "suffix": {
          "default": "",
          "description": "値の後ろに付ける文字（例 \"円\"）",
          "type": "string"
        }
      },
      "required": [
        "columns"
      ],
      "type": "object"
    },
    "PdfaSpec": {
      "additionalProperties": false,
      "description": "長期保存用 PDF の規格（PDF/A）で出すときの指定。",
      "properties": {
        "icc_profile": {
          "default": null,
          "description": "出力条件の ICC プロファイル（印刷用の CMYK）のファイル。必須。エンジンには同梱しない。\nエンジンの色は CMYK なので、その色の意味をこのプロファイルで決める。",
          "type": [
            "string",
            "null"
          ]
        },
        "output_condition": {
          "default": "Custom",
          "description": "出力条件の識別名（既定は Custom）。",
          "type": "string"
        },
        "output_condition_info": {
          "default": null,
          "description": "出力条件の説明（省略時は ICC プロファイルの説明）。",
          "type": [
            "string",
            "null"
          ]
        },
        "standard": {
          "$ref": "#/definitions/PdfaStandard"
        },
        "title": {
          "default": null,
          "description": "文書の題名（省略時はテンプレートの題名。なければ書かない）。",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "standard"
      ],
      "type": "object"
    },
    "PdfaStandard": {
      "description": "PDF/A の種類（ISO 19005）。b は見た目、u はさらに文字（Unicode）を取り出せることを保証する。\n3 は 2 と同じ中身で、ほかのファイルを添付できる版（PDFBooster は添付しない）。",
      "oneOf": [
        {
          "const": "a2b",
          "description": "PDF/A-2b（見た目を保証する）",
          "type": "string"
        },
        {
          "const": "a2u",
          "description": "PDF/A-2u（見た目に加えて、文字を Unicode で取り出せる）",
          "type": "string"
        },
        {
          "const": "a3b",
          "description": "PDF/A-3b（PDF/A-2b と同じ中身。添付ファイルを持てる版）",
          "type": "string"
        },
        {
          "const": "a3u",
          "description": "PDF/A-3u（PDF/A-2u と同じ中身。添付ファイルを持てる版）",
          "type": "string"
        }
      ]
    },
    "PdfxSpec": {
      "additionalProperties": false,
      "description": "PDF/X で出すときの指定。",
      "properties": {
        "icc_profile": {
          "default": null,
          "description": "出力条件の ICC プロファイル（CMYK）のファイル。PDF/X-4 では必須。エンジンには同梱しない。",
          "type": [
            "string",
            "null"
          ]
        },
        "output_condition": {
          "default": "JC200103",
          "description": "出力条件の識別名（既定は JC200103 ＝ Japan Color 2001 Coated）。",
          "type": "string"
        },
        "output_condition_info": {
          "default": null,
          "description": "出力条件の説明（省略時は識別名から決める）。",
          "type": [
            "string",
            "null"
          ]
        },
        "registry": {
          "default": "http://www.color.org",
          "type": "string"
        },
        "standard": {
          "$ref": "#/definitions/PdfxStandard"
        },
        "title": {
          "default": null,
          "description": "文書の題名（省略時はテンプレートの題名、なければ \"Untitled\"）。",
          "type": [
            "string",
            "null"
          ]
        },
        "trapped": {
          "default": false,
          "description": "トラッピング済みか（既定 false）。",
          "type": "boolean"
        }
      },
      "required": [
        "standard"
      ],
      "type": "object"
    },
    "PdfxStandard": {
      "description": "PDF/X の種類。",
      "oneOf": [
        {
          "const": "x1a",
          "description": "PDF/X-1a:2003（CMYK と特色だけ、透明なし）",
          "type": "string"
        },
        {
          "const": "x4",
          "description": "PDF/X-4（透明を使える。出力条件の ICC プロファイルが必要）",
          "type": "string"
        }
      ]
    },
    "Permission": {
      "description": "開いた人に許すこと。",
      "oneOf": [
        {
          "const": "print",
          "description": "印刷（高い品質での印刷を含む）",
          "type": "string"
        },
        {
          "const": "copy",
          "description": "文字や画像のコピー",
          "type": "string"
        },
        {
          "const": "edit",
          "description": "内容の変更",
          "type": "string"
        },
        {
          "const": "annotate",
          "description": "注釈（コメント）の追加・変更と、フォームへの入力",
          "type": "string"
        },
        {
          "const": "form",
          "description": "フォームへの入力だけ",
          "type": "string"
        },
        {
          "const": "assemble",
          "description": "ページの挿入・削除・回転、しおりの作成",
          "type": "string"
        }
      ]
    },
    "PreflightSpec": {
      "additionalProperties": false,
      "description": "印刷前の点検の基準。",
      "properties": {
        "max_ink": {
          "default": 300.0,
          "description": "総インキ量（C+M+Y+K、%）の上限",
          "format": "double",
          "type": "number"
        },
        "min_dpi": {
          "default": 300.0,
          "description": "画像の実際の解像度の下限（dpi）",
          "format": "double",
          "type": "number"
        },
        "min_line_width": {
          "default": 0.28,
          "description": "線の太さの下限（pt。0.1mm ≒ 0.283pt）",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    },
    "ProtectionSpec": {
      "additionalProperties": false,
      "description": "パスワードと権限の指定。",
      "properties": {
        "allow": {
          "default": null,
          "description": "開いた人に許すこと。省略するとすべて許す。`[]` なら何も許さない（見るだけ）。",
          "items": {
            "$ref": "#/definitions/Permission"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "open_password": {
          "default": null,
          "description": "開くときのパスワード。省略すると、だれでも開ける（権限の制限だけをかける）。",
          "type": [
            "string",
            "null"
          ]
        },
        "owner_password": {
          "default": null,
          "description": "権限を変えるときのパスワード（所有者のパスワード）。省略すると、だれにも分からない乱数にする。",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "QrLevel": {
      "description": "QR コードの誤り訂正のレベル（データの何 % が読めなくても復元できるか：L 約 7%・M 約 15%・Q 約 25%・H 約 30%）。",
      "enum": [
        "L",
        "M",
        "Q",
        "H"
      ],
      "type": "string"
    },
    "RenderingIntent": {
      "description": "色の変換の意図（ICC の rendering intent）。",
      "oneOf": [
        {
          "const": "perceptual",
          "description": "知覚的（写真向け。既定）",
          "type": "string"
        },
        {
          "const": "relative_colorimetric",
          "description": "相対的な色域を維持",
          "type": "string"
        },
        {
          "const": "saturation",
          "description": "彩度",
          "type": "string"
        },
        {
          "const": "absolute_colorimetric",
          "description": "絶対的な色域を維持",
          "type": "string"
        }
      ]
    },
    "RunPosition": {
      "description": "上付き・下付き。",
      "oneOf": [
        {
          "const": "super",
          "description": "上付き（大きさ 60%・文字の大きさの 35% 上へ。㎡ の 2、注の番号など）",
          "type": "string"
        },
        {
          "const": "sub",
          "description": "下付き（大きさ 60%・文字の大きさの 12% 下へ。H₂O の 2 など）",
          "type": "string"
        }
      ]
    },
    "Size": {
      "additionalProperties": false,
      "description": "ページの大きさ（幅・高さ。単位は Job の unit）。",
      "properties": {
        "height": {
          "format": "double",
          "type": "number"
        },
        "width": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "SpotColor": {
      "additionalProperties": false,
      "description": "特色（DIC・PANTONE など）。色の値はエンジンに持たないので、代わりの CMYK を利用者が指定する。",
      "properties": {
        "cmyk": {
          "allOf": [
            {
              "$ref": "#/definitions/Cmyk"
            }
          ],
          "description": "画面表示や校正で使う代わりの CMYK（%）"
        },
        "spot": {
          "description": "特色の名前（印刷所に伝わる名前。例 \"DIC 156\"）",
          "type": "string"
        },
        "tint": {
          "default": 100.0,
          "description": "濃度（%）",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "spot",
        "cmyk"
      ],
      "type": "object"
    },
    "StyleSpec": {
      "additionalProperties": false,
      "description": "スタイル（styles に名前を付けて定義する書式）。項目は、文字・流し込みのブロック・流し込み・表・セルの同じ名前の項目と同じ。\n使う要素にない項目は使わない（たとえば、セルは font・color・align・fill・vertical・features・diagonal・border だけを受け取る）。\n値が null の項目は、書いていないのと同じ。",
      "properties": {
        "align": {
          "anyOf": [
            {
              "$ref": "#/definitions/HAlign"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "左右の寄せ"
        },
        "based_on": {
          "default": null,
          "description": "元にするスタイルの名前。元の項目を受け継ぎ、このスタイルに書いた項目で上書きする。",
          "type": [
            "string",
            "null"
          ]
        },
        "border": {
          "anyOf": [
            {
              "$ref": "#/definitions/CellBorder"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの辺ごとの罫線（表のセル）"
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "文字の色"
        },
        "column_gap": {
          "default": null,
          "description": "段と段の間の空き（unit。流し込み）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "columns": {
          "default": null,
          "description": "段の数（流し込み）",
          "format": "uint",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "diagonal": {
          "anyOf": [
            {
              "$ref": "#/definitions/Diagonal"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの斜線（表のセル）"
        },
        "direction": {
          "anyOf": [
            {
              "$ref": "#/definitions/Direction"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "縦書き・横書き（文字の要素）"
        },
        "emphasis_mark": {
          "anyOf": [
            {
              "$ref": "#/definitions/EmphasisMark"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "圏点の形（文字の要素）"
        },
        "features": {
          "default": null,
          "description": "OpenType 機能（tnum・jp90 など）",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "fill": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "セルの塗り（セル）"
        },
        "fit": {
          "anyOf": [
            {
              "$ref": "#/definitions/Fit"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "枠に入らないとき（文字の要素）"
        },
        "font": {
          "default": null,
          "description": "フォント（fonts のキー）",
          "type": [
            "string",
            "null"
          ]
        },
        "gap": {
          "default": null,
          "description": "ブロックの間の空き（unit。流し込み）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "hanging": {
          "default": null,
          "description": "ぶら下げ",
          "type": [
            "boolean",
            "null"
          ]
        },
        "header_fill": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "見出しの行の塗り（表）"
        },
        "header_font": {
          "default": null,
          "description": "見出しの行のフォント（表）",
          "type": [
            "string",
            "null"
          ]
        },
        "indent": {
          "default": null,
          "description": "段落の 1 行目の字下げ（字数）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "justify": {
          "default": null,
          "description": "両端揃え",
          "type": [
            "boolean",
            "null"
          ]
        },
        "keep_together": {
          "default": null,
          "description": "ブロックを分けずに同じページに置く",
          "type": [
            "boolean",
            "null"
          ]
        },
        "keep_with_next": {
          "default": null,
          "description": "次のブロックの 1 行目と同じページに置く（見出し）",
          "type": [
            "boolean",
            "null"
          ]
        },
        "kinsoku": {
          "default": null,
          "description": "禁則",
          "type": [
            "boolean",
            "null"
          ]
        },
        "latin_spacing": {
          "default": null,
          "description": "和文と英数字の間の空き（文字の大きさに対する %）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "line_color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "罫線の色（表）"
        },
        "line_spacing": {
          "default": null,
          "description": "行送り（文字の大きさに対する %）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "line_start_bracket": {
          "anyOf": [
            {
              "$ref": "#/definitions/LineStartBracket"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "行頭の始め括弧の空き"
        },
        "line_width": {
          "default": null,
          "description": "罫線の太さ（pt。表）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "lines": {
          "anyOf": [
            {
              "$ref": "#/definitions/TableLines"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "罫線の引き方（表）"
        },
        "min_row_height": {
          "default": null,
          "description": "行の高さの下限（unit。表）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "min_size": {
          "default": null,
          "description": "fit が size のときの下限（pt。文字の要素）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "outline": {
          "anyOf": [
            {
              "$ref": "#/definitions/Outline"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "袋文字（文字の要素）"
        },
        "overprint": {
          "default": null,
          "description": "墨ノセ",
          "type": [
            "boolean",
            "null"
          ]
        },
        "padding": {
          "default": null,
          "description": "セルの内側の余白（unit。表）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "proportional": {
          "default": null,
          "description": "プロポーショナル詰め",
          "type": [
            "boolean",
            "null"
          ]
        },
        "ruby": {
          "default": null,
          "description": "ルビの書き方を読む",
          "type": [
            "boolean",
            "null"
          ]
        },
        "ruby_size": {
          "default": null,
          "description": "ルビの大きさ（親文字に対する %。20〜100）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "scale_x": {
          "default": null,
          "description": "文字の横幅（%。文字の要素）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "scale_y": {
          "default": null,
          "description": "文字の高さ（%。文字の要素）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "size": {
          "default": null,
          "description": "文字の大きさ（pt）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "space_after": {
          "default": null,
          "description": "ブロックの後ろの空き（unit）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "space_before": {
          "default": null,
          "description": "ブロックの前の空き（unit）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "squeeze_punctuation": {
          "default": null,
          "description": "約物の詰め",
          "type": [
            "boolean",
            "null"
          ]
        },
        "strike": {
          "anyOf": [
            {
              "$ref": "#/definitions/LineDecoration"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "取り消し線（文字の要素）"
        },
        "stripe": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "1 行おきの塗り（表）"
        },
        "tag": {
          "anyOf": [
            {
              "$ref": "#/definitions/TextTag"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "タグ付き PDF での見出しの段（文字の要素）"
        },
        "tcy_digits": {
          "default": null,
          "description": "縦中横にする数字の桁数（文字の要素）",
          "format": "uint32",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "tcy_letters": {
          "default": null,
          "description": "英字も縦中横にする（文字の要素）",
          "type": [
            "boolean",
            "null"
          ]
        },
        "tracking": {
          "default": null,
          "description": "字間（%）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "underline": {
          "anyOf": [
            {
              "$ref": "#/definitions/LineDecoration"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "下線（文字の要素）"
        },
        "valign": {
          "anyOf": [
            {
              "$ref": "#/definitions/VAlign"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "上下の寄せ（文字の要素）"
        },
        "vertical": {
          "default": null,
          "description": "セルの文字を縦書きにする（セル）",
          "type": [
            "boolean",
            "null"
          ]
        },
        "vertical_latin": {
          "anyOf": [
            {
              "$ref": "#/definitions/VerticalLatin"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "縦書きの半角の英数字の向き（文字の要素）"
        },
        "wrap": {
          "default": null,
          "description": "枠の幅で折り返す（文字の要素）",
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "TableLines": {
      "description": "表の罫線の引き方。",
      "oneOf": [
        {
          "const": "all",
          "description": "縦横すべて（格子）",
          "type": "string"
        },
        {
          "const": "horizontal",
          "description": "横の線だけ",
          "type": "string"
        },
        {
          "const": "none",
          "description": "引かない",
          "type": "string"
        }
      ]
    },
    "TextArc": {
      "additionalProperties": false,
      "description": "アーチ文字：まっすぐに組んだ文字を、弧に沿って字の形ごと曲げる（横書きだけ）。字の左右の位置を弧の角度に、\n高さを弧の中心からの距離に写すので、弧の外側は広がり、内側は縮む。行の束の上下の真ん中の線が、半径 `radius` の弧になり、\nその線の上では字の幅が変わらない。弧の頂点（谷なりなら底）は枠の左右の真ん中に来て、曲げた後の行の束を valign で枠に寄せる。\n曲げた字は文字の色で塗った形として描き、文字そのものは見えない文字として入れる（検索・コピー・読み上げ用。字は 1 回だけ）。",
      "properties": {
        "radius": {
          "description": "弧の半径（ジョブの単位。mm か pt）。正なら上に膨らむ山なり（∩）、負なら下に膨らむ谷なり（∪）。\n行の束の高さの半分より大きくする",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "radius"
      ],
      "type": "object"
    },
    "TextBackground": {
      "additionalProperties": false,
      "description": "座布団：文字の後ろに、文字の束（em の箱）の大きさに合わせた四角や円を敷く。",
      "properties": {
        "color": {
          "allOf": [
            {
              "$ref": "#/definitions/Color"
            }
          ],
          "description": "塗りの色（CMYK の % か特色）"
        },
        "padding": {
          "anyOf": [
            {
              "$ref": "#/definitions/Padding"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "文字の束と座布団の縁の間（pt。0〜100）。数 1 つなら上下左右、`[上下, 左右]` で分けて書ける。\n省略時は四角が [文字の大きさの 15%, 30%]、円が文字の大きさの 15%"
        },
        "radius": {
          "default": 0.0,
          "description": "角の丸み（pt。0 以上。四角だけ）。座布団の高さの半分以上なら、両端が半円になる",
          "format": "double",
          "type": "number"
        },
        "shape": {
          "allOf": [
            {
              "$ref": "#/definitions/BackgroundShape"
            }
          ],
          "default": "rect",
          "description": "形（既定は四角）"
        }
      },
      "required": [
        "color"
      ],
      "type": "object"
    },
    "TextGradient": {
      "additionalProperties": false,
      "description": "文字のグラデーション：字の塗りを、2〜8 色の CMYK の線形のグラデーションにする。グラデーションは字の形（曲げるなら曲げた形）の\n広がりいっぱいに、向き angle で横切る。両端の色の外は、端の色のまま。",
      "properties": {
        "angle": {
          "default": 90.0,
          "description": "向き（度）。0 で左から右、90 で上から下、180 で右から左（ジョブの座標と同じく、下向きが正）。既定は 90",
          "format": "double",
          "type": "number"
        },
        "colors": {
          "description": "色の並び（CMYK の %。2〜8 色。特色は使えない）",
          "items": {
            "$ref": "#/definitions/Color"
          },
          "type": "array"
        },
        "kind": {
          "allOf": [
            {
              "$ref": "#/definitions/GradientKind"
            }
          ],
          "default": "linear",
          "description": "種類：linear（線形。既定）か radial（円形。中心から外へ）"
        },
        "stops": {
          "default": null,
          "description": "色の位置（%。0〜100 の減らない並びで、colors と同じ数）。省略時は等間隔",
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "colors"
      ],
      "type": "object"
    },
    "TextRun": {
      "additionalProperties": false,
      "description": "文字の中の書式を変えた一続き（runs の 1 つ）。書いていない項目は、文字の要素のまま。",
      "properties": {
        "baseline": {
          "default": null,
          "description": "ベースラインをずらす量（pt。-100〜100。正なら上へ）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/definitions/Color"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "色（CMYK の % か特色）"
        },
        "position": {
          "anyOf": [
            {
              "$ref": "#/definitions/RunPosition"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "上付き・下付き（大きさとベースラインのずれの既定値。size_percent・baseline を書けば、そちらを使う・足す）"
        },
        "size_percent": {
          "default": null,
          "description": "大きさ（文字の要素の size に対する %。10〜400）。fit で文字を小さくしたときも、この割合を保つ",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "text": {
          "description": "文字列（改行 \\n も書ける）",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    },
    "TextTag": {
      "description": "タグ付き PDF での、文字の要素の役割。",
      "oneOf": [
        {
          "enum": [
            "h2",
            "h3",
            "h4",
            "h5",
            "h6"
          ],
          "type": "string"
        },
        {
          "const": "p",
          "description": "段落（既定）",
          "type": "string"
        },
        {
          "const": "h1",
          "description": "見出し（大きい順に h1〜h6）",
          "type": "string"
        },
        {
          "const": "artifact",
          "description": "読まない飾り（ヘッダー・フッター・ページ番号など。全ページに置く要素の既定）",
          "type": "string"
        }
      ]
    },
    "TextWarp": {
      "additionalProperties": false,
      "description": "ワープ：まっすぐに組んだ文字を、字の形ごと曲げる（横書きだけ。アーチ文字は arc）。曲げた字は文字の色で塗った形として描き、\n文字そのものは見えない文字として入れる。袋文字・影・下線も一緒に曲げ、曲げた後の行の束を valign で枠に寄せる。",
      "properties": {
        "amount": {
          "description": "強さ（%）。wave は波の高さ（行の束の高さに対する %。-100〜100、負なら逆向き）、\nbulge は真ん中の高さが増える割合（-80〜150。負なら縮む）",
          "format": "double",
          "type": "number"
        },
        "cycles": {
          "default": null,
          "description": "波の数（wave だけ。0.25〜10。既定 1）",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "edge": {
          "anyOf": [
            {
              "$ref": "#/definitions/WarpEdge"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "動かす辺（bulge だけ。既定は上下とも）"
        },
        "style": {
          "allOf": [
            {
              "$ref": "#/definitions/WarpStyle"
            }
          ],
          "description": "曲げ方：`wave`（旗）・`bulge`（膨張）"
        }
      },
      "required": [
        "style",
        "amount"
      ],
      "type": "object"
    },
    "TextWrap": {
      "additionalProperties": false,
      "description": "回り込みの指定（画像・図形などの text_wrap）。流し込みの文章は、要素の枠を `margin` だけ広げた四角を避けて組む。\n行ごとに、四角を避けて残る区間のうち、いちばん広い区間に文字を置く（左右どちらかに寄った画像なら、その反対側）。\n残る区間が狭い（文字 4 字分か、段の幅の 4 分の 1 より狭い）行は空けて、四角の下から続ける。",
      "properties": {
        "margin": {
          "default": 0.0,
          "description": "枠と文章の間の空き（unit。四方に同じだけ）。既定 0",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    },
    "Unit": {
      "description": "座標と大きさの単位。",
      "enum": [
        "mm",
        "pt"
      ],
      "type": "string"
    },
    "VAlign": {
      "description": "上下の寄せ。",
      "oneOf": [
        {
          "const": "top",
          "description": "上寄せ",
          "type": "string"
        },
        {
          "const": "middle",
          "description": "中央",
          "type": "string"
        },
        {
          "const": "bottom",
          "description": "下寄せ",
          "type": "string"
        },
        {
          "const": "distribute",
          "description": "均等割付（縦書きの文字だけ）。どの列も、字と字の間を均等に広げて枠の高さいっぱいにする",
          "type": "string"
        }
      ]
    },
    "VerticalLatin": {
      "description": "縦書きの中の半角英数字の扱い。",
      "oneOf": [
        {
          "const": "rotate",
          "description": "時計回りに 90 度回して横向きに並べる（横倒し）。",
          "type": "string"
        },
        {
          "const": "upright",
          "description": "1 文字ずつ正立させて並べる。",
          "type": "string"
        }
      ]
    },
    "WarpEdge": {
      "description": "膨張で動かす辺。",
      "oneOf": [
        {
          "const": "both",
          "description": "上下とも（真ん中の線を中心に膨らむ）",
          "type": "string"
        },
        {
          "const": "top",
          "description": "上の辺だけ（下の辺はまっすぐ）",
          "type": "string"
        },
        {
          "const": "bottom",
          "description": "下の辺だけ（上の辺はまっすぐ）",
          "type": "string"
        }
      ]
    },
    "WarpStyle": {
      "description": "ワープ（字の形ごと曲げる）の種類。",
      "oneOf": [
        {
          "const": "wave",
          "description": "旗：左から右へ、波のように上下に揺らす",
          "type": "string"
        },
        {
          "const": "bulge",
          "description": "膨張：真ん中を高く（負なら低く）する",
          "type": "string"
        }
      ]
    }
  },
  "description": "PDFBooster 1.0.0 に渡す JSON（PHP の配列）。書き方は https://www.booster-technology.com/pdfbooster/docs",
  "properties": {
    "$schema": {
      "default": null,
      "description": "JSON Schema の場所（エディタで項目の候補を出すため。エンジンは読まない）。",
      "type": [
        "string",
        "null"
      ]
    },
    "bleed": {
      "default": null,
      "description": "白紙のページの、仕上がりの外側に付ける塗り足しの幅（unit の単位。例 3）。用紙を四方にこの幅だけ広げ、\n仕上がり枠（TrimBox）と塗り足しの枠（BleedBox）を書く。座標の原点は仕上がりの左上のまま。\nテンプレートとは一緒に使えない。",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "color_conversion": {
      "anyOf": [
        {
          "$ref": "#/definitions/ColorConversion"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "RGB の画像を CMYK に変換する（ICC プロファイルを使う）。"
    },
    "crop_marks": {
      "default": false,
      "description": "白紙のページに、トンボ（日本式の角トンボとセンタートンボ）を描く。塗り足しの外側に描き、用紙もその分広げる。\nbleed を省くと塗り足しは 3mm。テンプレートとは一緒に使えない。",
      "type": "boolean"
    },
    "debug_boxes": {
      "default": false,
      "description": "true のとき、確認用に各要素の枠を細い線で描く。",
      "type": "boolean"
    },
    "every_page": {
      "anyOf": [
        {
          "$ref": "#/definitions/EveryPage"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "全ページに置く要素（ヘッダー・フッター・ロゴ・「社外秘」など）。表の続きのページやテンプレートのページも含め、\nできあがる PDF のどのページにも、そのページの要素より先に（下に）描く。"
    },
    "field_font": {
      "allOf": [
        {
          "$ref": "#/definitions/FieldFont"
        }
      ],
      "default": "gothic",
      "description": "入力欄（フォーム）に、PDF を開いた人が書き込む文字の字体（gothic・mincho）。\n書き込んだ文字は、PDF を見るソフトがその字体の和文フォントで描く（フォントは埋め込まない）。"
    },
    "fonts": {
      "additionalProperties": {
        "$ref": "#/definitions/FontSpec"
      },
      "default": {},
      "description": "使うフォント。キーは要素から参照する名前。",
      "type": "object"
    },
    "form_flatten": {
      "default": false,
      "description": "差し込んだあと、テンプレートのフォームの入力欄を、ページの絵に固める（書き換えられない普通のページにする）。\n同じテンプレートのページを繰り返して何件も差し込むときや、PDF/X で出すときに使う。",
      "type": "boolean"
    },
    "form_font": {
      "default": null,
      "description": "テンプレートのフォームに差し込む文字（pages の form_values）を描くフォント（fonts のキー）。",
      "type": [
        "string",
        "null"
      ]
    },
    "lang": {
      "default": null,
      "description": "文書の言語（tagged のとき。既定は \"ja\"）。",
      "type": [
        "string",
        "null"
      ]
    },
    "overprint_black": {
      "default": false,
      "description": "墨 100% だけの文字・線・図形を自動で墨ノセ（オーバープリント）にする。",
      "type": "boolean"
    },
    "page_box": {
      "allOf": [
        {
          "$ref": "#/definitions/PageBox"
        }
      ],
      "default": "crop",
      "description": "座標の基準にする枠（テンプレート使用時）。既定は CropBox（なければ MediaBox）。"
    },
    "page_numbering": {
      "anyOf": [
        {
          "$ref": "#/definitions/PageNumbering"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ページ番号（文字の {page}・{pages}）の数え方と書き方（[`PageNumbering`]）。省くと、できあがった PDF の何ページ目かと総ページ数"
    },
    "page_size": {
      "anyOf": [
        {
          "$ref": "#/definitions/Size"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "テンプレートを使わないときのページの大きさ。"
    },
    "pages": {
      "items": {
        "$ref": "#/definitions/PageSpec"
      },
      "type": "array"
    },
    "pdfa": {
      "anyOf": [
        {
          "$ref": "#/definitions/PdfaSpec"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "長期保存用 PDF の規格（PDF/A）で出す。PDF/X とは一緒に使えない。"
    },
    "pdfx": {
      "anyOf": [
        {
          "$ref": "#/definitions/PdfxSpec"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "印刷用 PDF の規格（PDF/X）で出す。"
    },
    "preflight": {
      "anyOf": [
        {
          "$ref": "#/definitions/PreflightSpec"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "印刷前の点検（画像の解像度・総インキ量・細い線）。pdfx を指定すると既定の値で行う。"
    },
    "protection": {
      "anyOf": [
        {
          "$ref": "#/definitions/ProtectionSpec"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "パスワードと権限（AES-256 で暗号化する）。PDF/X・PDF/A とは一緒に使えない。"
    },
    "strict": {
      "default": false,
      "description": "true のとき、フォントにない文字があればエラーにする（既定は警告）。",
      "type": "boolean"
    },
    "styles": {
      "additionalProperties": {
        "$ref": "#/definitions/StyleSpec"
      },
      "default": {},
      "description": "スタイル（名前を付けた書式。DTP ソフトの段落スタイルのように使う）。キーはスタイルの名前で、\n文字・流し込み・表と、流し込みのブロック・表のセルから `\"style\": \"名前\"` で使う。要素に書いた項目が勝つ。",
      "type": "object"
    },
    "tagged": {
      "default": false,
      "description": "タグ付き PDF にする（読み上げソフトのための論理構造。段落・見出し・表・図の代わりの文字・読む順）。\n文字は段落（tag で見出しにもできる）、表は表の構造、画像・グラフ・バーコードは alt があれば図にする。\n罫線・図形・透かし・全ページに置く要素は、読まない飾りにする。",
      "type": "boolean"
    },
    "template": {
      "default": null,
      "description": "下地にするテンプレート PDF。省略時は `page_size` の白紙ページを作る。",
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "default": null,
      "description": "文書の題名（文書の情報に書き、PDF を開いたときに題名を表示する）。",
      "type": [
        "string",
        "null"
      ]
    },
    "unit": {
      "allOf": [
        {
          "$ref": "#/definitions/Unit"
        }
      ],
      "default": "mm",
      "description": "座標と大きさの単位（mm か pt）。文字の大きさなど pt と書いた項目は、unit にかかわらず pt。"
    }
  },
  "required": [
    "pages"
  ],
  "title": "PDFBooster のジョブ",
  "type": "object"
}
