在reportlab中如何把styles['normal']添加到Paragraph上
在reportlab中,可以通过使用Paragraph类中的"style"参数来为段落添加样式。例如,如果你想在一个段落上使用"normal"样式,可以这样做:from reportlab.lib.styles import getSampleStyleSheetstyles = getSampleStyleSheet()p = Paragraph("This is a paragraph ...
·
在reportlab中,可以通过使用Paragraph类中的"style"参数来为段落添加样式。例如,如果你想在一个段落上使用"normal"样式,可以这样做:
from reportlab.lib.styles import getSampleStyleSheet
styles = getSampleStyleSheet()
p = Paragraph("This is a paragraph with normal style.", style=styles["Normal"])
更多推荐
所有评论(0)