Resize pdf papersize in ubuntu

To resize the papersize of a pdf file in Ubuntu, you can run this command:

$ pdfjoin infilename.pdf --paper a4paper --fitpaper false --outfile outfilename.pdf