Merge jpgs into pdf with ImageMagic
ImageMagic is a great tool allowing to merge images (it is only one of its many features). Simply to do that execute the command (of course on system with ImageMagic installed):
convert /path/to/image(s) /path/to/outputfile
An example
convert * out.pdf
where * means all files in the current directory
