Format Conversion (LibreOffice)
I. LibreOffice Deployment
For detailed installation and configuration steps, refer to: How to Deploy LibreOffice Service
II. Enabling PDF Conversion Based on LibreOffice
Set the environment variable ENV_PDF_CONVERT_TYPE in the YAML configuration file of the corresponding microservice application, then restart the service.
ENV_PDF_CONVERT_TYPE: "libreoffice"
If the microservice is deployed in cluster mode or the file service operates in an independent deployment mode, you need to add the following environment variable to the microservice configuration file:
ENV_HAP_INTRANET_CROSS_ENDPOINT: "192.168.0.10:8880"
Note: The value of this environment variable is the intranet access address for the HAP microservice. Make sure the file server can access the microservice through this address; otherwise, the PDF conversion feature will fail to execute.