Export to pdf - Baseline

I have tried setting the gantt.exportToPDF({raw:“true”}) but still no baseline in the pdf. Can someone help please…

Hi,

You also need to specify CSS for baselines and tasks in the ‘header’ property of exportToPDF function.
docs.dhtmlx.com/gantt/desktop__ … outputfile

I can’t create an online demo for you, because ‘addTaskLayer’ is avaliable only in PRO edition.
You can check the way how to solve your issue using this file:
files.dhtmlx.com/30d/5838adfecd … xport.html

It works like a charm. Thanks a lot! This was what I did…

gantt.exportToPDF({raw:“true”,header:".baseline {…}"})