aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php
diff options
context:
space:
mode:
authortcitworld <tcit@tcit.fr>2014-08-04 21:34:44 +0200
committertcitworld <tcit@tcit.fr>2014-08-04 21:34:44 +0200
commitb83690ebd873abc29a3f365b0cc69125eb6021a1 (patch)
tree62f2b59a6a14d96ccde65db94e43747ae62bf43a /inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php
parent358c689cec917c173ee080777a8dc51603a3979c (diff)
downloadwallabag-b83690ebd873abc29a3f365b0cc69125eb6021a1.tar.gz
wallabag-b83690ebd873abc29a3f365b0cc69125eb6021a1.tar.zst
wallabag-b83690ebd873abc29a3f365b0cc69125eb6021a1.zip
removing examples for mpdf
Diffstat (limited to 'inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php')
-rw-r--r--inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php84
1 files changed, 0 insertions, 84 deletions
diff --git a/inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php b/inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php
deleted file mode 100644
index 16e8bca9..00000000
--- a/inc/3rdparty/libraries/mpdf/examples/example18_headers_method_4.php
+++ /dev/null
@@ -1,84 +0,0 @@
1<?php
2
3
4
5$html = '
6<!-- defines the headers/footers - this must occur before the headers/footers are set -->
7
8<!--mpdf
9
10<htmlpageheader name="myHTMLHeader1">
11<table width="100%" style="border-bottom: 1px solid #000000; vertical-align: bottom; font-family: serif; font-size: 9pt; color: #000088;"><tr>
12<td width="33%">Left header p <span style="font-size:14pt;">{PAGENO}</span></td>
13<td width="33%" align="center"><img src="sunset.jpg" width="126px" /></td>
14<td width="33%" style="text-align: right;"><span style="font-weight: bold;">myHTMLHeader1</span></td>
15</tr></table>
16</htmlpageheader>
17
18<htmlpageheader name="myHTMLHeader1Even">
19<table width="100%" style="border-bottom: 1px solid #000000; vertical-align: bottom; font-family: serif; font-size: 9pt; color: #000088;"><tr>
20<td width="33%"><span style="font-weight: bold;">myHTMLHeader1Even</span></td>
21<td width="33%" align="center"><img src="sunset.jpg" width="126px" /></td>
22<td width="33%" style="text-align: right;">Inner header p <span style="font-size:14pt;">{PAGENO}</span></td>
23</tr></table>
24</htmlpageheader>
25
26<htmlpageheader name="myHTMLHeader2">
27<table width="100%" style="border-bottom: 1px solid #880000; vertical-align: bottom; font-family: sans; font-size: 9pt; color: #880000;"><tr>
28<td width="33%">myHTMLHeader2 p.<span style="font-size:14pt;">{PAGENO}</span></td>
29<td width="33%" align="center"><img src="sunset.jpg" width="126px" /></td>
30<td width="33%" style="text-align: right;"><span style="font-weight: bold;">myHTMLHeader2</span></td>
31</tr></table>
32</htmlpageheader>
33
34<htmlpageheader name="myHTMLHeader2Even">
35<table width="100%" style="border-bottom: 1px solid #880000; vertical-align: bottom; font-family: sans; font-size: 9pt; color: #880000;"><tr>
36<td width="33%"><span style="font-weight: bold;">myHTMLHeader2Even</span></td>
37<td width="33%" align="center"><img src="sunset.jpg" width="126px" /></td>
38<td width="33%" style="text-align: right;">Inner header p <span style="font-size:14pt;">{PAGENO}</span></td>
39</tr></table>
40</htmlpageheader>
41
42mpdf-->
43
44<!-- set the headers/footers - they will occur from here on in the document -->
45<!--mpdf
46<sethtmlpageheader name="myHTMLHeader1" page="O" value="on" show-this-page="1" />
47<sethtmlpageheader name="myHTMLHeader1Even" page="E" value="on" />
48mpdf-->
49
50<h1>mPDF</h1>
51<h2>Headers & Footers Method 4</h2>
52<p>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. Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbi feugiat pulvinar dolor. Cras odio. Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus. 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. Donec et nulla. Sed quis orci. </p>
53<pagebreak />
54
55<h2>Headers & Footers Method 4</h2>
56<p>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. Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbi feugiat pulvinar dolor. Cras odio. Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus. 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. Donec et nulla. Sed quis orci. </p>
57
58<!-- Note the html_ prefix when referencing an HTML header using one of the pagebreaks -->
59<pagebreak odd-header-name="html_myHTMLHeader2" odd-header-value="1" even-header-name="html_myHTMLHeader2Even" even-header-value="1" />
60
61<h2>Headers & Footers Method 4</h2>
62<p>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. Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbi feugiat pulvinar dolor. Cras odio. Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus. 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. Donec et nulla. Sed quis orci. </p>
63';
64
65//==============================================================
66//==============================================================
67//==============================================================
68
69include("../mpdf.php");
70
71$mpdf=new mPDF('c','A4','','',32,25,47,47,10,10);
72
73$mpdf->mirrorMargins = 1; // Use different Odd/Even headers and footers and mirror margins
74
75$mpdf->WriteHTML($html);
76
77$mpdf->Output();
78exit;
79//==============================================================
80//==============================================================
81//==============================================================
82
83
84?> \ No newline at end of file