Fix borderless FirmaEC rendering and bump to 1.2.22

This commit is contained in:
2026-05-22 12:02:44 -05:00
parent e67e7aa122
commit 2a0f272af1
13 changed files with 83 additions and 22 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "linkedsign-backend",
"version": "1.2.21",
"version": "1.2.22",
"private": true,
"description": "Initial backend for LinkedSign",
"main": "src/server.js",
@@ -301,9 +301,11 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
const qrY = sy + (sh - qrSize) / 2;
page.drawImage(qrImage, { x: qrX, y: qrY, width: qrSize, height: qrSize });
// Vertical divider
// Vertical divider belongs to the bordered variant only.
const divX = qrOnRight ? qrX - 4 : sx + qrSize + 8;
page.drawLine({ start: { x: divX, y: sy + 6 }, end: { x: divX, y: sy + sh - 6 }, thickness: 0.5, color: rgb(0.55, 0.55, 0.58) });
if (useBorder) {
page.drawLine({ start: { x: divX, y: sy + 6 }, end: { x: divX, y: sy + sh - 6 }, thickness: 0.5, color: rgb(0.55, 0.55, 0.58) });
}
// Text column
const textX = qrOnRight ? sx + 6 : divX + 5;