descripcion reportes

parent dfca5edd
......@@ -458,10 +458,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
# define the style for our paragraph text
styles = getSampleStyleSheet()
styles2 = getSampleStyleSheet()
styleN = styles['Normal']
styleN.alignment = 1
styleN.fontSize=25
style2 = styles2['Normal']
style2.alignment = 1
style2.fontSize = 15
# Header
im = Image(USERS_PATH + 'header.png', width=300, height=70)
im.hAlign = 'CENTER'
......@@ -473,15 +478,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
story.append(Spacer(1, .60 * inch))
story.append(Paragraph("<strong>"+searchInfo['title']+"</strong>", styleN,))
story.append(Spacer(1, .40 * inch))
story.append(Paragraph("<strong>"+searchInfo['startDate']+" to "+searchInfo['endDate']+"</strong>", styleN,))
story.append(Spacer(1, .40 * inch))
story.append(Paragraph("<strong>Platform: "+searchInfo['platform']+"</strong>", styleN,))
story.append(Paragraph("<strong>("+searchInfo['startDate']+" - "+searchInfo['endDate']+")</strong>", style2,))
story.append(Spacer(1, .60 * inch))
story.append(Paragraph("<strong>Platform: "+searchInfo['platform']+"</strong>", style2,))
story.append(Spacer(1, .40 * inch))
story.append(Paragraph("<strong>Product level: "+searchInfo['productLevel']+"</strong>", styleN,))
story.append(Paragraph("<strong>Product level: "+searchInfo['productLevel']+"</strong>", style2,))
story.append(Spacer(1, .40 * inch))
story.append(Paragraph("<strong>Process:"+searchInfo['process']+"</strong>", styleN,))
story.append(Paragraph("<strong>Process:"+searchInfo['process']+"</strong>", style2,))
story.append(Spacer(1, .40 * inch))
story.append(Paragraph("<strong>Clouds: "+str(searchInfo['clouds'])+" %</strong>", styleN,))
story.append(Paragraph("<strong>Clouds: "+str(searchInfo['clouds'])+" %</strong>", style2,))
story.append(Spacer(1, .40 * inch))
# convert data to paragraph form and then add paragraphs
......
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