diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-08-25 23:25:59 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-08-25 23:25:59 +0200 |
commit | 455aebf298adc6f601a215c7dafc78c79b889db5 (patch) | |
tree | 30ea6e1d284230585de77f3ea5c55cd01e2914db /stamp.sh | |
parent | f45656a556b0918c4c8c4c6077381e29273b62ab (diff) |
Added intr and footer
Diffstat (limited to 'stamp.sh')
-rwxr-xr-x | stamp.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/stamp.sh b/stamp.sh new file mode 100755 index 0000000..67cc848 --- /dev/null +++ b/stamp.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +input=$1 +watermark=$2 +output=$3 +abl=/tmp/all_but_first.pdf +first=/tmp/first.pdf +first_stamped=/tmp/first_stamped.pdf + +# detach +pdftk $1 cat 2-r1 output $abl +pdftk $1 cat 1 output $first +#Stamp +pdftk $first stamp $watermark output $first_stamped +#Attach +pdftk $first_stamped $abl cat output $output |