SuperMap cloud suite web printing service adds layout template

Author: John

    Cloud Suite Web Print Service provides a solution for map printing and output in a cloud environment, allowing users to more flexibly and efficiently generate map output that meets their own needs. This article will explain how to add layout templates to the SuperMap Cloud Suite Web Print Service to help readers better use the Cloud Suite Web Print Service.

1. Start the web printing service

    The Web printing service of the cloud suite is disabled by default and needs to be enabled manually. The opening method is as follows:
Insert image description here

2. View the Web printing service resources resource persistence directory

    View the Web Print Service persistentvolume name

	kubectl get pv -n [云套件namespace] | grep web | awk '{print $1}'

    Get the Web printing service nfs persistence directory

	kubectl get pv [pv名称] -n [云套件namespace]  -o yaml | grep "^[[:space:]]*nfs:$" -A 2

    Sample screenshots are as follows
Insert image description here

3. Introduction to resources directory

    The web printing resources persistence directory contains two subdirectories: fonts and templates. fonts is used to store font files required for web printing. Templates contains web printing layout directories (webprinting-layouts) and web printing symbol directories (webprinting-symbols). The resources directory tree is as shown below:
Insert image description here

4. Update the Web print layout template

    Adding a Web print layout template is similar to the classic iServer, and the cloud suite Web print service has also persisted resources. You only need to put the Web print layout, fonts and symbols into the corresponding folder of the nfs directory queried earlier. That’s it, persistence is also more convenient for users to update or migrate the layout, fonts and symbols of web printing.

5. Restart the Web printing service

    Modified Web printing templates need to be restarted to take effect. The Web printing service can be restarted in the cloud suite by redeploying the Web printing service or deleting and recreating the Web printing service details page.
Restart the Web Print Service
Restart the Web Print Service

    Through the above steps, the new layout template can be used in the Web printing service.


Note: If the number of remaining licensed cores is not enough, you need to modify the orchestration of the web printing service to set its replica set to 0 (spec.replicass=0). After the web printing container is completely deleted, set its replica number to 1.

	#副本集置0
	kubectl scale deployment/iserver-webprinting --replicas=0

Guess you like

Origin blog.csdn.net/supermapsupport/article/details/132719633