This topic describes how to use the GroupDocs.Viewer .NET API (C#) to convert text files to HTML, PDF, PNG, and JPEG formats....the following document types: TXT, CS, and VB. For other file types...new Viewer ( "TermsOfService.txt" )) { // Convert the text file...