Skip to content

Setting paragraph style properties #44

@dreme

Description

@dreme

I'd like to create an amended Text Body style which has large font and some extra spacing below each paragraph.

I've worked out how to set the font size as shown below:

s = newdoc.styles
textbody = Style(name="Text Body", family="paragraph")
textbody.addElement(TextProperties(attributes={'fontsize':"18pt"}))
s.addElement(textbody)

However, I can't see how to set the spacing below the paragraph. I'm assuming it would involve using the ParagraphProperties class, but I can't find any documentation for the parameters of this class, particularly how to set the attribute for paragraph spacing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions