Honor borderless FirmaEC signatures

This commit is contained in:
2026-05-22 11:50:08 -05:00
parent f19f8bc899
commit e67e7aa122
10 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "linkedsign-backend",
"version": "1.2.20",
"version": "1.2.21",
"private": true,
"description": "Initial backend for LinkedSign",
"main": "src/server.js",
+10 -3
View File
@@ -285,9 +285,16 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
// Background
const bgColor = useSoftBackground ? C.bgBlue : C.white;
page.drawRectangle({ x: sx, y: sy, width: sw, height: sh, color: bgColor });
const borderColor = useBorder ? rgb(0.15, 0.15, 0.15) : rgb(0.70, 0.70, 0.72);
const borderWidth = useBorder ? 0.85 : 0.5;
page.drawRectangle({ x: sx, y: sy, width: sw, height: sh, borderColor, borderWidth });
if (useBorder) {
page.drawRectangle({
x: sx,
y: sy,
width: sw,
height: sh,
borderColor: rgb(0.15, 0.15, 0.15),
borderWidth: 0.85,
});
}
// QR image
const qrX = qrOnRight ? sx + sw - qrSize - 4 : sx + 4;