• Set a background color:
{
"design": {
"page": {
"color": "DEEAF6"
}
}
}
dynadocx -d data.json
• Set page borders:
{
"design": {
"page": {
"borders": {
"color": "F7CAAC",
"offset_from": "page",
"space": 30,
"style": "dotted",
"width": 28
}
}
}
}
dynadocx -d data.json
• Set page borders with custom top and bottom borders:
{
"design": {
"page": {
"borders": {
"color": "F7CAAC",
"offset_from": "page",
"space": 30,
"style": "dotted",
"width": 12,
"border_top": {
"color": "000000",
"style": "dashed",
"width": 24
},
"border_bottom": {
"space": 2,
"style": "double",
"width": 24
}
}
}
}
}
dynadocx -d data.json
• Set columns:
{
"layout": {
"columns": {
"number": 3,
"space": 120
}
}
}
dynadocx -d data.json
• Set custom columns:
{
"layout": {
"columns": {
"columns": [
{
"space": 720,
"width": 6000
},
{
"space": 720,
"width": 2000
}
]
}
}
}
dynadocx -d data.json
• Set page margins:
{
"layout": {
"margins": {
"bottom": 20,
"gutter": 0,
"left": 40,
"right": 40,
"top": 20
}
}
}
dynadocx -d data.json
• Set a preset size:
{
"layout": {
"size": "A3"
}
}
dynadocx -d data.json
• Set a custom layout:
{
"layout": {
"orientation": "landscape",
"height": 11906,
"width": 16838
}
}
dynadocx -d data.json
• Set a background color in a template:
{
"design": {
"page": {
"color": "C8F296"
}
}
}
dynadocx -d data.json -t document.docx