Storing scanned document in the document server