Php 如何使用codeigniter在mpdf中显示html实体?
我对html实体使用以下循环Php 如何使用codeigniter在mpdf中显示html实体?,php,codeigniter,mpdf,Php,Codeigniter,Mpdf,我对html实体使用以下循环 for($i=0;$i<$service_count;$i++) { $services[$i]['serviceName']=$service_result[$i]['service_name']; $services[$i]['serviceId']=$service_result[$i]['services_id']; $services[$i]['serviceDesc']=$service_re
for($i=0;$i<$service_count;$i++)
{
$services[$i]['serviceName']=$service_result[$i]['service_name'];
$services[$i]['serviceId']=$service_result[$i]['services_id'];
$services[$i]['serviceDesc']=$service_result[$i]['service_description'];
$services[$i]['serviceAmt']=$serviceAmt[$i];
$services[$i]['taxAmt']=$taxAmtarr[$i];
$services[$i]['taxId']=$taxIdarr[$i];
$tableRow='<tr>
<td style="text-align:center">'.$services[$i]['serviceName'].'</td>
<td style="text-align:center">'.$services[$i]['serviceDesc'].'</td>
<td style="text-align:right">'.$services[$i]['taxAmt'].'</td>
</tr>';
}
$test=htmlspecialchars($tableRow);
for($i=0;$iWriteHTML($invoice\u original)
我想在mpdf表格中显示表格行,但没有显示任何内容。
谢谢。给你:
$mpdf = new \mPDF('utf-8','A4');
$mpdf->autoScriptToLang = true;
$mpdf->baseScript = 1; // Use values in classes/ucdn.php 1 = LATIN
$mpdf->autoVietnamese = true;
$mpdf->autoArabic = true;
$mpdf->autoLangToFont = true;
$mpdf->SetMargins(null,null,15);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader('<div style="text-align:right">B I R A</div>');
$mpdf->setFooter(' | www.bira.com | {PAGENO}');
$mpdf->WriteHTML($pdf_style.$pdf_page);
$mpdf->Output();
$mpdf=new\mpdf('utf-8','A4');
$mpdf->autoScriptToLang=true;
$mpdf->baseScript=1;//在类中使用值/ucdn.php 1=LATIN
$mpdf->autoVietnamese=true;
$mpdf->autoArabic=true;
$mpdf->autoLangToFont=true;
$mpdf->SetMargins(空,空,15);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader('BIR A');
$mpdf->setFooter('www.bira.com{PAGENO}');
$mpdf->WriteHTML($pdf\u样式。$pdf\u页面);
$mpdf->Output();
该机构应:
$pdf_style = '<style>write all of your styles</style>';
$pdf_page = '<table><table>'; // write all of your html markup here.
$pdf_style='编写所有样式';
$pdf_page='';//在此处编写所有html标记。
就这些!!!给你:
$mpdf = new \mPDF('utf-8','A4');
$mpdf->autoScriptToLang = true;
$mpdf->baseScript = 1; // Use values in classes/ucdn.php 1 = LATIN
$mpdf->autoVietnamese = true;
$mpdf->autoArabic = true;
$mpdf->autoLangToFont = true;
$mpdf->SetMargins(null,null,15);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader('<div style="text-align:right">B I R A</div>');
$mpdf->setFooter(' | www.bira.com | {PAGENO}');
$mpdf->WriteHTML($pdf_style.$pdf_page);
$mpdf->Output();
$mpdf=new\mpdf('utf-8','A4');
$mpdf->autoScriptToLang=true;
$mpdf->baseScript=1;//在类中使用值/ucdn.php 1=LATIN
$mpdf->autoVietnamese=true;
$mpdf->autoArabic=true;
$mpdf->autoLangToFont=true;
$mpdf->SetMargins(空,空,15);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader('BIR A');
$mpdf->setFooter('www.bira.com{PAGENO}');
$mpdf->WriteHTML($pdf\u样式。$pdf\u页面);
$mpdf->Output();
该机构应:
$pdf_style = '<style>write all of your styles</style>';
$pdf_page = '<table><table>'; // write all of your html markup here.
$pdf_style='编写所有样式';
$pdf_page='';//在此处编写所有html标记。
就这些