From f995bd0cbdc26b4cb481134597dc4929faa597f9 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Tue, 14 Oct 2025 12:52:50 +0800 Subject: [PATCH] Improved qr for scanning --- src/utils/functions/createPdf.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/utils/functions/createPdf.ts b/src/utils/functions/createPdf.ts index b9dffc7..146a592 100644 --- a/src/utils/functions/createPdf.ts +++ b/src/utils/functions/createPdf.ts @@ -215,12 +215,12 @@ export default async () => { doc.text('Assessed By :', 16, 108) doc.text('Approved By :', 142, 108) - doc.text(ASSESSOR, 16, 128) - doc.text(APPROVER, 142, 128) + doc.text(ASSESSOR, 16, 126) + doc.text(APPROVER, 142, 126) doc.setFont('arial', 'normal') doc.setFontSize(6) - doc.text('Officer-in-Charge', 154, 132) + doc.text('Officer-in-Charge', 154, 129) // doc.text(CODE, 76, 96) doc.setFont('arial-bold', 'bold') @@ -229,20 +229,20 @@ export default async () => { const note = doc.splitTextToSize('Note: The 72 Hours Transaction Policy of the City Mayor, shall commence upon submission of the Bureau of Fire Protection clearance/certificate and other requirement stated in the notice to comply to be issued by this office.', 185) doc.text(note, 16, 144) - doc.addImage(_signature.get(), 'PNG', 30, 112, 10, 5.9, 'signature', 'NONE', 0) + doc.addImage(_signature.get(), 'PNG', 30, 110, 10, 5.9, 'signature', 'NONE', 0) doc.setFont('arial', 'normal') doc.setFontSize(4) - doc.text('Digitally signed by :', 30, 120) - doc.text(ASSESSOR, 30, 122) - doc.text('Date: ' + dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), 30, 124) + doc.text('Digitally signed by :', 30, 118) + doc.text(ASSESSOR, 30, 120) + doc.text('Date: ' + dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), 30, 122) - doc.addImage(_signature.get(), 'PNG', 156, 112, 10, 5.9, 'signature', 'NONE', 0) - doc.text('Digitally signed by :', 156, 120) - doc.text(APPROVER, 156, 122) - doc.text('Date: ' + dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), 156, 124) + doc.addImage(_signature.get(), 'PNG', 156, 110, 10, 5.9, 'signature', 'NONE', 0) + doc.text('Digitally signed by :', 156, 118) + doc.text(APPROVER, 156, 120) + doc.text('Date: ' + dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), 156, 122) doc.addImage(assessorQr, 'PNG', 16, 110, 14, 14, 'assessorQr', 'NONE', 0) doc.addImage(approverQr, 'PNG', 142, 110, 14, 14, 'approverQr', 'NONE', 0) - doc.save(`OP-${APPLICATION}`) + doc.save(`OP-${APPLICATION}.pdf`) }