gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=thermo.pdf exam1.pdf exam3.pdf