If I want to combine some scans into one PDF file, I do this:
pdfjoin --a4paper --fitpaper false --rotateoversize false scan01.png scan02.png
This gives you a PDF document with a DIN-A4 page size, where each png file is centered on its own page. Images that are too large for a single DIN-A4 page are resized proportionally to one page. Smaller images do not change (do not enlarge).
You must name all png files on the command line, but you can also use wildcards to, for example, merge all png files in the current directory:
pdfjoin --a4paper --fitpaper false --rotateoversize false *.png
The pdfjoin team is part of the PDFjam, as stated in Jeremy Willcock's answer. Therefore, you will most likely have to install a package called pdfjam with your distros package manager. PDFjam can use png files as input from version 2.07 released in 2010-11-13.
Pascal Rosin Jul 01 '13 at 19:18 2013-07-01 19:18
source share