genere devis en pdf

This commit is contained in:
2020-11-11 15:05:59 +01:00
parent 6bc9d34fde
commit dab24387a2
10 changed files with 173 additions and 130 deletions

View File

@@ -585,12 +585,16 @@ def rdf_view(request):
photos2 = get_photos(request, nodossier, norapport, 2)
if 'form.generate' in request.params:
footer_url = request.static_url('mondumas:static/img/footer_PL.html')
# import pdb;pdb.set_trace()
options = {
'page-size': 'A4',
'margin-top': '0.65in',
'margin-right': '0.75in',
'margin-bottom': '0.65in',
'margin-left': '0.75in',
'margin-top': '2cm',
'margin-right': '2cm',
'margin-bottom': '3cm',
'margin-left': '2cm',
'footer-font-size':'7',
'footer-right': '[page] of [topage]',
}
# créer le répertoire du rapport s'il n'existe pas encore