Search code examples
pythonpdfreportlab

ReportLab text overlapping


I am completely new to reportlab pdf creation. I am trying to print a few lines and this is the output I get. How do I increase the gap between lines?

doc = SimpleDocTemplate("form.pdf", pagesize=(3.93*inch, 5.77*inch), rightMargin=10,leftMargin=10, topMargin=1.67*inch, bottomMargin=0.77*inch)
Story=[]

styles=getSampleStyleSheet()
styles.add(ParagraphStyle(name='Center', alignment=TA_CENTER))
styles.wordWrap = 'LTR'

ptext = '<font size=18 face=Vera-Bold>We would like to welcome you We would like to welcome you</font>'

enter image description here


Solution

  • Change the leading parameter of ParagraphStyle to something larger.