Example #1
0
def pdf_view(request):
    selected_parameters = request.POST.getlist('selected_params')
    response = HttpResponse(mimetype='application/pdf')
    response['Content-Disposition'] = 'attachment; filename=AquaTestReport.pdf'
    create_pdf.run(response, request,selected_parameters)
    return response
Example #2
0
def pdf_view(request):
    response = HttpResponse(mimetype='application/pdf')
    response['Content-Disposition'] = 'attachment; filename=CommTrackReport.pdf'
    create_pdf.run(response, request)
    return response