WPS
Different from LibreOffice, if the WPS WebOffice preview service is enabled, all Office document previews will be based on WPS WebOffice.
Starting from v6.0.0, online document editing capability has been supported, using the same AppID and AppSecret.
HAP also supports integration with WPS private deployment edition to achieve online editing and preview of documents. This can be discussed with the HAP team offline.
Network requirements: If the cloud version is docked, Please ensure that the HAP system access address is accessible from the Internet.
-
Visit https://solution.wps.cn/ (If you do not have an account, please sign up first).
-
Refer to the document at https://solution.wps.cn/docs/console/flow.html to confirm if the relevant preparation has been completed.
Choose Online Edit Preview for both test and formal application types.
-
Configure the callback gateway for the formal application in the format of
HAP system access address/wps
, for example: -
Obtain the
AppID
andAppSecret
for the formal application. -
Set the environment variables
ENV_WPS_PREVIEW_APPID
andENV_WPS_PREVIEW_APPSECRET
in the yaml configuration file corresponding to the microservice application.ENV_WPS_PREVIEW_APPID: "AppID value"
ENV_WPS_PREVIEW_APPSECRET: "AppSecret value" -
Restart the service