Created
August 2, 2016 14:44
-
-
Save jakeydevs/550373a52b3163554d5396c46dc0b31d to your computer and use it in GitHub Desktop.
Duplicates a 1 page PDF file 10 times
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
#!/bin/bash | |
for i in {2..10} | |
do | |
./pdftk 1.pdf $i.pdf cat output $(($i+1)).pdf | |
rm $i.pdf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PDF that we are duplicating should be named 1.pdf. Make sure the PDF that you need to duplicate is duplicated once as 2.pdf then run!