Merge pull request #861 from nxglabs/staging

fix: handle password protected pdf
This commit is contained in:
nxglabs
2025-06-18 14:03:05 +00:00
parent b0e0b38e8f
commit cbca22c308
81 changed files with 4906 additions and 2305 deletions
@@ -65,7 +65,7 @@ export default async function generateCertificatebydocId(req) {
const certificate = await GenerateCertificate(doc);
const certificatePdf = await PDFDocument.load(certificate);
const p12 = new P12Signer(P12Buffer, { passphrase: process.env.PASS_PHRASE || null });
// `pdflibAddPlaceholder` is used to add code of only digitial sign in certificate
// `pdflibAddPlaceholder` is used to add code of only digital sign in certificate
pdflibAddPlaceholder({
pdfDoc: certificatePdf,
reason: `Digitally signed by ${eSignName}.`,