revert questionnaire licenses field position on PDF generation
This commit is contained in:
parent
7e1b68be21
commit
95732af478
@ -166,7 +166,7 @@ export default async function handler(req, res)
|
|||||||
const page = pdfDoc.getPage(1);
|
const page = pdfDoc.getPage(1);
|
||||||
page.drawRectangle({
|
page.drawRectangle({
|
||||||
x: 150,
|
x: 150,
|
||||||
y: 452,
|
y: 174,
|
||||||
width: 412,
|
width: 412,
|
||||||
height: 26,
|
height: 26,
|
||||||
color: rgb(0.87, 0.87, 0.87),
|
color: rgb(0.87, 0.87, 0.87),
|
||||||
@ -182,7 +182,7 @@ export default async function handler(req, res)
|
|||||||
|
|
||||||
page.drawText(licenses, {
|
page.drawText(licenses, {
|
||||||
x: 152,
|
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,
|
size: licenses.length > 500 ? 4 : (licenses.length > 400) ? 5 : 6,
|
||||||
font: formFont,
|
font: formFont,
|
||||||
color: rgb(0, 0, 0),
|
color: rgb(0, 0, 0),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user