How to split on several pages Gantt export in PDF when too large?

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

Hi I have 12-15 columns and more than 3000 tasks for a project the export is taking on the screen shot of the project ,is there any way that irrespective the columns shown or hidden and the wbs level

can I have all the columns and data in a much better way other that the one which is present now

Hello,
You can hide the columns before exporting the data, then you can export with the raw: true parameter and revert the changes:
https://docs.dhtmlx.com/gantt/desktop__specifying_columns.html#visibility

Here is an example:
https://snippet.dhtmlx.com/dbfwjv22

You can customize it in a different way, but that depends on what you actually need and how you want it to look.

thanks but I can see the export api not working
i have updated the config to true and put the button
Am I missing anything?

Hello,
The way to enable the export functionality like this was added in the 8.0 version. If you have an older version, it won’t work, you will need to connect the export’s api.js file:
https://docs.dhtmlx.com/gantt/migrating.html#7180