How to complete a document