starting to generate the document.