diff --git a/lib/zgapdfsigner.js b/lib/zgapdfsigner.js index a0425e0..7a14dbc 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); - pdfdoc = await _this.cyptr.encryptPdf(pdfdoc, encref); + await _this.cyptr.encryptPdf(pdfdoc, encref); z.log("Pdf data has been encrypted."); } }