Convert

%toc

Stuff

Convert jpegs to a pdf and reduce the quality and size:

convert -quality 50 *.jpg output.pdf

-colorspace Gray

should make it even smaller