Skip to content

Instantly share code, notes, and snippets.

@jakeydevs
Created August 2, 2016 14:44
Show Gist options
  • Save jakeydevs/550373a52b3163554d5396c46dc0b31d to your computer and use it in GitHub Desktop.
Save jakeydevs/550373a52b3163554d5396c46dc0b31d to your computer and use it in GitHub Desktop.
Duplicates a 1 page PDF file 10 times
#!/bin/bash
for i in {2..10}
do
./pdftk 1.pdf $i.pdf cat output $(($i+1)).pdf
rm $i.pdf
done
@jakeydevs
Copy link
Author

jakeydevs commented Aug 2, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment