Converting a document to a picture