Remove FirmaEC debug markers and document backend restart

This commit is contained in:
2026-05-22 16:59:05 -05:00
parent 848441d593
commit 8d17393d5f
8 changed files with 127 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "linkedsign-backend",
"version": "1.2.34",
"version": "1.2.35",
"private": true,
"description": "Initial backend for LinkedSign",
"main": "src/server.js",
+2 -11
View File
@@ -356,24 +356,15 @@ async function drawStyleFirmaEC(pdfDoc, page, sx, sy, sw, sh, { signerName, veri
const textX = qrOnRight ? sx + 6 : divX + 5;
const textW = sw - qrSize - 18;
page.drawText('0 Validar unicamente en FirmaEC.', { x: textX, y: sy + sh - 12, size: 6, font: fReg, color: rgb(0.12, 0.12, 0.14) });
page.drawText('0 Firmado electronicamente por:', { x: textX, y: sy + sh - 21, size: 6, font: fReg, color: rgb(0.12, 0.12, 0.14) });
page.drawText('Validar unicamente en FirmaEC.', { x: textX, y: sy + sh - 12, size: 6, font: fReg, color: rgb(0.12, 0.12, 0.14) });
page.drawText('Firmado electronicamente por:', { x: textX, y: sy + sh - 21, size: 6, font: fReg, color: rgb(0.12, 0.12, 0.14) });
// 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) });
});
page.drawText('prueba', { x: textX, y: sy + 8, size: 6, font: fReg, color: rgb(0.18, 0.18, 0.18) });
}
// ── Main sign function ─────────────────────────────────────────────────────────