123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- $html = '
- <style>
- ol, ul { text-align: justify;
- }
- .lista { list-style-type: upper-roman; }
- .listb{ list-style-type: decimal; font-family: sans-serif; color: blue; font-weight: bold; font-style: italic; font-size: 19pt; }
- .listc{ list-style-type: upper-alpha; text-indent: 25mm; }
- .listd{ list-style-type: lower-alpha; color: teal; line-height: 2; }
- .liste{ list-style-type: disc; }
- </style>
- <h1>mPDF</h1>
- <h2>Lists</h2>
- <div style="background-color:#ddccff; padding:0pt; border: 1px solid #555555;">
- <ol class="lista">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li><span style="color:green; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</span></li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum. Text here lorem ipsum ibisque totum. Text here lorem ipsum ibisque totum. Text here lorem ipsum ibisque totum. Text here lorem ipsum ibisque totum. Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.
- <ol class="listb">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li><span style="color:green; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</span></li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.
- <ol class="listc">
- <li>Big text indent 25mm: Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.
- </li>
- <li>Text here lorem ipsum ibisque totum.
- <ol class="listd">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.
- <ol class="liste">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.
- <ol class="listc">
- <li>Big text indent 25mm: Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.
- <ol class="listd">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.
- <ol class="liste">
- <li>Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.
- <ol>
- <li>No class specified. Text here lorem ipsum ibisque totum.</li>
- <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </li>
- </ol>
- </li>
- </ol>
- </li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- <li>Text here lorem ipsum ibisque totum.</li>
- </ol>
- </div>
- ';
- //==============================================================
- //==============================================================
- //==============================================================
- include("../mpdf.php");
- $mpdf=new mPDF('-s');
- $mpdf->SetDisplayMode('fullpage');
- $mpdf->WriteHTML($html);
- $mpdf->list_align_style = 'L'; // Determines alignment of numbers in numbered lists
- $mpdf->list_number_suffix = ')';
- $mpdf->WriteHTML($html);
- $mpdf->Output();
- exit;
- //==============================================================
- //==============================================================
- //==============================================================
- ?>
|