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:

../_images/extendedsettings.png
  1. Login to Allegra

  2. Open Administration perspective

  3. Open Server Administration

  4. Open Server configuration

  5. Open Other tab

  6. Edit Advanced settings

  7. 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.

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.