I would like to stamp sur la first page on every PDF in a folder ( 200 files with spaces)
I have created my stamp on wight A4 PDF with gimp
then do an single succesfull try
Code: Select all
qpdf ./a.pdf --underlay sign.pdf -- ./c.pdf
Code: Select all
find ./ -name '*.pdf' -execdir bash -c 'qpdf $0 --underlay /home/guest/sign.pdf -- ${0/.pdf/-signe.pdf}' {} \;
Code: Select all
find ./ -name '*.pdf' -execdir bash -c 'qpdf $0 --underlay /home/guest/sign.pdf -- ${0/.pdf/-signe.pdf}' {} \;
qpdf: unknown argument the
Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile
For detailed help, run qpdf --help
qpdf: unknown argument little
Usage: qpdf [options] {infile | --empty} [page_selection_options] outfile
For detailed help, run qpdf --help
qpdf: unknown argument house
...
Code: Select all
find ./ -name '*.pdf' -execdir bash -c 'qpdf $0 --underlay /home/guest/sign.pdf -- ${0/.pdf/-signe.pdf}' _ {} \;
Code: Select all
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
open _: No such file or directory
Code: Select all
find ./ -name '*.pdf' -execdir bash -c 'echo $0' {} \;
I get the accurate list
Code: Select all
find ./ -name '*.pdf' -execdir bash -c 'echo $0' {} \;
./01042023 RAPPORT 1.pdf
./01042023 Rapport 2.pdf
./01042023 rapport 3.pdf
...
Cheers