简体   繁体   中英

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>'

在此处输入图片说明

ParagraphStyleleading参数更改为更大的值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM