From 4bdbeabaa2e0084f554515388abd16743bfda61b Mon Sep 17 00:00:00 2001 From: Th3G33k <4394090+Th3G33k@users.noreply.github.com> Date: Mon, 8 Sep 2025 08:57:06 -1000 Subject: [PATCH] Update zgapdfsigner.js - fix signAndProtect --- lib/zgapdfsigner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zgapdfsigner.js b/lib/zgapdfsigner.js index 7a14dbc..a0425e0 100644 --- a/lib/zgapdfsigner.js +++ b/lib/zgapdfsigner.js @@ -430,7 +430,7 @@ z.PdfSigner = class{ } /** @type {Zga.PdfCryptor} */ _this.cyptr = new z.PdfCryptor(cypopt); - await _this.cyptr.encryptPdf(pdfdoc, encref); + pdfdoc = await _this.cyptr.encryptPdf(pdfdoc, encref); z.log("Pdf data has been encrypted."); } }