Ghostscript tricks

Control the output page size

It is possible to override the page size using the FIXEDMEDIA flag

Put multiple pdf files to one combined output

gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=combined.pdf in1.pdf in2.pdf in3.pdf