Merge pull request #217 from overleaf/sk-qpdf-newline

Add flag to qpdf, to preserve PDF/A compliance
This commit is contained in:
Jakob Ackermann
2021-03-31 10:33:16 +02:00
committed by GitHub

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')