[gull] création d'un pdf depuis un autre pdf et d'un csv
BRINER Cédric
briner at infomaniak.ch
Mon Oct 2 22:03:10 CEST 2017
Yooo.
j'ai trouvé la solution:
#!/bin/bash
i=0
mkdir build
rm build/*
cat destinataire_nb.csv \
| while read dest nb; do
(( i++ ))
convert intercalaire.pdf -gravity North -pointsize 30 -annotate
+0+100 "$dest" build/"$(printf "%04d" $i)_${dest}.pdf"
for j in seq $nb; do
(( i++ ))
cp cartable.pdf build/"$(printf "%04d" $i)_cartable.pdf"
done
done
pdfunite build/* whole_cartable.pdf
More information about the gull
mailing list