Gantt Chart Print Server#
This chapter describes how to enable the printing of Gantt/Scheduler diagrams via PDF. Printing is handled by a standalone print server: Allegra sends the print request to the print server, retrieves and saves the resulting PDF document, and serves it to the user’s browser.
To print your Gantt diagrams you can either use the publicly available Allegra print server (SaaS), or you can install your own print server on your own infrastructure.
Setting Print Server URL#
In order to use the public or your own print server, you need to add or modify an entry in your Allegra servers Advanced settings (General settings). Please follow these steps:
Login to Allegra
Open Administration perspective
Open Server Administration
Open Server configuration
Open Other tab
Edit Advanced settings
Change or add the following property:
ganttAndSch.printServer.url=https://printer.allegra-cloud.com
and save it. In case you are operating your own print server the URL looks different:
ganttAndSch.printServer.url=http://localhost:8090/your-print-server
Note
Please be aware that your Gantt diagram is transmitted to the print server and processed there. After processing and transferring the resulting PDF to your Allegra server, all data associated with this transaction is removed from the print server.
Print Server Options#
If you run your own print server on Ubuntu/Debian or on Windows, you can use the servers command line options:
Option |
Description |
|---|---|
-h, –http=PORT |
Start http server on port |
-H, –https=PORT |
Start https server on port |
-w, –websocket=PORT |
Start websocket server on port |
-W, –securewebsocket=PORT |
Start secure websocket server on port |
-c, –cors=HOST |
CORS origin, default value “*”. Set to “false” to disable CORS |
-m, –maximum=SIZE |
Maximum upload size (default 50mb) |
-r, –resources=PATH |
The absolute path to the resource directory. This path will be accessible via the webserver |
-f, –config-file=PATH |
The absolute path to the configuration JSON file. |
–no-sandbox |
Chromium no-sandbox argument |
-p, –path=/print |
Optional, the context path of the requests. |
Maximum POST Size#
For the export, the browser sends the rendered chart to Allegra as a form field. By default, Allegra accepts form data up to 5 MB. If the export of large Gantt/Scheduler charts fails, increase this limit.
Add or change the following property in the file
<INSTALLATION_DIRECTORY>/conf/application.properties and restart Allegra:
server.tomcat.max-http-form-post-size=40MB
For a Docker installation, the file is the application.properties next to your
docker-compose.yml. Recreate the container afterwards with docker compose up -d --force-recreate.