def _small_header(canvas, doc, event, report_title):
canvas.saveState()
canvas.drawImage(LOGO_PATH, 0.45 * inch, PAGE_HEIGHT - inch * 0.75,
height=0.5 * inch, width=1.875*inch)
canvas.setFont('Helvetica-Bold', 16)
canvas.drawString(inch * 2.6, PAGE_HEIGHT - inch * 0.42,
report_title)
canvas.setFont('Helvetica', 13)
canvas.drawString(inch * 2.6, PAGE_HEIGHT - inch * 0.7,
str(event.number) + ' - ' + event.title)
canvas.restoreState()
评论列表
文章目录