Improved qr for scanning

This commit is contained in:
Patrick Alvin Alcala 2025-10-14 12:52:50 +08:00
parent 44ad91dd95
commit f995bd0cbd

View file

@ -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`)
}