From 95732af47898256890e57ca52101d4ef9b3fccb2 Mon Sep 17 00:00:00 2001 From: merelendor Date: Wed, 25 Sep 2024 15:00:43 +0300 Subject: [PATCH] revert questionnaire licenses field position on PDF generation --- pages/api/questionnaire/download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/questionnaire/download.js b/pages/api/questionnaire/download.js index 201a27a..54d3ed8 100644 --- a/pages/api/questionnaire/download.js +++ b/pages/api/questionnaire/download.js @@ -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),