我正在使用TCPDF在codeigniter.clicking中生成pdf文件。在提交按钮上,它显示TCPDF错误:
某些数据已经输出,无法发送PDF文件
这是我的代码:
int cpp_native(
std::string param1,
std::map<std::string, float>& param2,
std::map<std::string, std::map<std::string, float> >& param3) { }
答案 0 :(得分:0)
您可以使用:
根据文献记录:
https://tcpdf.org/examples/example_006/
// add a page
$pdf->AddPage();
$html = ""
// output the HTML content
$pdf->writeHTML($html, true, false, true, false, '');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// reset pointer to the last page
$pdf->lastPage();
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('example_006.pdf', 'I');