What are the limitations of html2pdf in terms of handling specific CSS properties like border-left for table elements?
When converting HTML to PDF using html2pdf, certain CSS properties like border-left for table elements may not be fully supported or displayed correctly. To address this issue, you can manually set the border-left property for table elements using inline styles within the HTML code before converting it to PDF.
<?php
$html = '<table style="border-collapse: collapse;">
<tr>
<td style="border-left: 1px solid black;">Cell 1</td>
<td>Cell 2</td>
</tr>
</table>';
require_once 'html2pdf.class.php';
$html2pdf = new HTML2PDF('P', 'A4', 'en');
$html2pdf->writeHTML($html);
$html2pdf->output('example.pdf');
?>