# 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 ......replaced with the current page number in the output file names. HtmlViewOptions...replaced with the current page number and resource name, respectively...