Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php TCPDF在PDF上破坏我的输出_Php_Css_Pdf_Opencart_Tcpdf - Fatal编程技术网

Php TCPDF在PDF上破坏我的输出

Php TCPDF在PDF上破坏我的输出,php,css,pdf,opencart,tcpdf,Php,Css,Pdf,Opencart,Tcpdf,我用的是敞篷车。我正在使用TCPDF生成一个PDF文件。我从一个tpl文件中加载html,该文件具有带有动态数据的表单。这是我的密码 $pdf = new TCPDF() $pdf->AddPage('P'); $html = $this->render(); $pdf->writeHTML($html); $pdf->Output(); 它向我展示了输出,但破坏了结果。 我的表格中有五个部分,但它只是向我展示了前两部分为什么会这样。 加上我的css工作不好

我用的是敞篷车。我正在使用TCPDF生成一个PDF文件。我从一个tpl文件中加载html,该文件具有带有动态数据的表单。这是我的密码

$pdf = new TCPDF()
$pdf->AddPage('P');
$html = $this->render();
$pdf->writeHTML($html);
$pdf->Output(); 
它向我展示了输出,但破坏了结果。 我的表格中有五个部分,但它只是向我展示了前两部分为什么会这样。 加上我的css工作不好