Converts a PDF to DIN A4 paper size and centers the content of the input file on the new page without resizing it.
pdfjam --outfile file_a4.pdf --frame true --scale 1.0 --noautoscale true --paper a4paper file.pdf
Needs package “texlive-extra-utils” on Debian.