Exporting Large Charts to PDF

Hello,

When trying to export large charts to PDF, I get a 500 Internal server error. Everything works just fine with small charts, but in some cases, our clients may want to print out a large readout of everything. This could include over 1000 tasks, and just as many links. I have been trying to find out what the threshold is exactly, but have not been able to produce consistent results as to when it fails.

I am still investigating this, as we would really like a single, full PDF option. However, in the meantime, we need some way to be able to handle this. One thought was to do batch exports, sending only 200 or so tasks at once. So far, I have been unable to make this work. Does anyone have any solutions to print out 1000+ items?

Hi,

I am having similar issue. Did you get any solution to export large data to PDF?

Can you try to run gantt.serialize().length in the js console and provide the output ?

Service will not accept more than 4Mb of data for export ( that is much more than necessary for 1000 tasks )

Hello,

I am running into the same issue here as well. When I try to use gantt.exportToPDF() with more than ~300 tasks I reach the page Invalid JSON data. Is it too large? Or is there another issue? If I limit it to ~150-~200 tasks it seems to work fine.

an example would be something like the above. 784 tasks. Is the issue maybe there are too many custom fields on each task? For example on tasks will have ~23 fields? Could I clean out the data before I send it?

Check the value of JSON.stringify( gantt.serialize() ).length
It it gives more than 3 000 000, json data can be too big for the export scripts.