我正在使用fpdf我想让数组的元素看起来很粗体.
$cell3[8][0] = 'Improved Yield : Farmer Business School Training';
Run Code Online (Sandbox Code Playgroud)
在分配所有这些值后,我将在pdf文档中打印它们
$pdf->FancyTable_2c($head3,$cell3);
$pdf->Cell(8,5,'',0,1);
Run Code Online (Sandbox Code Playgroud)
这该怎么做?
您需要设置所需的字体,然后添加单元格,然后更改样式:
//declare a style
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(20,10,"This will be regular Arial");
//declare another style, overwrites previous one
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(20,10,"This will be Arial Bold");
//set it back to normal
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(20,10,"This will be regular Arial once more")
Run Code Online (Sandbox Code Playgroud)
希望能帮助到你
| 归档时间: |
|
| 查看次数: |
8072 次 |
| 最近记录: |