dompdf中的css文件问题

时间:2014-10-06 13:17:53

标签: css

我将使用css文件,但它不起作用。错误消息解析错误:语法错误,第8行/playground/test.php中的意外“样式表”(T_STRING)

有什么问题:

<?php
require_once("/dompdf/dompdf_config.inc.php");
$name =  $_POST['name'];


$html =
"<head>".
"<link rel="stylesheet" type="text/css" href="css/vrmd_telefax.css" />".
"</head>".
  "<html><body>"..
  "Hallo $name</p>".
"<logo1><img src="img/logo_small.png"></logo1>".
"<div id="box0">Anschrift</div>".
"<div id="box1">Firma<br>Anrede Vorname Nachname<br>Straße Hn<br><br>PLZ Ort<br>Land</div>".
"<div id="box2">Datum:<br>Seite:<br>Kundennummer:</div>".
"<div id="box2a">04.10.2014<br>1 von 1<br>12345</div>".
"<subject>Betreff</subject>".
"<content>Hier der Text</content>".
"<footer>Hier die Unternehmens Pflichtangaben</footer>".
"<marker1><hr style="width:20px; color:black; height:1px; margin-left:0; text-align:left;"></marker1>".
"<marker2><hr style="width:30px; color:black; height:1px; margin-left:0; text-align:left;"></marker2>".
"<marker3><hr style="width:20px; color:black; height:1px; margin-left:0; text-align:left;"></marker3>".
"</body></html>";

$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
#$dompdf->stream("sample.pdf");
$pdf = $dompdf->output();
file_put_contents("file.pdf", $pdf);
?>

0 个答案:

没有答案