The PDF processing service (JOD server) is a helper service that converts Word documents into PDFs and makes it possible to merge various document types into a single PDF. You can run it on the same server that projectfacts/teamspace runs on.
For the PDF function you need the file
jod-server.jar. We will provide it to you on request. If you do not use the service, no changes to theweb.xmlare required.
Linux
- Install LibreOffice:
apt install libreoffice - Copy the
jod-server.jarto/opt/jod-server/. - Create
/opt/jod-server/config.properties:port=3902 threads=2 whitelist=*portis your choice. To allow an IP address, specify it underwhitelistas a regex. - Create the user and group:
groupadd -r jod useradd -r -s /bin/false -g jod jod chown jod: /opt/jod-server - Create
/etc/systemd/system/jod.service:[Unit] Description=JOD-Server [Service] WorkingDirectory=/opt/jod-server ExecStart=/bin/java -jar jod-server.jar User=jod Type=simple Restart=on-failure RestartSec=15 [Install] WantedBy=multi-user.target - Enable the service:
systemctl daemon-reload systemctl enable jod.service - Add the following entry to the projectfacts
web.xml(or adjust it):<context-param> <param-name>pdfConvertService.url</param-name> <param-value>127.0.0.1:3902</param-value> </context-param>
Windows
- Under
C:\projectfacts\, create the folderjod-server(C:\projectfacts\jod-server) and copy thejod-server.jarinto it. - Create the file
jod-server-start.bat:java -Dserver.port=3902 -jar jod-server.jar - Create a scheduled task so that the batch file is run automatically after the server starts.
- Add the
pdfConvertService.urlentry to theweb.xml(see Linux step 7).
Common questions & needs
| You want to … | How to |
|---|---|
| Generate Word documents as PDFs | Set up the JOD server and set pdfConvertService.url in the web.xml. |
| Use a different port | Change the port in config.properties (Linux) or the .bat (Windows) and align it in the web.xml. |
| Start the service automatically after the server boots | Linux: systemctl enable jod.service. Windows: a scheduled task for the .bat. |
Related topics
- Installing teamspace with Docker Installation Configuration
- Additional server configurations Installation Configuration
- How teamspace is built Installation Concept