We are trying out the much anticipated new export to pdf feature in v4.1. The version in v4.0 and earlier did not handle custom rendering of event very good.
The new ExportToPdf looks to be much better and correctly preserves the custom “layout” of the cell. However it fails to render the correct color on our events.
We have controlled the color by setting custom css classes on the event body elements. Is there a way to communicate the custom css to the rendering server?
Is there an alternative way to apply custom color schemes to events, and have it export to pdf properly?
I set the events CSS classes using the scheduler.templates.event_class function. I tried your proposed solution but it hasn’t worked for me, the events keep showing with the default colours: i.imgur.com/8CnVRoC.png
Finally I’ve found the problem. It works with a CSS accessible from Internet, but not if I have the custom CSS in a Intranet (that’s my case). I’ve seen in the api.js that it works with the URL ’ export.dhtmlx.com/scheduler’, so I imagine it tries to get the CSS and it can’t.
Thx, it worked. It’s annoying because we will have to manually sync the CSS file with the exportToPNG style, I hope you will support Intranet solutions in a next future.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan