Text with options

Styles set in the template, such as font color, size, and shape border color, are carried over to the render output. However, you can override styles for each of your placeholders by using an object instead of a string to specify options.

Reference: the Text object · the Styles object

Download: input.zip · output.pptx

template.pptx

1
template.pptx slide 1

output.pptx

1
output.pptx slide 1

data.json

{
  "slides": [
    {
      "template": 1,
      "text1": {
        "type": "text",
        "value": "Override styles by providing options.",
        "styles": {
          "font": {
            "size": 28,
            "color": "#000000",
            "underline": true,
            "italic": true
          }
        }
      },
      "text2": {
        "type": "text",
        "value": "You can create hyperlinks as well.",
        "hyperlink": "https://slidepack.io"
      }
    }
  ]
}