def _add_notes(self, canvas):
"""
This is designed to be the last element on the page.
Don't move it or stuff will break
"""
start_posn = self.start_posn
start_posn = self.start_posn
canvas.setFillColor(colors.blue)
canvas.setFont('Helvetica', 10)
canvas.drawString(0.5*inch, start_posn,
'Section E - Registration Notes')
canvas.setFillColor(colors.black)
canvas.rect(0.5*inch, 0.75*inch,
PAGE_WIDTH-inch, start_posn-0.85*inch)
style_sheet = getSampleStyleSheet()
style = style_sheet['BodyText']
para = Paragraph(self.details['registration_notes'], style)
h=para.wrap(7.1 * inch, start_posn-0.65*inch)[1]
para.drawOn(canvas, 0.7 * inch, start_posn-h-0.2*inch)
评论列表
文章目录