A web-based document viewer built with GroupDocs.Viewer for Java and Javalin 4.6 (Kotlin).
Supports viewing 170+ document formats (DOCX, PDF, PPT, XLS, images, CAD, and more) as HTML5 or images. See the full list of supported formats.
- Java 8+ (JDK 1.8+)
git clone https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java.git
cd GroupDocs.Viewer-for-Java/Demos/Javalin
./gradlew runOpen http://localhost:8080/viewer/ in your browser.
Open the project in your IDE, enable Annotation processing in settings, then run the main method in Application.kt.
./gradlew assembleDistDistribution files will be in build/distributions/.
Edit src/main/resources/application.conf to adjust settings. Set licensePath in the config file or use the LIC_PATH environment variable.
| Option | Type | Default | Description |
|---|---|---|---|
filesDirectory |
String | DocumentSamples |
Directory for uploaded and predefined files (absolute or relative path) |
tempDirectory |
String | system temp | Directory for temporary files |
resultDirectory |
String | ResultFiles |
Directory for result files (must exist before startup) |
Note: Without a license, the application runs in evaluation mode. Request a temporary license to test all features.
The MIT License (MIT). See LICENSE for details.
Product Page | Documentation | API Reference | Online Demo | Blog | Free Support | Temporary License