#!/bin/bash
#-- Necessite pdfjam

case $# in
   0) echo "Syntaxe : pdf2en1 <file.pdf>";;
   1) nom_noext=`echo $1 | sed 's/\(.*\)\.[^\.]\+$/\1/'` ;
      #- /usr/bin/pdfjam --suffix nup --nup '2x1' --landscape --outfile DOC-sujet_2p.pdf -- DOC-sujet.pdf - ;
      bash pdfnup -o ${nom_noext}_2p.pdf ${nom_noext}.pdf ;;
   *) echo "Syntaxe : pdf2en1 <file.pdf>";;
esac
