Skip to content

Commit 94052af

Browse files
Updated README.md
1 parent fda7f1d commit 94052af

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ User Interface for GroupDocs.Viewer for Java. API for easily integrating a docum
2121
<dependency>
2222
<groupId>com.groupdocs</groupId>
2323
<artifactId>groupdocs-viewer-ui</artifactId>
24-
<version>24.12</version>
24+
<version>24.12.1</version>
2525
</dependency>
2626

2727
<dependency>
@@ -49,8 +49,6 @@ User Interface for GroupDocs.Viewer for Java. API for easily integrating a docum
4949
public class ViewerConfiguration {
5050
public static final String VIEWER_UI_PATH = "/viewer";
5151

52-
public static final String VIEWER_CONFIG_ENDPOINT = "/viewer-config";
53-
5452
public static final String VIEWER_API_ENDPOINT = "/viewer-api";
5553

5654
private JakartaViewerEndpointHandler _viewerEndpointHandler;
@@ -59,15 +57,18 @@ User Interface for GroupDocs.Viewer for Java. API for easily integrating a docum
5957
public void init() {
6058
_viewerEndpointHandler = JakartaViewerEndpointHandler
6159
.setupGroupDocsViewer((viewerConfig, config) -> {
62-
viewerConfig.setViewerType(ViewerType.PNG);
60+
final ViewerType viewerType = ViewerType.PNG;
61+
62+
viewerConfig.setViewerType(viewerType);
63+
// viewerConfig.setLicensePath("GroupDocs.Viewer.Product.Family.lic");
6364

64-
config.setPreloadPageCount(2);
65+
config.setPreloadPages(2);
6566
config.setBaseUrl("http://127.0.0.1:8080");
67+
config.setRenderingMode(viewerType.toRenderingMode());
6668
})
6769

6870
.setupGroupDocsViewerUI(uiOptions -> {
6971
uiOptions.setUiPath(VIEWER_UI_PATH);
70-
uiOptions.setUiConfigEndpoint(VIEWER_CONFIG_ENDPOINT);
7172
})
7273
.setupGroupDocsViewerApi(apiOptions -> {
7374
apiOptions.setApiEndpoint(VIEWER_API_ENDPOINT);
@@ -102,7 +103,6 @@ User Interface for GroupDocs.Viewer for Java. API for easily integrating a docum
102103
}
103104

104105
@GetMapping({ ViewerConfiguration.VIEWER_UI_PATH, ViewerConfiguration.VIEWER_UI_PATH + "/**",
105-
ViewerConfiguration.VIEWER_CONFIG_ENDPOINT, ViewerConfiguration.VIEWER_CONFIG_ENDPOINT + "/**",
106106
ViewerConfiguration.VIEWER_API_ENDPOINT, ViewerConfiguration.VIEWER_API_ENDPOINT + "/**" })
107107
public void handleViewerUiRequest(HttpServletRequest request, HttpServletResponse response) {
108108
this._viewerEndpointHandler.handleViewerRequest(request, response);

res/simplified-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>groupdocs-viewer-ui</artifactId>
77
<name>GroupDocs.Viewer for Java User Interface</name>
88
<url>https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java-UI</url>
9-
<version>24.12</version>
9+
<version>24.12.1</version>
1010
<description>
1111
GroupDocs.Viewer UI is a rich UI interface that designed to work in conjunction with GroupDocs.Viewer for Java to display most popular file and document formats in a browser.
1212
To integrate GroupDocs.Viewer UI in your Java project you just need to configure Viewer API and handle requests using specific endpoint handler provided in GroupDocs.Viewer.UI.

0 commit comments

Comments
 (0)