PHP 中的 FPDF 单元格内部换行符
在FPDF中,有任何方法可以添加Insite $ PDF-> cell()
fpdf php中的线路断裂。我也在尝试多电焊,但是形成和图像产生过多的问题我可以欺骗并在单元格中添加“/n”新线,并具有总结功能
我如何匹配两个
$pdf->Ln();
$current_x = $start_x;
$current_y += 0;
$pdf->SetFont('Arial', '', 10);
foreach ($result as $row) {
$pdf->SetX(15);
$pdf->Cell(20, 24, $row["id"], 'TB', '', 'C');
$pdf->Cell(54, 24, 'Item'."\n".'RestOf', 'TB', '', '');
$pdf->Cell(30, 24, $pdf->Image($image3, $pdf->GetX(), $pdf->GetY(), 25), 'TB', '', 'C', false);
$pdf->Cell(25, 24, 'QTY', 'TB', 0, '');
$pdf->Cell(25, 24, 'PRICE ', 'TB', 0, '');
$pdf->Cell(25, 24, 'TOTAL', 'TB', 0, '');
$pdf->Ln();
}
In FPDF there is any way to add InSite $pdf->Cell()
Line Break In FPDF PHP. I am also trying MultiCell but formating and image creating a too much problems can I trick and add "/n" new line in cell with wrap-up functionality
How Actually Fpdf Generate PDF Now
How can I match both
$pdf->Ln();
$current_x = $start_x;
$current_y += 0;
$pdf->SetFont('Arial', '', 10);
foreach ($result as $row) {
$pdf->SetX(15);
$pdf->Cell(20, 24, $row["id"], 'TB', '', 'C');
$pdf->Cell(54, 24, 'Item'."\n".'RestOf', 'TB', '', '');
$pdf->Cell(30, 24, $pdf->Image($image3, $pdf->GetX(), $pdf->GetY(), 25), 'TB', '', 'C', false);
$pdf->Cell(25, 24, 'QTY', 'TB', 0, '');
$pdf->Cell(25, 24, 'PRICE ', 'TB', 0, '');
$pdf->Cell(25, 24, 'TOTAL', 'TB', 0, '');
$pdf->Ln();
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论