(mPDF ≥ 2.3)
inttabSpaces
Specifies the number of spaces to substitue for aTAB character when parsing HTML inputbetween<pre>...</pre> tags. The default value (8) is consistent with the HTML specification, but many programsincluding Windows NotePad uses a value of6.
<pre>...</pre>
8
6
$tabSpaces
Values
Integer value greater than0
0
Default:8
Example #1
<?php$mpdf=new\Mpdf\Mpdf();$mpdf->tabSpaces=6;$html=file_get_content('NotePad.txt');$mpdf->WriteHTML(''.$html.'</pre>');$mpdf->Output();