Leaving it up to the clients of the API to handle converting InputStreams to temporary files.  Xpdf only works on PDF files, so this does not belong in the API for now.