Hello,
We’re facing the following problem: When a gantt chart is too large (cf Task spread on several years for example), how to split the PDF export a several pages in order to be able to print it efficiently ?
Thank you
Hello,
We’re facing the following problem: When a gantt chart is too large (cf Task spread on several years for example), how to split the PDF export a several pages in order to be able to print it efficiently ?
Thank you
Hello Renaud,
You can use the additional_settings
parameter and specify the sizes for the multipage export:
https://docs.dhtmlx.com/gantt/api__gantt_exporttopdf.html#:~:text=the%20url%20property-,additional_settings,-(object)%20an
This will help you to split a chart to several pages vertically.
However, usually, Gantt charts have large horizontal sizes. And you cannot make it fit on a small paper size.
It means that you need to split the page horizontally. Right now, there is no built-in way to do that. But you can export the chart several times and shift the chart for each export.
The following article explains this approach with examples:
https://docs.dhtmlx.com/gantt/api__gantt_exporttopdf.html#:~:text=exporting%20multiple%20pages.-,Multi-page%20export,-When%20Gantt%20is
In the future, the dev team will try to add the functionality to use a single export, but I cannot give you any ETA.
Another way is to change the scale settings and make the tasks fit on the page:
https://docs.dhtmlx.com/gantt/desktop__zoom.html
Then you can export the data with the format you need.
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/dml54e5w