Create a document.