Design and Layout: Reference


Properties and settings are defined with the parameter "-d" and a JSON file:

dynadocx -d data.json

The following is the complete set of values admitted with their default values:

{
  "design": {
    "page": {
      "borders": {
        "color": "auto",
        "display": "",
        "offset_from": "page",
        "space": 24,
        "style": "single",
        "width": "4",
        "border_top": {
          "color": "auto",
          "space": 24,
          "style": "single",
          "width": 4
        },
        "border_right": {
          "color": "auto",
          "space": 24,
          "style": "single",
          "width": 4
        },
        "border_bottom": {
          "color": "auto",
          "space": 24,
          "style": "single",
          "width": 4
        },
        "border_left": {
          "color": "auto",
          "space": 24,
          "style": "single",
          "width": 4
        }
      },
      "color": "",
    }
  },
  "layout": {
    "columns": {
      "number": 2,
      "space": 720,
      "columns": [
        {
          "space": 720,
          "width": 2000
        },
        {
          "space": 720,
          "width": 2000
        }
      ]
    },
    "height": 15840,
    "margins": {
      "bottom": 0,
      "gutter": 0,
      "header": 0,
      "footer": 0,
      "left": 0,
      "right": 0,
      "top": 0
    },
    "size": "A4",
    "orientation": "portrait",
    "width": 12240
  }
}

Detail of the available options

design
key value
borders Page borders. It may be defined globally with key borders or individually with border_top, border_right, border_bottom and border_left.
color Backgroud color and border color. HEX value without #.
display Pages to display the border: allPages, firstPage, notFirstPage.
offset_from How the relative positioning of the borders are calculated: page, text.
space Spacing offset. Specified in points.
style Border style: single, dashDotStroked, dashed, dashSmallGap, dotDash, dotDotDash, dotted, double, doubleWave, inset, nil, none, outset, thick, thickThinLargeGap, thickThinMediumGap, thickThinSmallGap, thinThickLargeGap, thinThickMediumGap, thinThickSmallGap, thinThickThinLargeGap, thinThickThinMediumGap, thinThickThinSmallGap, threeDEmboss, threeDEngrave, triple, wave.
width Border width. From 2 to 96. Specified in eighths of a point.
layout
key value
columns Section columns.
Columns may have or have not the same size. The number key states the number. The space key sets the space after the column in twips (twentieths of a point). When assigning different sizes for columns, it specifies a value per column, stating the space and width values in twips (twentieths of a point).
height Section height. Specified in twips (twentieths of a point).
margins Section margins: Specified in twips (twentieths of a point).
orientation Section orientation: landscape, portrait.
size Preset sizes: A4, A4-landscape, A3, A3-landscape, letter, letter-landscape, legal, legal-landscape. These preset sizes can be customized using the following keys: height, width, orientation and margin.
width Section width. Specified in twips (twentieths of a point).
Icon