From 455aebf298adc6f601a215c7dafc78c79b889db5 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Thu, 25 Aug 2022 23:25:59 +0200 Subject: Added intr and footer --- stamp.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 stamp.sh (limited to 'stamp.sh') 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 -- cgit v1.2.3