Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/pdf/pdf_helper.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | |||||
if ($is_content) { | if ($is_content) { | ||||
$xml = $this->Application->Parser->Parse($template); | $xml = $this->Application->Parser->Parse($template); | ||||
} | } | ||||
else { | else { | ||||
$xml = $this->Application->Parser->Run($template); | $xml = $this->Application->Parser->Run($template); | ||||
} | } | ||||
/** @var kXMLHelper $xml_helper */ | |||||
$xml_helper =& $this->Application->recallObject('kXMLHelper'); | $xml_helper =& $this->Application->recallObject('kXMLHelper'); | ||||
/* @var $xml_helper kXMLHelper */ | |||||
$doc = $xml_helper->Parse($xml_helper->ConvertHTMLEntities($xml), kXMLHelper::XML_WITH_TEXT_NODES); | $doc = $xml_helper->Parse($xml_helper->ConvertHTMLEntities($xml), kXMLHelper::XML_WITH_TEXT_NODES); | ||||
if ($doc->Name == 'ERROR') { | if ($doc->Name == 'ERROR') { | ||||
echo 'BAD TEMPLATE'; | echo 'BAD TEMPLATE'; | ||||
exit; | exit; | ||||
} | } | ||||
// $this->Application->Debugger->profileStart('pdf_init', 'Initializing PDF'); | // $this->Application->Debugger->profileStart('pdf_init', 'Initializing PDF'); | ||||
▲ Show 20 Lines • Show All 932 Lines • ▼ Show 20 Line(s) | |||||
$this->SetCSSProperty('margin-bottom', '0'); | $this->SetCSSProperty('margin-bottom', '0'); | ||||
$this->SetCSSProperty('padding-left', '0'); | $this->SetCSSProperty('padding-left', '0'); | ||||
$this->SetCSSProperty('padding-right', '0'); | $this->SetCSSProperty('padding-right', '0'); | ||||
$this->SetCSSProperty('padding-top', '0'); | $this->SetCSSProperty('padding-top', '0'); | ||||
$this->SetCSSProperty('padding-bottom', '0'); | $this->SetCSSProperty('padding-bottom', '0'); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |