Bash script to create a booklet out of a pdf