1

How can I add a heading level to text with docxtpl?

Can I do something like this: ?

rt = RichText()
rt.add('Headername', level=1)

mozway
  • 194,879
  • 13
  • 39
  • 75
Johs
  • 73
  • 1
  • 7

1 Answers1

0

The simplest way to achieve this is just to adjust the font size of your {{ Headername }} expression in the template document:

screenshot of template

p_sutherland
  • 471
  • 1
  • 11
  • 21