Converts text to a formatted Word document.