# Render text documents as HTML, PDF, and image files This topic describes how to use the GroupDocs.Viewer .NET API (C#) to convert text files to HTML, PDF, PNG, and JPEG formats. [GroupDocs.Viewer...... LoadOptions loadOptions = new LoadOptions(FileType.MD); //...to PDF. using (var viewer = new Viewer(stream, loadOptions))...