Created
December 4, 2018 19:40
-
-
Save aswinpajayan/d530f5c352c43a1f02406af90b63ad2e to your computer and use it in GitHub Desktop.
insert blank pages in a pdf
This file contains hidden or 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
i=0 | |
pdftk A=mailmerged.pdf cat A1-3 output combined.pdf | |
while [ $i -le 116 ] | |
do | |
p1=$(($i*3+1)); | |
p2=$(($i*3+3)); | |
echo "$p1 to $p2" | |
#pdftk A=combined.pdf B=blank.pdf C=mailmerged.pdf cat A B1-1 C$p1-$p2 output combined.pdf | |
echo "A$p1-$p2 B1-1" >> com.txt | |
((i++)) | |
done | |
pdftk A=mailmerged.pdf B=blank.pdf cat `cat com.txt` output combined.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment