index_pdf

This commit is contained in:
alazo 2017-01-31 15:29:44 +01:00
parent bb96f7d517
commit 0a04b08308
4 changed files with 19 additions and 16 deletions

View file

@ -176,12 +176,12 @@ class PDFResponse(HttpResponse):
self['Content-Disposition'] = 'attachment; filename={0}'.format(filename)
self['Content-Type'] = 'charset=utf-8'
self.story = []
image = Image(settings.MEDIA_ROOT + '/media/header.png', width=499, height=99)
image = Image(settings.MEDIA_ROOT + '/media/header.png', width=480, height=80)
image.hAlign = 0
self.story.append(image)
self.story.append(Spacer(0,1*cm))
#self.story.append(Spacer(0,1*cm))
data = [['Filières EDS', title]]
if portrait: