qpdf icon indicating copy to clipboard operation
qpdf copied to clipboard

Linearize multiple input files at once

Open Voralberg opened this issue 7 years ago • 1 comments

Good morning, Is there a way to add the possibility to linearize multiple input files, in one directory, in output with the same name with a simple command? Something like: qpdf --linearize *.pdf (something?) Maybe there is a way, in that case I apology for this issues, that is simple and does not involve strange bash script that I am not aware of.

Thanks

Voralberg avatar Aug 05 '19 08:08 Voralberg

You can do something like

mkdir out
for i in *.pdf; do qpdf --linearize $i out/$i; done

For each PDF file in your directory, a file of the same name in the out subdirectory will be linearized. This is not something qpdf supports directly or will support.

Please comment or reopen if you have any questions. Thanks.

jberkenbilt avatar Aug 05 '19 17:08 jberkenbilt