var options = { keyLength: 256, password: '12345', outputFile: '<your output name file>', restrictions: { modify: 'none', extract: 'n' } var doc = await qpdf.encrypt(`${fileLocation}.pdf`, options) when we tried the output file to edit, it is editable
var options = {
keyLength: 256,
password: '12345',
outputFile: '',
restrictions: {
modify: 'none',
extract: 'n'
}
var doc = await qpdf.encrypt(
${fileLocation}.pdf, options)when we tried the output file to edit, it is editable