Movatterモバイル変換


[0]ホーム

URL:


mPDF Manual – mPDF Variables

tabSpaces

(mPDF ≥ 2.3)

Description

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.

Values

$tabSpaces

Values

Integer value greater than0

Default:8

Examples

Example #1

<?php$mpdf=new\Mpdf\Mpdf();$mpdf->tabSpaces=6;$html=file_get_content('NotePad.txt');$mpdf->WriteHTML(''.$html.'</pre>');$mpdf->Output();

[8]ページ先頭

©2009-2026 Movatter.jp