forked from mpdf/mpdf-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example38_dot_tab.php
39 lines (25 loc) · 1.25 KB
/
example38_dot_tab.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$html = '
<style>
dottab.menu {
outdent: 4em;
}
p.menu {
text-align: left;
padding-right: 4em;
}
</style>
<h3>Menu</h3>
<div style="border: 0.2mm solid #000088; padding: 1em;">
<p class="menu">Nulla felis erat, imperdiet eu, ullamcorper non, nonummy quis, elit. Suspendisse potenti. Ut a eros at ligula vehicula pretium. Maecenas feugiat pede vel risus. Nulla et lectus <dottab class="menu" /> £37.00</p>
<p class="menu">Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbidi feugiat<dottab class="menu" />£3700.00</p>
<p class="menu">Cras odio. Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus <dottab class="menu" /> £27.00</p>
<p class="menu">Phasellus metus. Phasellus feugiat, lectus ac aliquam molestie, leo lacus tincidunt turpis, vel aliquam quam odio et sapien. Mauris ante pede, auctor ac, suscipit quis, malesuada sed, nulla. Integer sit amet odio sit amet lectus luctus euismod <dottab class="menu" /> £7.00</p>
<p class="menu">Donec et nulla. Sed quis orci<dottab class="menu" />£1137.00</p>
</div>
';
require_once __DIR__ . '/bootstrap.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;