|
| 1 | + |
| 2 | +# GroupDocs.Conversion for Java Ktor Example |
| 3 | +New GroupDocs.Conversion for Java Ktor UI Example |
| 4 | +###### version 23.5 |
| 5 | + |
| 6 | +[](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java-Spring/blob/master/LICENSE) |
| 7 | + |
| 8 | +## System Requirements |
| 9 | +- Java 11+ (JDK 11+) |
| 10 | + |
| 11 | + |
| 12 | +## Compare documents with Java API |
| 13 | + |
| 14 | +**GroupDocs.Conversion for Java** is a library that allows you to **compare PDF, DOCX, PPT, XLS,** and over 90 other document formats. With GroupDocs.Conversion for Java you will be able to compare two or more files, perform style and text Conversion and generate a detailed report with changes. |
| 15 | + |
| 16 | +This application allows you to compare multiple documents and can be used as a standalone application or integrated as part of your project. |
| 17 | + |
| 18 | +**Note:** without a license application will run in trial mode, purchase [GroupDocs.Conversion for Java license](https://purchase.groupdocs.com/order-online-step-1-of-8.aspx) or request [GroupDocs.Conversion for Java temporary license](https://purchase.groupdocs.com/temporary-license). |
| 19 | + |
| 20 | + |
| 21 | +## Demo Video |
| 22 | + |
| 23 | +<p align="center"> |
| 24 | + <a title="Document Conversion for JAVA " href="https://www.youtube.com/watch?v=82RuvtV2qpw"> |
| 25 | + <img src="https://raw.githubusercontent.com/groupdocs-Conversion/groupdocs-Conversion.github.io/master/resources/image/Conversion.gif" width="100%" style="width:100%;"> |
| 26 | + </a> |
| 27 | +</p> |
| 28 | + |
| 29 | + |
| 30 | +## Features |
| 31 | +#### GroupDocs.Conversion |
| 32 | +- Clean, modern and intuitive design |
| 33 | +- Easily switchable colour theme (create your own colour theme in 5 minutes) |
| 34 | +- Responsive design |
| 35 | +- Mobile support (open application on any mobile device) |
| 36 | +- HTML and image modes |
| 37 | +- Fully customizable navigation panel |
| 38 | +- Compare documents |
| 39 | +- Multi-compare several documents |
| 40 | +- Compare password protected documents |
| 41 | +- Upload documents |
| 42 | +- Display clearly visible differences |
| 43 | +- Download Conversion results |
| 44 | +- Print Conversion results |
| 45 | +- Smooth document scrolling |
| 46 | +- Preload pages for faster document rendering |
| 47 | +- Multi-language support for displaying errors |
| 48 | +- Cross-browser support (Safari, Chrome, Opera, Firefox) |
| 49 | +- Cross-platform support (Windows, Linux, MacOS) |
| 50 | + |
| 51 | + |
| 52 | +## How to run |
| 53 | + |
| 54 | +You can run this sample by one of following methods |
| 55 | + |
| 56 | + |
| 57 | +#### Run using IDE |
| 58 | + |
| 59 | +Download [source code](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/releases/download/v23.5/groupdocs-Conversion-ktor-23.5.0.zip) from github or clone this repository. |
| 60 | + |
| 61 | +```bash |
| 62 | +git clone https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java.git |
| 63 | +cd GroupDocs.Conversion-for-Java/Demos/Ktor |
| 64 | +``` |
| 65 | +Open project in IDE. Open `Application.kt` file and run `main` method inside it. Then open [http://localhost:8080/Conversion/](http://localhost:8080/Conversion/) in your favorite browser. |
| 66 | + |
| 67 | +#### Run from command line |
| 68 | + |
| 69 | +Download [source code](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/archive/refs/heads/master.zip) from github. |
| 70 | + |
| 71 | +Alternatively you can clone this repository using next command |
| 72 | +```bash |
| 73 | +git clone https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java.git |
| 74 | +``` |
| 75 | + |
| 76 | +Run sample from Windows PowerShell or Linux Terminal using next commands |
| 77 | + |
| 78 | +```bash |
| 79 | +cd GroupDocs.Conversion-for-Java/Demos/Ktor |
| 80 | +.\gradlew.bat :run |
| 81 | +``` |
| 82 | + |
| 83 | +Open [http://localhost:8080/Conversion/](http://localhost:8080/Conversion/) in your favorite browser. |
| 84 | + |
| 85 | +#### Build distribution archive |
| 86 | + |
| 87 | +Download [source code](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/archive/refs/heads/master.zip) from github. |
| 88 | + |
| 89 | +Alternatively you can clone this repository using next command |
| 90 | +```bash |
| 91 | +git clone https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java.git |
| 92 | +``` |
| 93 | + |
| 94 | +Run sample from Windows PowerShell or Linux Terminal using next commands |
| 95 | + |
| 96 | +```bash |
| 97 | +cd GroupDocs.Conversion-for-Java/Demos/Ktor |
| 98 | +.\gradlew.bat :build |
| 99 | +``` |
| 100 | + |
| 101 | +After that, go to `.\build\distributions\` directory to get distribution files. |
| 102 | + |
| 103 | +#### Binary release (with all dependencies) for Linux |
| 104 | + |
| 105 | +Download [latest release](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/releases/latest) from [releases page](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/releases). |
| 106 | + |
| 107 | +**Note**: This method is **recommended** for running this sample behind firewall. |
| 108 | + |
| 109 | +```bash |
| 110 | +curl -J -L -o release.tar.gz https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/releases/download/v23.5/groupdocs-Conversion-ktor-23.5.0.tar |
| 111 | +tar -xvzf release.tar.gz |
| 112 | +cd release/Conversion-ktor-23.5 |
| 113 | +## Make `bin/Conversion-ktor` file to be runnable |
| 114 | +bin/Conversion-ktor |
| 115 | +## Open http://localhost:8080/Conversion/ in your favorite browser. |
| 116 | +``` |
| 117 | + |
| 118 | +## Configuration |
| 119 | +You can adjust settings in `/src/main/resources/application.conf`. Specify relative/absolute path to license file by setting `licensePath` value in `/src/main/resources/application.conf` or by setting up `LIC_PATH` environment variable |
| 120 | + |
| 121 | +### Conversion configuration options |
| 122 | + |
| 123 | +| Option | Type | Default value | Description | |
| 124 | +|------------------------| ------- |:---------------------:|:---------------------------------------------------------------------------------------------------------------------| |
| 125 | +| **`filesDirectory`** | String | `DocumentSamples` | Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path | |
| 126 | +| **`tempDirectory`** | String | system temp directory | Absolute or relative path to directory to save temporary files | |
| 127 | +| **`resultDirectory`** | String | `ResultFiles` | Result files directory path. Directory must be created before app starts | |
| 128 | + |
| 129 | +## License |
| 130 | +The MIT License (MIT). |
| 131 | + |
| 132 | +Please have a look at the LICENSE.md for more details |
| 133 | + |
| 134 | +## GroupDocs Conversion on other platforms & frameworks |
| 135 | + |
| 136 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/tree/master/Demos/Compose) with Kotlin in Compose Desktop application |
| 137 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/tree/master/Demos/Dropwizard) with JAVA Dropwizard |
| 138 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/tree/master/Demos/Javalin) with Javalin application |
| 139 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/tree/master/Demos/Spring) with Spring application |
| 140 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-.NET-MVC) with .NET MVC |
| 141 | +- [Compare documents](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-.NET-WebForms) with .NET WebForms |
| 142 | + |
| 143 | + |
| 144 | +[Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/Conversion/java) | [Documentation](https://docs.groupdocs.com/Conversion/java/) | [Demos](https://products.groupdocs.app/Conversion/family) | [API Reference](https://apireference.groupdocs.com/java/Conversion) | [Examples](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java/tree/master/Examples) | [Blog](https://blog.groupdocs.com/category/Conversion/) | [Free Support](https://forum.groupdocs.com/c/Conversion) | [Temporary License](https://purchase.groupdocs.com/temporary-license) |
0 commit comments