I am training to merge multiple files using ghostscript
, nevertheless the problem arises because the pdf files are in different paper size.
So far, I've found this one command:
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf file1.pdf file2.pdf file3.pdf [...] lastfile.pdf
With same paper size it works, otherwise it does not.
Any suggestion are welcome?
Thanks for reading :)