24 include_once
"./Services/PDF/classes/class.ilHTMLToPDFTransformer.php";
37 $input = file_get_contents($a_source);
53 if (@file_exists($a_path))
68 if (!@file_exists($this->xsl))
return "";
69 if (extension_loaded(
"tidy"))
74 "numeric-entities" =>
true
79 $print_output = tidy_get_output(
$tidy);
80 $print_output = preg_replace(
"/^.*?(<html)/",
"\\1", $print_output);
82 $xsl = file_get_contents($this->xsl);
83 $args = array(
'/_xml' => $print_output,
'/_xsl' => $xsl );
86 $output =
xslt_process($xh,
"arg:/_xml",
"arg:/_xsl", NULL, $args, $params);
102 include_once
"./Services/Utilities/classes/class.ilUtil.php";
104 $fp = fopen($fo_file,
"w"); fwrite($fp, $fo); fclose($fp);
105 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
114 $ilLog->write(__METHOD__.
': '.$e->getMessage());
119 $ilLog->write(__METHOD__.
': '.$e->getMessage());
128 include_once
"./Services/Utilities/classes/class.ilUtil.php";
130 $fp = fopen($fo_file,
"w"); fwrite($fp, $fo); fclose($fp);
131 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
137 file_put_contents($target, $pdf_base64->scalar);
142 $ilLog->write(__METHOD__.
': '.$e->getMessage());
147 $ilLog->write(__METHOD__.
': '.$e->getMessage());