title: Create print-ready PDF/X (with bleedbox, trimbox, mediabox, etc) programatically?
body: <p>I was wondering if it is possible to programaticaly create a PDF file with an acceptable quality for the production press, ideally using only open-source libraries.</p>
  
  <p>Right now the process is like this:
  -create texts and images
  -merge them into a postscript file
  -use Acrobat Distiller to convert it to PDF (Acrobat distiller helps you check all the parameters of the PDF)
  -send the PDF to the press</p>
  
  <p>What I want is something like:
  -take all texts and pictures in this folder
  -encode them into the press-ready PDF, something similar to what Distiller produces
  -send them to the press</p>
  
  <p>How would you do that?
  Many thanks...</p>