To create a PDF file from several JPEG files, use convert command, from imagemagick package:
convert *.jpg resultingFile.pdf