refactor: update PDF seal text, improve CCSP logging, and add signed PDF response aliases

This commit is contained in:
Claudecio Martins
2026-10-11 20:11:45 -03:00
parent 994a27886e
commit 2a50704a7f
6 changed files with 36 additions and 6 deletions
+4 -3
View File
@@ -1250,11 +1250,12 @@
pdfAlert.className = 'alert alert-success';
pdfAlert.textContent = '✓ Documento PDF assinado com sucesso via PAdES (ISO 32000)!';
currentSignedPdfBase64 = result.signed_pdf;
const signedPdfBase64 = result.signedPdf || result.signed_pdf || '';
currentSignedPdfBase64 = signedPdfBase64;
pdfResultCard.style.display = 'block';
pdfResultSize.textContent = (result.signed_pdf.length * 0.75 / 1024).toFixed(1) + ' KB';
pdfResultSize.textContent = (signedPdfBase64.length * 0.75 / 1024).toFixed(1) + ' KB';
pdfResultSha256.textContent = result.sha256 || 'Calculado com sucesso';
pdfResultBase64.textContent = result.signed_pdf;
pdfResultBase64.textContent = signedPdfBase64;
pdfResultCard.scrollIntoView({ behavior: 'smooth' });
} catch (err) {
pdfAlert.className = 'alert alert-error';