mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-12 16:58:37 +00:00
add pdf and mobi libraries
This commit is contained in:
parent
2b58426b2d
commit
4188f38ad5
297 changed files with 126557 additions and 7 deletions
137
inc/3rdparty/libraries/mpdf/examples/example08_lists.php
vendored
Normal file
137
inc/3rdparty/libraries/mpdf/examples/example08_lists.php
vendored
Normal file
|
@ -0,0 +1,137 @@
|
|||
<?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();
|
||||
|
||||
$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;
|
||||
//==============================================================
|
||||
//==============================================================
|
||||
//==============================================================
|
||||
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue