Add FirmaEC PDF render trace log in 1.2.34

This commit is contained in:
2026-05-22 16:39:46 -05:00
parent 99a5350008
commit 848441d593
9 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "linkedsign-backend",
"version": "1.2.33",
"version": "1.2.34",
"private": true,
"description": "Initial backend for LinkedSign",
"main": "src/server.js",
@@ -362,6 +362,14 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
// Name — bold, uppercase, word-wrapped up to 2 lines
const nameSize = 8.5;
const nameLines = getFirmaEcNameLines(signerName, fBold, nameSize, textW);
console.info('[FIRMAEC_PDF_RENDER]', JSON.stringify({
signerName,
qrPosition,
qrBackground,
qrBorder,
nameLines,
rect: { x: sx, y: sy, width: sw, height: sh },
}));
nameLines.forEach((line, i) => {
page.drawText(line, { x: textX, y: sy + sh - 34 - (i * 13), size: nameSize, font: fBold, color: rgb(0.05, 0.05, 0.07) });
});