title: Preflight program for PDFs using PoDoFo or anything else open source?
body: <p>I have to automate a preflight check on PDF documents. The preflight consists of:</p>
  
  <ol>
  <li>Detect the resolution of images in an existing document and change them to 300dpi if they are not already at that resolution.</li>
  <li>Detect the colorspace of images and if not in CMYK, then convert them to CMYK using color profiles.</li>
  <li>Detect whether or not fonts are embedded in an existing PDF document, and correct this problem by substituting fonts. (or drawing font outlines — I'm not sure about this part).</li>
  </ol>
  
  <p>Just wondering if this can be done using PoDoFo or any other open source projects out there. Or if I really need to go order some propriety software between $2K to $6K. My hosting environment is on Linux and supports PHP, Perl, Python, Ruby, Java.</p>
  
  <p>Any ideas?</p>