We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Group viewer HTML (Dropwizard Java) not loading

Thanks for replying, when I started the app all was ok I think:

image.png (24.2 KB)

But when I try to load the files:

image.png (15.7 KB)

image.png (19.6 KB)

In the Spring Demo

image.png (596.7 KB)

When the word finally got in the cache no more errors where shown but the document did not render.

@noemd

Thanks again for the screenshots. From the second one I can see that it is locale issue
. The workaround has been provided in this topic. To change default locale to the supported one open GroupDocs.Viewer-for-Java\Demos\Dropwizard\src\main\java\com\groupdocs\ui\common\MainService.java file and replace

public MainService() {
    super();
    defaultConfiguration = false;
}

public MainService(boolean defaultConfiguration) {
    super();
    this.defaultConfiguration = defaultConfiguration;
}

with

public MainService() {
    super();
    setLocale();
    defaultConfiguration = false;
}

public MainService(boolean defaultConfiguration) {
    super();
    setLocale();
    this.defaultConfiguration = defaultConfiguration;
}

private static setLocale() {
    Locale usLocale = new Locale("en", "US");
    Locale.setDefault(usLocale);
}

And then try restarting the app with mvn clean compile exec:java.

Hi, I made the changes you told me in dropwizard, started the app without problems:

image.png (28.5 KB)

Tried to view the doc file but it took several minutes (about 10) and it didn’t render, however, I tried then with the PDF file and it finally did it thanks.

image.png (95.8 KB)

Is there a way to do the same with the Spring project and to render Word files too with both projects?

Sorry another question the Editor project should work with the same license?

Thanks a lot Vladimir, we are very interested on those two products Viewer and Editor

@noemd

You’re welcome!

Sure, you have to set the supported locale but this time in Application.java file of the Spring project and build the project.

Yes, a Total license can be used with all GroupDocs products including Viewer and Editor.

Thank you very much Vladimir

1 Like

@noemd

You’re welcome!

Hi Vladimir I hope you are well, can we modify the front end and back end of the projects:

  • GroupDocs.Viewer (Java)
  • GroupDocs.Editor (Java)

In order to achieve certain look & feel (front end) and specific functionality (back end) (take files from some repos and URls).

And which type of license do we need to do it?

Thanks in advance

@noemd

There are three main components here, let’s start from the top.

Front-end (MIT license)

The front-end source code is located at https://github.com/groupdocs-total/GroupDocs.Total-Angular and published to NPM e.g. https://www.npmjs.com/package/@groupdocs.examples.angular/viewer.

The front-end is Angular application that is typically located in client folder (link). And here you can find viewer-specific components.

Front-end requires a back-end that will serve the content to display.

Back-end (MIT license)
The back-end code is a Web API that is serving the front-end (link). The back-end is using an engine to process the documents.

Engine (GroupDocs.Total license)

The engine is GroupDocs.Viewer for Java or GroupDocs.Editor for Java libraries that are performing the main work e.g. GroupDocs.Viewer converts documents to HTML/PNG/JPG/PDF formats.

To sum up:

The front-end and back-end code in the following repositories is open-source and you can modify it. The license is MIT.

The code in GroupDocs.Viewer and GroupDocs.Editor libraries is internal and you need GroupDocs.Total license to use these two libraries without trial limitations. You can’t directly modify the code but you can post request for the new features and report the bugs through this forum.

Thanks a lot Vladimir

@noemd

You’re welcome. Let us know in case you have any issues with modifying the code in the public repositories and we’ll try to help.

Thanks a lot Vladimir,

I have more Doubts. Is there some way that for example in the Editor we have a *.doc or *docx document that have the possibility to only let edit certain parts of it an the rest of the content could be block?

@noemd

Your question Editing certain parts of a document using Java has been moved into GroupDocs.Editor category.

Thanks for redirecting my question Vladimir, The Editor can not do that process

@noemd

You’re welcome!

Hello Vladimir, I hope you are well, you shared the URL of the github project for the Angular (Frontend) section of the Viewer.

Checking the communication between BackEnd and FrontEnd they communicate with a JSON in which a property called “data” contains an HTML String with the data to render. Is there any documentation on the FrontEnd side for this (Anguar, more detail on how is this process carried out)? I ask it to do security reviews among others that we need to check.

Best Regards.

@noemd

Unfortunately, there is no documentation except source code. In general the process is the following:

  1. The file is being selected
  2. Client requests data from the server
  3. Server responds with the data
  4. Viewer App Component, Document Component and Page Component then rendering the data (HTML)

I’m sorry for the inconvinience.

Thanks for the reply, another question in the case of pptx files (power point), I made I presentation (test) with only 3 slides, however, in the viewer it only shows 2 Slides:

image.png (71.0 KB)

I can not share the file the blog doesn´t let me:

image.png (20.4 KB)

Is that behavior normal, maybe because of the free trial license or it has some kind of limit?

Thanks a lot

@noemd

Yes, in trial mode only the first two pages are processed see details at Evaluation Limitations and Licensing of GroupDocs.Viewer.

You can request a temporary license to test all the features see more at https://purchase.groupdocs.com/temporary-license.

Thanks a lot Vladimir

@noemd

You’re welcome!