title: How to create a multi-page PDF, from directory of jpegs with PHP
body: <p>I have a directory of 50 jpegs, 72 dpi, RGB, varying sizes.</p>
  
  <p>I want to create a 50-page PDF 8x10, each image 7x9 max in either direction, 72dpi, RGB. Then a .epub, then a .mobi.</p>
  
  <p>I want to create a second 50-page PDF, 8x6, each image now 7x5 max in either direction, 300dpi, CMYK, rot 90 Counter clockwise (-90?).</p>
  
  <p>I have done this 200 times by hand since 2007 in PS, ID, Acrobat, etc. 3-4 hours to do each. I'm curious as how to approach designing a PHP script to do this. I've used PHP GD to manipulate jpegs (crop and resize) for web pages, but not to create multi-page PDFs.</p>
  
  <p>I'm thinking that all of this has grown up a bit since 2007, and I should be able to in PHP.</p>