Docsplit is a command-line utility and Ruby library that converts documents into PDFs and breaks them apart into images and text.