Added ability to pass poppler a file handle