Skip to content Skip to sidebar Skip to footer

Reportlab - Listflowable, Generate Listitem From Given List Of Strings

This is my first StackOverflow post so I would like to apologize if I have made any markup mistakes or anything similar. This is the current project I am working on: I am developin

Solution 1:

I figured out how to do this dynamically thanks to a kind user on #python @ irc.freenode.org.

The following code is tested and works.

def makeBulletList(list):
    styles=getSampleStyleSheet()
    style=styles['Normal']
    table=ListFlowable([ListItem(Paragraph(x, style), leftIndent=35, bulletColor='black', value='circle') for x in list], bulletType='bullet')
    return table

Post a Comment for "Reportlab - Listflowable, Generate Listitem From Given List Of Strings"