# 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 ......RB (Ruby Source Code)](https://docs...Code)](https://docs.fileformat.com/ebook/rb/) * [.RST (reStructuredText File)](https://docs...