revert questionnaire licenses field position on PDF generation

This commit is contained in:
merelendor 2024-09-25 15:00:43 +03:00
parent 7e1b68be21
commit 95732af478

View File

@ -166,7 +166,7 @@ export default async function handler(req, res)
const page = pdfDoc.getPage(1);
page.drawRectangle({
x: 150,
y: 452,
y: 174,
width: 412,
height: 26,
color: rgb(0.87, 0.87, 0.87),
@ -182,7 +182,7 @@ export default async function handler(req, res)
page.drawText(licenses, {
x: 152,
y: licenses.length > 500 ? 473 : (licenses.length > 400) ? 473 : 471,
y: licenses.length > 500 ? 195 : (licenses.length > 400) ? 195 : 193,
size: licenses.length > 500 ? 4 : (licenses.length > 400) ? 5 : 6,
font: formFont,
color: rgb(0, 0, 0),