pdftk input.pdf cat 2-4 output out1.pdf
pdfunite input1.pdf input2.pdf output.pdf
pdfjam --outfile out.pdf --paper a5paper in.pdf
jhead -nIMG_%Y%m%d__%H%M%S *.JPG