To create a PDF file from several JPEG files, use convert command, from imagemagick package:
convert *.jpg resultingFile.pdf
If you can read English, check the English part of the site.