diff --git a/kitchen_counter/lpp/certificate/createCertificate.py b/kitchen_counter/lpp/certificate/createCertificate.py index 8400497..83b550b 100755 --- a/kitchen_counter/lpp/certificate/createCertificate.py +++ b/kitchen_counter/lpp/certificate/createCertificate.py @@ -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)