Add flag to qpdf, to preserve PDF/A compliance

This commit is contained in:
Shane Kilkelly 2021-03-19 11:35:59 +00:00
parent 0e1da3fd0d
commit 072d0a9dab

View file

@ -71,7 +71,7 @@ module.exports = OutputFileOptimiser = {
callback = function (error) {}
}
const tmpOutput = dst + '.opt'
const args = ['--linearize', src, tmpOutput]
const args = ['--linearize', '--newline-before-endstream', src, tmpOutput]
logger.log({ args }, 'running qpdf command')
const timer = new Metrics.Timer('qpdf')