# Render text documents as HTML, PDF, and image files This topic describes how to use the GroupDocs.Viewer Node.js API to convert text files to HTML, PDF, PNG, and JPEG formats. [GroupDocs.Viewer f...... const loadOptions = new LoadOptions(FileType.MD) // Convert...document to PDF. const viewer = new Viewer("TermsOfService.txt",...