Open vardhan1122 opened 2 years ago
this is my nodejs code, please refere once
const HummusRecipe = require('hummus-recipe'); const pdfDataFile = fs.readFileSync('./downloads/Test.pdf'); const pdfDoc = new HummusRecipe(pdfDataFile, 'protectedPdfFile.pdf'); await pdfDoc .encrypt({ userPassword: '123', ownerPassword: '123', userProtectionFlag: 4 }) .endPDF(); await doc.save('./downloads/TestPdfProtected2.pdf');
this is my nodejs code, please refere once
const HummusRecipe = require('hummus-recipe'); const pdfDataFile = fs.readFileSync('./downloads/Test.pdf'); const pdfDoc = new HummusRecipe(pdfDataFile, 'protectedPdfFile.pdf'); await pdfDoc .encrypt({ userPassword: '123', ownerPassword: '123', userProtectionFlag: 4 }) .endPDF(); await doc.save('./downloads/TestPdfProtected2.pdf');