我正在使用TCPDF库版本:5.9.011。我试图执行PDF格式的HTML布局。对于我与例如试图与site带特殊字符的TCPDF HTML显示空的PDF文件
$html = '<h1>HTML Example</h1>
<h2>List</h2>
Some special characters: < € € € & è è © > \\slash \\\\double-slash \\\\\\triple-slash
';
// output the HTML content
$pdf->writeHTML($html, true, false, true, false, '');
//Close and output PDF document
$pdf->Output('example_006.pdf', 'I');
显然发现生成的PDF只有默认的页眉和页脚与中间空白的内容提供。
但是,如果我删除特殊字符,如:在$html
我只遵循相同的步骤。但没有运气。 – 2010-11-10 07:31:13
链接现已停止。 – beerwin 2012-10-26 12:03:02
@ beerwin http://www.tcpdf.org/examples/example_006.phps – NullPointerException 2013-01-30 15:24:26