如题cell 里面的中文不能自动换行是为啥?怎么设置write 可以换行,但是没有边框
MultiCell 也可以,但是不能生成表格,一个单元格就占了一行,
下载了chinese.php 也不能结局问题,哪位帮忙看看?fpdfcell 

解决方案 »

  1.   

    你最好贴出测试代码
    fpdf 偏于底层,很多东西都是要自己干预的
      

  2.   

     
    require './fpdf17/chinese.php'; $pdf=new PDF_Chinese(); 
    $pdf->AddPage();
    $pdf->AddGBFont();
    $pdf->SetFont('GB','', 20);
    $txt="helloworldhelloworldhelloworl\n ln dhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld";$txt=htmlspecialchars($txt); //转换HTML关键字符 
    $txt=nl2br($txt); $txt= iconv('utf-8', 'gb2312', $txt);//$pdf->Write(10,$txt);
     
    $pdf->Cell (80,20,$txt,1,1,'C');
    $pdf->Output("test.pdf",'D');
     
     
      

  3.   

    $y = $p->gety();
    $x = $p->getx();
    $p->setfont('text', '', 12);
    $p->MultiCell(60,40,'中文单元格内容',1,'C');
    $p->setxy($x+60,$y);
    $p->MultiCell(60,40,'中文单元格内容',1,'C');
      

  4.   

    为啥 我这个包里的 multiCell 不支持 多列呢,一个multiCell  就占一行。 而且 字体也没有text 这项呢
      

  5.   

    要不把你的包发给我一份,[email protected]谢谢