The fix should be part of the latest release.
The script adding an attachment should look like this
const jsreport = require('jsreport-proxy')
async function afterRender(req, res) {
res.content = await jsreport.pdfUtils.addAttachment(res.content, Buffer.from('hello'),
name: 'my attachment'
}, {
pdfAccessibility: {
enabled: true
}
})
res.content = await jsreport.pdfUtils.postprocess(res.content, {
pdfAccessibility: {
pdfUA: true,
enabled: true
}
})
}
