我尝试使用FPDF Cell/MultiCell创建自定义表.
我的第一个单元格是MultiCell两行文本.然后,下一个单元格应该放在它旁边.
问题:无论我对下一个单元格做什么,它总是在页面的下一行而不是放在第一个单元格的旁边 - 这让我发疯了.
这是我的代码:
require_once 'config.php';
require 'fpdf.php';
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','',10);
$pdf->MultiCell(150,10,'Certificate of foreign Currency usage in respect of materials and components in terms of the notes to rebate item ',1);
$pdf->SetFont('Arial','',10);
$pdf->MultiCell(40,10,'DA190',1);
$pdf->Output();
Run Code Online (Sandbox Code Playgroud)
包含文本"DA190"的单元格应放在前一个单元格的旁边,但位于前一个单元格的下方.