Created
September 1, 2021 08:17
-
-
Save napo/6c33e44c160c461cbce4ef3019eb5732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `seq 1 15`; | |
do | |
pdftk documento.pdf cat "$i" output "$i.pdf"; | |
done | |
for i in `seq 1 15`; | |
do | |
pdftoppm $i.pdf > $i.ppm; | |
done | |
mkdir signed | |
for i in `seq 1 15`; | |
do | |
convert "$i.ppm" ~/Documents/me/firma.png -density 600 -quality 100 -gravity southeast -geometry +20+20 -composite signed/"$i"_signed.jpg; | |
done | |
pdftk signed/*.pdf cat output documento_firmato.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment