How to make a copy of the document