Show custom classes and images when exporting


#1

Hello!
I’m trying to export my Gantt chart to PNG and PDF with exportToPNG and exportToPDF but some information doesn’t show up, like resource hour indicators (red and green circles), and avatar pictures of the resources.
Is there a way to show such information onto exporting?


#2

Hello Diego,
You need to include the styles in the header parameter:
https://docs.dhtmlx.com/gantt/desktop__export.html#customstylefortheoutputfile
It is necessary because the export module/server doesn’t know about the styles you use. If there are images, they should be available through direct links.

Here are examples of how it might be done:
http://snippet.dhtmlx.com/38d7bca8e
http://snippet.dhtmlx.com/a75db799f