PDF download changes month text color

When I export using pdf using scheduler.exportToPDF the week and day views export fine. But the month view changes the text color from the default white to a blue color that is not readable. I am not doing anything in the export function to do this.

Hello,
In the month view, one day events have blue text color and no background color. It’s a designed behavior.
If you want that one day events look like multiday events in the month view, you can use event_class template with dhx_cal_event_line CSS class:

scheduler.templates.event_class = function (start, end, ev) {
    if (scheduler.getState().mode == 'month')
        return "dhx_cal_event_line";
};

Related article:
https://docs.dhtmlx.com/scheduler/api__scheduler_event_class_template.html ;
And add the dhx_cal_event_clear CSS style on the page, which displays text color of the event:

.dhx_cal_event_clear{
 color: white; 
}

To apply changes to the exported file, you need to add this styles to the header property of the scheduler.exportToPDF function:

    scheduler.exportToPDF({
        header: ' <style>.dhx_cal_event_clear {color: white;} .dhx_cal_event_line{background-color: #0288d1 !important;}</style>'
    })

You can read the article about it:
https://docs.dhtmlx.com/scheduler/pdf.html#customstylefortheoutputfile ;
Please check the example of how it might be implemented:
https://snippet.dhtmlx.com/9x6owpxq