Modify view example

I am trying to modify the Spring sample viewer, but when displaying the changes, they are not displayed in the browser. How could I do it?

@aytoses,

Would you please share with us the details of the changes you have made in the GroupDocs.Viewer for Java Spring application? Also, please share with us the source code of the modified application in the running state (without compilation errors).

Iā€™m trying to remove gd-logo. I have modified viewer-app-component.html commenting on it. I am deploy the application as war.

Url: http://localhost:8080/visorDocumentos/viewer

Thank you.

Code: Dropbox - GroupDocs.Viewer-for-Java-Spring-master - Simplify your life

Captura 1 Logo.JPG (26.8 KB)

@aytoses,

Thanks for sharing the required details. We are looking into it and will share the updates with you shortly.

1 Like

Any news about it?

Thanks

@aytoses,

In order to preserve your changes in the application, we recommend disabling the build process by commenting out the following blocks in pom.xml file

<execution>
	<id>gulp build</id>
	<goals>
		<goal>gulp</goal>
	</goals>
	<configuration>
		<arguments>build</arguments>
	</configuration>
</execution>
<execution>
	<id>gulp copy</id>
	<goals>
		<goal>gulp</goal>
	</goals>
	<configuration>
		<arguments>copy</arguments>
	</configuration>
</execution>

Once done, apply your changes to files located in src/main/resources/static folder, run the development server with ng serve and finally build Viewer using ng build --vendor-chunk=false command. Hope it helps.

1 Like