Coloring the event headers in the pdf generated by printing

Hi,

I am using the php package provided for generating the pdf. I have used a different colors in the title bar and the body of the event as is shown in the pic below.


Now The pdf that is generated look like the image below.


As you can see the headers of the events does not have the desired color. When I examined the code that was being generated for pdf generation I saw that for each event bgColor and text color are being added in the body tag as shown below

<header><![CDATA[09:05 AM - 11:50 AM]]></header><body backgroundColor='rgb(158, 255, 165)' color='rgb(0, 0, 0)'><![CDATA[Busy|Telephone encounter]]></body>

The header is missing the colors. So i tried adding the colors in the header tag too. As shown below

<header backgroundColor='rgb(46, 46, 46)' color='rgb(255, 255, 255)'><![CDATA[09:05 AM - 11:50 AM]]></header><body backgroundColor='rgb(158, 255, 165)' color='rgb(0, 0, 0)'><![CDATA[Busy|Telephone encounter]]></body>

But this didnt work. So is there any way I can color the headers of the events too? Mayb some attribute I need to add in the body tag of the above code?

Moreover I am using timesteps of 15 and 30 minutes. And both of them the pdf is generated not
correctly formatted as show in the pdf below. Let me know how can I correct that?


As for header coloring - existing version of server side code can set only one color for event. So simple adding atrributes to client side xml data will not help

Moreover I am using timesteps of 15 and 30 minutes
If you are using html formatting in the scale cells - beware that it will not be preserved. Only text data goes to export.
The output on screenshot still is not valid (overflow over borders), we will look in it.