Amend a document file.