1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-03-31 17:00:25 +00:00

partners banner added

This commit is contained in:
Pierre Brunet 2016-12-19 00:08:17 +01:00
parent d400995e9d
commit 4a5d789d9f
2 changed files with 7 additions and 0 deletions
core/static/core/img
counter

Binary file not shown.

After

(image error) Size: 28 KiB

@ -1092,6 +1092,13 @@ class EticketPDFView(CanViewMixin, DetailView):
renderPDF.draw(d, p, 10.5 * cm - 130, 6.1 * cm)
p.drawCentredString(10.5 * cm, 6 * cm, code)
partners = ImageReader("core/static/core/img/partners.png")
width, height = partners.getSize()
size = max(width, height)
width = width * 2 / 3
height = height * 2 / 3
p.drawImage(partners, 0 * cm, 0 * cm, width, height)
p.showPage()
p.save()
return response