Settings and Properties: Samples


• Change default language:
{
  "settings": {
    "lang": "en-US"
  }
}
dynadocx -d data.json

• Set custom properties:
{
  "properties": {
    "category": "A custom category",
    "creator": "A custom creator",
    "description": "A custom description",
    "revision": 2,
    "keywords": "keyword1, keyword2, keyword3"
  }
}
dynadocx -d data.json

• Set current datetime when generating the document:
{
  "properties": {
    "auto_created_at": true,
    "auto_modified_at": true
  }
}
dynadocx -d data.json

• Set custom settings and custom properties in the same JSON:
{
  "properties": {
    "author": "A custom author",
    "creator": "A custom creator"
  },
  "settings": {
    "hide_grammatical_errors": true,
    "hide_spelling_errors": true
  }
}
dynadocx -d data.json

• Set custom settings and custom properties using two JSON:
{
  "properties": {
    "author": "A custom author",
    "creator": "A custom creator"
  }
}
{
  "settings": {
    "hide_grammatical_errors": true,
    "hide_spelling_errors": "true"
  }
}
dynadocx -d data1.json data2.json

• Change the default language and properties from a template:
{
  "properties": {
    "author": "A custom author",
    "creator": "A custom creator"
  },
  "settings": {
    "lang": "en-US"
  }
}
dynadocx -d data.json -t document.docx
Icon