2
여기에서 일부 헤더, 본문, 꼬리말이있는 pdf 생성에 dompdf를 사용하고 있습니다. 하지만 바닥 글을 추가하려고하면 첨부되지 않습니다.Dompdf 바닥 글이 설정되지 않았습니다 ..?
항상 본체 코드가 붙어 있으므로 하단에 바닥 글을 설정하고 싶습니다.
누구든지 아래 코드를 잘못 이해할 수 있습니까?
코드 :
global $_dompdf_show_warnings;
global $_dompdf_debug;
global $_DOMPDF_DEBUG_TYPES;
global $_dompdf_warnings;
$_dompdf_show_warnings = FALSE;
require_once(realpath(APPPATH."third_party/dompdf")."/dompdf_config.inc.php");
spl_autoload_register('DOMPDF_autoload');
$dompdf = new DOMPDF();
$dompdf->set_paper("letter", "portrait");
$html = '<html>
<head>
<title>
</title>
</head>
`enter code here` <body style="margin:0; background-color:#ff9900; color:#ffffff;">
<div>
<div style="margin:15px;">
<div>
<span style="font-size:25px; font-weight:600;">
Hi, John
</span>
</div>
<div>
<span>
Your account statement is here.
</span>
</div>
<div style="margin-top:15px; border: 2px solid;border-radius:5px; padding:10px; position:absolute; diplay:block;">
<div style="float:left;">left</div>
<div style="float:right;">right</div>
</div>
</div>
</div>
<div style="background-color:#ffffff; color:#ff9900; position:fixed; bottom:0;width:100%;padding:10px;">
<div>
<span>
<b><i>This is a system generated statement.</i></b>
</span>
</div>
<div>
<span>
<b><i> If you have any queries, email [email protected]</i></b>
</span>
</div>
</div>
</body>
</html>';
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("dompdf_out.pdf", array("Attachment" => false));
코드 샘플에 임의의 "enter code here"텍스트가 있습니까? – BrianS