Commit 4a5d789d authored by Krophil's avatar Krophil

partners banner added

parent d400995e
Pipeline #693 passed with stage
in 3 minutes and 6 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment