Get styles: Reference


In order to obtain the styles existing in a DOCX, dynadocx uses the action get_styles with the parameter "-a" and a call to the template to be read:

dynadocx -a get_styles -t document.docx

Styles are returned as a JSON content, arranged by the style type.

The following is an example of a generated JSON:

{
"character":
  [
    "DefaultParagraphFont",
    "HeaderChar",
    "FooterChar",
    "FootnoteTextChar",
    "FootnoteReference",
    "EndnoteTextChar",
    "EndnoteReference",
    "CommentReference",
    "CommentTextChar",
    "CommentSubjectChar",
    "BalloonTextChar"
  ],
"paragraph":
  [
    "Normal",
    "Header",
    "Footer",
    "FootnoteText",
    "EndnoteText",
    "CommentText",
    "CommentSubject",
    "BalloonText"
  ],
"table":
  [
    "TableNormal"
  ]
}
Icon