Hi!
I just tried this with jsreport 4.14.2 and it seems the described behaviour above is now gone. I did this:
async function afterRender(req, res) {
res.content = await jsreport.pdfUtils.addAttachment(res.content, Buffer.from('attachment'), {
name: attachmentName
}, {
pdfAccessibility: {
enabled: true
}
});
res.content = await jsreport.pdfUtils.postprocess(res.content, {
pdfMeta: {
title: 'Report'
},
pdfAccessibility: {
pdfUA: true
}
});
}
My file gets attached to the pdf and a lot of errors are gone (from ~ 1000 down to 9). I found a older ticket asking for pdf/A compliance
Should that work already? Because currently it doesnt. Here is a list of errors that vera validator thinks are (still?) in the rendered file (seems to be issues with attaching a file mostly).
