FPDF输出超出了PDF生成中的专栏

时间:2019-11-26 04:23:01

标签: php fpdf

我正在FPDF库的帮助下生成PDF,它从MYSQL databse中获取数据。当任何一列中的文本大小很大时,它会越过该列并与下一个列的文本重叠。只能包装在该列中。当我尝试使用Multicell函数时,PDF完全扭曲了。请帮助我实现我的代码。

 function viewTable()
    $this->cell(75,10,$result->user,1,0,'L');
                $this->cell(80,10,$result->affiliation,1,0,'L');
                $this->cell(34,10,$result->type,1,0,'L');
                $this->cell(30,10,$result->sampleid,1,0,'L');


    $pdf = new mypdf();
    $pdf->AliasNbPages();
    $pdf->AddPage('L','A4',0);
    $pdf->Header1();
    $pdf->headerTable();
    $pdf->viewTable();
    $pdf->footer();
    $pdf->output();

0 个答案:

没有答案