Gantt chart cannot export PDF and PNG, service 502

1、name: dhtmlx-gantt,version: 7.0.13,
Remote service can export Excel files, but cannot export PDF and PNG, service 502.

If you plan to use the PDF export module on a headless server, you need to install additional components.
Here is the command for the Deb-based distros:

apt-get install -y xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib

Here is the command for the RPM-based distros:

yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc xorg-x11-server-Xvfb mesa-libGLU

Then you need to run it with a different command:

npm run start:docker


xvfb-run node index.js