Update kitchen_counter/lpp/certificate/createCertificate.py
moved create certificated from beta direct
This commit is contained in:
parent
3670741456
commit
f0c76bd05b
|
@ -45,13 +45,15 @@ def certificateGenrate(name,file_from,Hash,projectname="NAN",matic="0"):
|
||||||
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
|
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
|
||||||
html = template.render(context)
|
html = template.render(context)
|
||||||
options = {
|
options = {
|
||||||
'page-size': 'A5',
|
'page-size': 'A4',
|
||||||
'zoom': 3.5,
|
'zoom': 12.5,
|
||||||
'margin-top': '0.0in',
|
'margin-top': '0.0in',
|
||||||
'margin-right': '0.0in',
|
'margin-right': '0.0in',
|
||||||
'margin-bottom': '0.0in',
|
'margin-bottom': '0.0in',
|
||||||
'margin-left': '0.0in',
|
'margin-left': '0.0in',
|
||||||
'enable-local-file-access': '',
|
'enable-local-file-access': '',
|
||||||
|
'orientation': 'Landscape',
|
||||||
|
'page-height': '11in',
|
||||||
}
|
}
|
||||||
pdfkit.from_string(
|
pdfkit.from_string(
|
||||||
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)
|
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)
|
||||||
|
|
Loading…
Reference in New Issue