Update kitchen_counter/lpp/certificate/createCertificate.py

moved create certificated from beta direct
This commit is contained in:
paveenpaul 2024-11-16 11:12:57 +00:00
parent 3670741456
commit f0c76bd05b
1 changed files with 4 additions and 2 deletions

View File

@ -45,13 +45,15 @@ def certificateGenrate(name,file_from,Hash,projectname="NAN",matic="0"):
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
html = template.render(context)
options = {
'page-size': 'A5',
'zoom': 3.5,
'page-size': 'A4',
'zoom': 12.5,
'margin-top': '0.0in',
'margin-right': '0.0in',
'margin-bottom': '0.0in',
'margin-left': '0.0in',
'enable-local-file-access': '',
'orientation': 'Landscape',
'page-height': '11in',
}
pdfkit.from_string(
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)