Save the current document.