Index: pdf_helper.php
===================================================================
--- pdf_helper.php	(revision 13936)
+++ pdf_helper.php	(working copy)
@@ -132,11 +132,16 @@
 		$this->CurPDFElem->DrawAt($this->PDF, 0, 0);
 	}
 
+	/**
+	 * Parses CSS from STYLE tag in HEAD tag
+	 *
+	 * @param kXMLNode $node
+	 */
 	function ProcessHead($node)
 	{
 		if ($node->Name == 'STYLE') {
-			$css = $node->Data;
-			$tokens = $this->Stylesheet->GetTokens($node->Data);
+			$css = $node->GetXML(true); // $node->Data;
+			$tokens = $this->Stylesheet->GetTokens($css);
 			$this->Stylesheet->ParseTokens($tokens);
 		}
 		foreach($node->Children as $child) {
@@ -253,7 +258,6 @@
 
 	public $Spacers = 0;
 
-
 	function __construct($node, $helper)
 	{
 		$this->Node = $node;
