Office convert server
Simple server for converting office file formats into PDF files built on top of LibreOffice
Requirements
Requires LibreOffice and LibreOfficeKit
Debian:
sudo apt-get install libreoffice libreofficekit-dev clang
[!NOTE] On Debian bullseye you may not have the latest version of the libreofficekit-dev package which will likely cause the build to fail due to missing functions. I recommend building using Fedora or using Debian Bookworm with the "Bookworm Backports" package repo, which you can add using the following command:
|
The install libreofficekit-dev through that package repo:
Fedora:
Ensure you set the following environment variable:
export LO_INCLUDE_PATH=/usr/include/LibreOfficeKit
Env variables
The server requires the following environment variables.
.env files will be loaded from the same and parent directories of the server
SERVER_ADDRESS=0.0.0.0:3000
LIBREOFFICE_SDK_PATH=/usr/lib64/libreoffice/program
Update LIBREOFFICE_SDK_PATH
your specific LibreofficeSDK path. This is NOT your Libreoffice path