Gantt Chart Print Server#

This chapter describes how to enable the printing of Gantt/Scheduler diagrams via PDF. In Allegra versions 7.1 and below ImageMagick and PhantomJS were used for printing Gantt diagrams. This technology has become obsolete and is not maintained anymore.

The new printing facility used by Allegra 7.2 and later is based on a standalone Node.js print server. Here Allegra acts as a router only, sending the print request to the print server, retrieving and saving the resulting PDF document and serving it to the users 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://allegra-software.com/allegra-print-server/

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.

App Server Max. POST Size#

In order to export big Gantt/Scheduler charts the Tomcat (or other host application server) maximum POST size has to be adjusted.

For a Tomcat server, you would need to adjust timeout and upload size parameters in the file ...tomcat9\conf\server.xml:

...
<Connector port="80" protocol="HTTP/1.1"
           connectionTimeout="30000" asyncTimeout="20000" maxPostSize="40000000"
...
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
        asyncTimeout="20000" maxPostSize="40000000"/>
...