# Render XML documents as HTML, PDF, PNG, and JPEG files This topic describes how to use the GroupDocs.Viewer Java API to convert XML documents to HTML (with and without pagination), PDF documents,......possible ways: {{< tabs "Loading example">}} {{< tab "Java" >}} ```java...some work... } ``` {{< /tab >}} {{< tab "Kotlin">}} ```kitlin //...