# Render text documents as HTML, PDF, and image files This topic describes how to use the GroupDocs.Viewer Java API to convert text files to HTML, PDF, PNG, and JPEG formats. [GroupDocs.Viewer for ...... {{< tabs "example1">}} {{< tab "Java" >}} ```java...view(viewOptions); } ``` {{< /tab >}} {{< /tabs >}} ## Render text files...