]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/libraries/mpdf/examples/example47_progress_bars_simple_custom.php
add pdf and mobi libraries
[github/wallabag/wallabag.git] / inc / 3rdparty / libraries / mpdf / examples / example47_progress_bars_simple_custom.php
1 <?php
2
3 //==============================================================
4 //==============================================================
5 define("_JPGRAPH_PATH", '../../jpgraph_5/jpgraph/'); // must define this before including mpdf.php file
6 $JpgUseSVGFormat = true;
7
8 define('_MPDF_URI','../'); // must be a relative or absolute URI - not a file system path
9 //==============================================================
10 //==============================================================
11
12
13 ini_set("memory_limit","64M");
14
15 $html = '
16 <html><head>
17 <meta http-equiv="Content-Language" content="en-GB">
18 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
19 <style>
20 body { font-family:"Times New Roman"; font-size:10pt; }
21 p.littlewomen { margin: 0; font-family: sans-serif; text-align: justify; }
22
23 h1, h2, h3, h4, h5, h6 { font-family: DejaVuSansCondensed; }
24 table {font-family: DejaVuSansCondensed; font-size: 9pt; line-height: 1.2;
25 vertical-align: top;
26 margin-top: 2pt; margin-bottom: 5pt;
27 border-collapse: collapse; }
28
29 thead { font-weight: bold; vertical-align: bottom; }
30
31 th { font-weight: bold;
32 text-align:left;
33 padding-left: 2mm;
34 padding-right: 2mm;
35 padding-top: 0.5mm;
36 padding-bottom: 0.5mm;
37 }
38
39 td { padding-left: 2mm;
40 text-align:left;
41 padding-right: 2mm;
42 padding-top: 0.5mm;
43 padding-bottom: 0.5mm;
44 }
45
46 th p { text-align: left; margin:0pt; }
47 td p { text-align: left; margin:0pt; }
48
49 table.widecells td {
50 padding-left: 5mm;
51 padding-right: 5mm;
52 }
53 table.tallcells td {
54 padding-top: 3mm;
55 padding-bottom: 3mm;
56 } .sub td { vertical-align:top; border-top:0px; border-bottom:0px; padding:2px; padding-right:8px;
57 margin:0; font-size:9pt; }
58 .sub { align:center; border:#888888 1px solid; }
59 thead td { font-weight: bold; }
60
61 table.nested {
62 border-collapse: separate;
63 border: 4px solid #880000;
64 padding: 3px;
65 margin: 0px 20px 0px 20px;
66 empty-cells: hide;
67 background-color:#FFFFCC;
68 }
69 table.nested td {
70 border: 1px solid #008800;
71 padding: 0px;
72 background-color:#ECFFDF;
73 }
74 table.outer2 {
75 border-collapse: separate;
76 border: 4px solid #088000;
77 padding: 3px;
78 margin: 10px 0px;
79 empty-cells: hide;
80 background-color: yellow;
81 }
82 table.outer2 td {
83 font-family: Times;
84 border: 1px solid #008800;
85 padding: 0px;
86 background-color:#ECFFDF;
87 }
88 table.inner {
89 border-collapse: collapse;
90 border: 2px solid #000088;
91 padding: 3px;
92 margin: 5px;
93 empty-cells: show;
94 background-color:#FFCCFF;
95 }
96 table.inner td {
97 border: 1px solid #000088;
98 padding: 0px;
99 font-family: monospace;
100 font-style: italic;
101 font-weight: bold;
102 color: #880000;
103 background-color:#FFECDF;
104 }
105 table.collapsed {
106 border-collapse: collapse;
107 }
108 table.collapsed td {
109 background-color:#EDFCFF;
110 }
111 .headerrow td, .headerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
112 .footerrow td, .footerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
113
114 .evenrow td, .evenrow th { background-color: #f5f8f5; }
115 .oddrow td, .oddrow th { background-color: #e3ece4; }
116
117 .bpmTopic { background-color: #e3ece4; }
118 .bpmTopicC { background-color: #e3ece4; }
119 .bpmNoLines { background-color: #e3ece4; }
120 .bpmNoLinesC { background-color: #e3ece4; }
121 .bpmClear { }
122 .bpmClearC { text-align: center; }
123 .bpmTopnTail { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
124 .bpmTopnTailC { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
125 .bpmTopnTailClear { topntail: 0.02cm solid #495b4a; }
126 .bpmTopnTailClearC { topntail: 0.02cm solid #495b4a; }
127
128 .bpmTopicC td, .bpmTopicC td p { text-align: center; }
129 .bpmNoLinesC td, .bpmNoLinesC td p { text-align: center; }
130 .bpmClearC td, .bpmClearC td p { text-align: center; }
131 .bpmTopnTailC td, .bpmTopnTailC td p { text-align: center; }
132 .bpmTopnTailClearC td, .bpmTopnTailClearC td p { text-align: center; }
133
134 .pmhMiddleCenter { text-align:center; vertical-align:middle; }
135 .pmhMiddleRight { text-align:right; vertical-align:middle; }
136 .pmhBottomCenter { text-align:center; vertical-align:bottom; }
137 .pmhBottomRight { text-align:right; vertical-align:bottom; }
138 .pmhTopCenter { text-align:center; vertical-align:top; }
139 .pmhTopRight { text-align:right; vertical-align:top; }
140 .pmhTopLeft { text-align:left; vertical-align:top; }
141 .pmhBottomLeft { text-align:left; vertical-align:bottom; }
142 .pmhMiddleLeft { text-align:left; vertical-align:middle; }
143
144 .bpmTopic td, .bpmTopic th { border-top: 1px solid #FFFFFF; }
145 .bpmTopicC td, .bpmTopicC th { border-top: 1px solid #FFFFFF; }
146 .bpmTopnTail td, .bpmTopnTail th { border-top: 1px solid #FFFFFF; }
147 .bpmTopnTailC td, .bpmTopnTailC th { border-top: 1px solid #FFFFFF; }
148 .lista { list-style-type: upper-roman; }
149 .listb{ list-style-type: decimal; font-family: sans-serif; color: blue; font-weight: bold; font-style: italic; font-size: 19pt; }
150 .listc{ list-style-type: upper-alpha; text-indent: 25mm; }
151 .listd{ list-style-type: lower-alpha; color: teal; line-height: 2; }
152 .liste{ list-style-type: disc; }
153
154 .roundgradient {
155 border:0.05mm solid #220044;
156 background-color: #f0f2ff;
157 background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5;
158 border-radius: 10mm / 10mm;
159 background-clip: border-box;
160 padding: 3.3mm;
161 }
162 .phpcode {
163 border:1px solid #555555;
164 background-color: #DDDDDD;
165 padding: 1em;
166 font-size:8pt;
167 font-family: lucidaconsole, mono;
168 }
169 </style>
170 </head><body>
171
172 <!-- DEFINE HEADERS & FOOTERS -->
173 <htmlpageheader name="myHTMLHeaderOdd">
174 <div style="font-family:sans-serif; background-color:#BBEEFF" align="center"><b>mPDF Example File</b></div>
175 </htmlpageheader>
176 <htmlpageheader name="myHTMLHeaderEven">
177 <div style="font-family:sans-serif; background-color:#EFFBBE" align="center"><b><i>mPDF Example File</i></b></div>
178 </htmlpageheader>
179 <htmlpagefooter name="myHTMLFooterOdd" style="display:none">
180 <div style="font-family:sans-serif; background-color:#CFFFFC" align="center"><b>{PAGENO}/{nbpg}</b></div>
181 </htmlpagefooter>
182 <htmlpagefooter name="myHTMLFooterEven" style="display:none">
183 <div style="font-family:sans-serif; background-color:#FFCCFF" align="center"><b><i>{PAGENO}/{nbpg}</i></b></div>
184 </htmlpagefooter>
185
186 <pagefooter name="myFooter2Odd" content-left="" content-center="mPDF Example File" content-right="{PAGENO}/{nbpg}" footer-style="font-family:sans-serif; font-size:9pt; font-weight:bold; color:#000088;" footer-style-right="font-weight: bold;" line="on" />
187
188 <pagefooter name="myFooter2Even" content-left="{PAGENO}/{nbpg}" content-center="mPDF Example File" content-right="{DATE j-m-Y}" footer-style="font-family:sans-serif; font-size:10pt; color:#880000;" footer-style-left="font-weight:bold;" line="on" />
189
190
191 <!-- FRONT COVER -->
192 <div style="position: absolute; left:0; right: 0; top: 0; bottom: 0;">
193 <img src="clematis.jpg" style="width: 210mm; height: 297mm; margin: 0;" />
194 </div>
195
196 <div style="position: absolute; left:32mm; right: 25mm; top: 70mm; width: 58%; margin-right: auto; margin-left:auto; ">
197 <div style="padding: 1em; font-family: Arial; font-weight: bold; font-size: 28pt; border: 3px solid #000044; border-radius: 5mm; background-clip: border-box; color: #000044; background-color: #FFFFFF;">
198 mPDF Example File
199 </div>
200 </div>
201
202 <pagebreak />
203
204 <p>The front cover can also be produced like this:</p>
205 <!-- EXAMPLE PHP CODE -->
206 <div class="phpcode">'. nl2br(htmlspecialchars('/* ALTERNATIVE PHP METHOD */
207 $mpdf->Image(\'clematis.jpg\',0,0,210,297,\'jpg\',\'\',true, false);
208 // the last "false" allows a full page picture
209
210 $mpdf->y = 70;
211 $mpdf->Shaded_box(\'mPDF Example File\', \'Trebuchet\', \'\', 28, \'70%\', \'DF\', 3, \'#FFFFFF\', \'#000044\', 10);
212 ')) .'</div>
213 <!-- END EXAMPLE PHP CODE -->
214
215
216 <!-- TABLES OF CONTENTS -->
217 <tocpagebreak toc-preHTML="&lt;h2&gt;CONTENTS&lt;/h2&gt;" links="1" toc-bookmarkText="Contents" resetpagenum="1" pagenumstyle="1"
218 odd-header-name="html_myHTMLHeaderOdd" odd-header-value="1" even-header-name="html_myHTMLHeaderEven" even-header-value="1" odd-footer-name="myFooter2Odd" odd-footer-value="1" even-footer-name="myFooter2Even" even-footer-value="1" />
219
220 <tocpagebreak name="Figures" toc-preHTML="&lt;h2&gt;FIGURES&lt;/h2&gt;" links="1" toc-bookmarkText="Figures" />
221
222 <tocpagebreak name="Tables" toc-preHTML="&lt;h2&gt;TABLES&lt;/h2&gt;" links="1" toc-bookmarkText="Tables" />
223
224
225
226 <!-- SECTION 1 -->
227 <h1>(H1) mPDF</h1>
228 <h2>(H2) Section 1<bookmark content="Section 1" level="0" /></h2>
229 <h3>(H3) HTML Markup<bookmark content="HTML Markup" level="1" /><tocentry name="" content="HTML Markup" level="0" /><indexentry content="HTML Markup" /></h3>
230
231 <tocentry name="" content="HTML Markup" level="1" />
232 <tocentry name="" content="HTML Markup" level="2" />
233
234 <h4>Heading 4</h4>
235 <h5>Heading 5</h5>
236 <h6>Heading 6</h6>
237 <p>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>
238
239 <hr />
240
241 <div>DIV: Proin aliquet lorem id felis. Curabitur vel libero at mauris nonummy tincidunt. Donec imperdiet. Vestibulum sem sem, lacinia vel, molestie et, laoreet eget, urna. Curabitur viverra faucibus pede. Morbi lobortis. Donec dapibus. Donec tempus. Ut arcu enim, rhoncus ac, venenatis eu, porttitor mollis, dui. Sed vitae risus. In elementum sem placerat dui. Nam tristique eros in nisl. Nulla cursus sapien non quam porta porttitor. Quisque dictum ipsum ornare tortor. Fusce ornare tempus enim. </div>
242 <div>DIV: Proin aliquet lorem id felis. Curabitur vel libero at mauris nonummy tincidunt. Donec imperdiet. Vestibulum sem sem, lacinia vel, molestie et, laoreet eget, urna. Curabitur viverra faucibus pede. Morbi lobortis. Donec dapibus. Donec tempus. Ut arcu enim, rhoncus ac, venenatis eu, porttitor mollis, dui. Sed vitae risus. In elementum sem placerat dui. Nam tristique eros in nisl. Nulla cursus sapien non quam porta porttitor. Quisque dictum ipsum ornare tortor. Fusce ornare tempus enim. </div>
243
244 <blockquote>Blockquote: Maecenas arcu justo, malesuada eu, dapibus ac, adipiscing vitae, turpis. Fusce mollis. Aliquam egestas. In purus dolor, facilisis at, fermentum nec, molestie et, metus. Maecenas arcu justo, malesuada eu, dapibus ac, adipiscing vitae, turpis. Fusce mollis. Aliquam egestas. In purus dolor, facilisis at, fermentum nec, molestie et, metus.</blockquote>
245
246 <address>Address: Vestibulum feugiat, orci at imperdiet tincidunt, mauris erat facilisis urna, sagittis ultricies dui nisl et lectus. Sed lacinia, lectus vitae dictum sodales, elit ipsum ultrices orci, non euismod arcu diam non metus.</address>
247
248 <pre>PRE: Cum sociis natoque penatibus et magnis dis parturient montes,
249 nascetur ridiculus mus. In suscipit turpis vitae odio. Integer convallis
250 dui at metus. Fusce magna. Sed sed lectus vitae enim tempor cursus. Cras
251 sed, posuere et, urna. Quisque ut leo. Aliquam interdum hendrerit tortor.
252 Vestibulum elit. Vestibulum et arcu at diam mattis commodo. Nam ipsum sem,
253 ultricies at, rutrum sit amet, posuere nec, velit. Sed molestie mollis dui.</pre>
254
255 <div><a href="http://mpdf.bpm1.com/manual/">Hyperlink (&lt;a&gt;)</a></div>
256
257 <div>Styles - <tt>tt(teletype)</tt> <i>italic</i> <b>bold</b> <big>big</big> <small>small</small> <em>emphasis</em> <strong>strong</strong> <br />new lines<br>
258 <code>code</code> <samp>sample</samp> <kbd>keyboard</kbd> <var>variable</var> <cite>citation</cite> <abbr>abbr.</abbr> <acronym>ACRONYM</acronym> <sup>sup</sup> <sub>sub</sub> <strike>strike</strike> <s>strike-s</s> <u>underline</u> <del>delete</del> <ins>insert</ins> <q>To be or not to be</q> <font face="sans-serif" color="#880000" size="5">font changing face, size and color</font>
259 </div>
260
261 <p style="font-size:15pt; color:#440066">Paragraph using the in-line style to determine the font-size (15pt) and colour</p>
262
263
264 <h3>Testing BIG, SMALL, UNDERLINE, STRIKETHROUGH, FONT color, ACRONYM, SUPERSCRIPT and SUBSCRIPT</h3>
265 <p>This is <s>strikethrough</s> in <b><s>block</s></b> and <small>small <s>strikethrough</s> in <i>small span</i></small> and <big>big <s>strikethrough</s> in big span</big> and then <u>underline and <s>strikethrough and <sup>sup</sup></s></u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</p>
266
267 <p>This is a <font color="#008800">green reference<sup>32-47</sup></font> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> then <s>Strikethrough reference<sup>32-47</sup></s> and <s>strikethrough reference<sub>32-47</sub></s></p>
268
269 <p><big>Repeated in <u>BIG</u>: This is reference<sup>32-47</sup> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</big></p>
270
271 <p><small>Repeated in small: This is reference<sup>32-47</sup> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</small></p>
272
273 <p>The above repeated, but starting with a paragraph with font-size specified (7pt)</p>
274
275 <p style="font-size:7pt;">This is <s>strikethrough</s> in block and <small>small <s>strikethrough</s> in small span</small> and then <u>underline</u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</p>
276
277 <p style="font-size:7pt;">This is <s>strikethrough</s> in block and <big>big <s>strikethrough</s> in big span</big> and then <u>underline</u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</p>
278
279 <p style="font-size:7pt;">This is reference<sup>32-47</sup> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> then <s>Strikethrough reference<sup>32-47</sup></s> and <s>strikethrough reference<sub>32-47</sub></s></p>
280
281 <p><small>This tests <u>underline</u> and <s>strikethrough</s> when they are <s><u>used together</u></s> as they both use text-decoration</small></p>
282
283
284 <p><small>Repeated in small: This is reference<sup>32-47</sup> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</small></p>
285
286 <p style="font-size:7pt;"><big>Repeated in BIG but with font-size set to 7pt by in-line css: This is reference<sup>32-47</sup> and <u>underlined reference<sup>32-47</sup></u> then reference<sub>32-47</sub> and <u>underlined reference<sub>32-47</sub></u> but out of span again but <font color="#000088">blue</font> font and <acronym>ACRONYM</acronym> text</big></p>
287
288 <ol>
289 <li>Item <b><u>1</u></b></li>
290 <li>Item 2<sup>32</sup></li>
291 <li><small>Item</small> 3</li>
292 <li>Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
293 <ul>
294 <li>Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo. </li>
295 <li>Subitem 2
296 <ul>
297 <li>
298 Level 3 subitem
299 </li>
300 </ul>
301 </li>
302 </ul>
303 </li>
304 <li>Item 5</li>
305 </ol>
306
307 <p>Sed bibendum. Nunc eleifend ornare velit. Sed consectetuer urna in erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Mauris sodales semper metus. Maecenas justo libero, pretium at, malesuada eu, mollis et, arcu. Ut suscipit pede in nulla. Praesent elementum, dolor ac fringilla posuere, elit libero rutrum massa, vel tincidunt dui tellus a ante. Sed aliquet euismod dolor. Vestibulum sed dui. Duis lobortis hendrerit quam. Donec tempus orci ut libero. Pellentesque suscipit malesuada nisi. </p>
308 <tocentry name="Tables" content="Basic table" level="0" />
309 <table border="1" cellpadding="5">
310 <thead>
311 <tr>
312 <th>Data</th>
313 <th>Data</th>
314 <td>Data</td>
315 <td>Data<br />2nd line</td>
316 </tr>
317 </thead>
318 <tbody>
319 <tr>
320 <th>More Data</th>
321 <td>More Data</td>
322 <td>More Data</td>
323 <td>Data<br />2nd line</td>
324 </tr>
325 <tr>
326 <th>Data</th>
327 <td>Data</td>
328 <td>Data</td>
329 <td>Data<br />2nd line</td>
330 </tr>
331 <tr>
332 <th>Data</th>
333 <td>Data</td>
334 <td>Data</td>
335 <td>Data<br />2nd line</td>
336 </tr>
337 </tbody>
338 </table>
339
340 This paragraph has border-radius and background-gradient set. Minimum padding is recommended as 1/3rd of the border-radius. Or can use $mpdf->autoPadding.
341 <p class="roundgradient">Sed bibendum. Nunc eleifend ornare velit. Sed consectetuer urna in erat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Mauris sodales semper metus. Maecenas justo libero, pretium at, malesuada eu, mollis et, arcu. Ut suscipit pede in nulla. Praesent elementum, dolor ac fringilla posuere, elit libero rutrum massa, vel tincidunt dui tellus a ante. Sed aliquet euismod dolor. Vestibulum sed dui. Duis lobortis hendrerit quam. Donec tempus orci ut libero. Pellentesque suscipit malesuada nisi. </p>
342
343
344
345 <!-- HYPHENATION -->
346 <pagebreak />
347 <h3>Hyphenation<bookmark content="Hyphenation" level="1" /><tocentry name="" content="Hyphenation" level="0" /><indexentry content="Hyphenation" /></h3>
348
349 <h4>Little Women - Chapter One - Playing Pilgrims</h4>
350 <columns column-count="4" vAlign="J" column-gap="7" />
351
352 <p class="littlewomen"> Christmas won\'t be Christmas without any presents, grumbled Jo, lying on the rug.</p><p class="littlewomen"> It\'s so dreadful to be poor! sighed Meg, looking down at her old dress.</p><p class="littlewomen"> I don\'t think it\'s fair for some girls to have plenty of pretty things, and other girls nothing at all, added little Amy, with an injured sniff.</p><p class="littlewomen"> We\'ve got Father and Mother, and each other, said Beth contentedly from her corner.</p><p class="littlewomen">The four young faces on which the firelight shone brightened at the cheerful words, but darkened again as Jo said sadly, We haven\'t got Father, and shall not have him for a long time. She didn\'t say perhaps never, but each silently added it, thinking of Father far away, where the fighting was.</p><p class="littlewomen">Nobody spoke for a minute; then Meg said in an altered tone, You know the reason Mother proposed not having any presents this Christmas was because it is going to be a hard winter for everyone; and she thinks we ought not to spend money for pleasure, when our men are suffering so in the army. We can\'t do much, but we can make our little sacrifices, and ought to do it gladly. But I am afraid I don\'t And Meg shook her head, as she thought regretfully of all the pretty things she wanted.</p><p class="littlewomen"> But I don\'t think the little we should spend would do any good. We\'ve each got a dollar, and the army wouldn\'t be much helped by our giving that. I agree not to expect anything from Mother or you, but I do want to buy UNDINE AND SINTRAM for myself. I\'ve wanted it so long, said Jo, who was a bookworm.</p><p class="littlewomen"> I planned to spend mine in new music, said Beth, with a little sigh, which no one heard but the hearth brush and kettle holder.</p><p class="littlewomen"> I shall get a nice box of Faber\'s drawing pencils. I really need them, said Amy decidedly.</p><p class="littlewomen"> Mother didn\'t say anything about our money, and she won\'t wish us to give up everything. Let\'s each buy what we want, and have a little fun. I\'m sure we work hard enough to earn it, cried Jo, examining the heels of her shoes in a gentlemanly manner.</p><p class="littlewomen"> I know I do&mdash;teaching those tiresome children nearly all day, when I\'m longing to enjoy myself at home, began Meg, in the complaining tone again.</p><p class="littlewomen"> You don\'t have half such a hard time as I do, said Jo. How would you like to be shut up for hours with a nervous, fussy old lady, who keeps you trotting, is never satisfied, and worries you till you you\'re ready to fly out the window or cry? </p><p class="littlewomen"> It\'s naughty to fret, but I do think washing dishes and keeping things tidy is the worst work in the world. It makes me cross, and my hands get so stiff, I can\'t practice well at all. And Beth looked at her rough hands with a sigh that any one could hear that time.</p><p class="littlewomen"> I don\'t believe any of you suffer as I do, cried Amy, for you don\'t have to go to school with impertinent girls, who plague you if you don\'t know your lessons, and laugh at your dresses, and label your father if he isn\'t rich, and insult you when your nose isn\'t nice. </p><p class="littlewomen"> If you mean libel, I\'d say so, and not talk about labels, as if Papa was a pickle bottle, advised Jo, laughing.</p><p class="littlewomen"> I know what I mean, and you needn\'t be satirical about it. It\'s proper to use good words, and improve your vocabulary, returned Amy, with dignity.</p><p class="littlewomen"> Don\'t peck at one another, children. Don\'t you wish we had the money Papa lost when we were little, Jo? Dear me! How happy and good we\'d be, if we had no worries! said Meg, who could remember better times.</p><p class="littlewomen"> You said the other day you thought we were a deal happier than the King children, for they were fighting and fretting all the time, in spite of their money. </p><p class="littlewomen"> So I did, Beth. Well, I think we are. For though we do have to work, we make fun of ourselves, and are a pretty jolly set, as Jo would say. </p><p class="littlewomen"> Jo does use such slang words! observed Amy, with a reproving look at the long figure stretched on the rug.</p><p class="littlewomen">Jo immediately sat up, put her hands in her pockets, and began to whistle.</p><p class="littlewomen"> Don\'t, Jo. It\'s so boyish! </p><p class="littlewomen"> That\'s why I do it. </p><p class="littlewomen"> I detest rude, unladylike girls! </p><p class="littlewomen"> I hate affected, niminy-piminy chits! </p><p class="littlewomen"> Birds in their little nests agree, sang Beth, the peacemaker, with such a funny face that both sharp voices softened to a laugh, and the pecking ended for that time.</p><p class="littlewomen"> Really, girls, you are both to be blamed, said Meg, beginning to lecture in her elder-sisterly fashion. You are old enough to leave off boyish tricks, and to behave better, Josephine. It didn\'t matter so much when you were a little girl, but now you are so tall, and turn up your hair, you should remember that you are a young lady. </p><p class="littlewomen"> I\'m not! And if turning up my hair makes me one, I\'ll wear it in two tails till I\'m twenty, cried Jo, pulling off her net, and shaking down a chestnut mane. I hate to think I\'ve got to grow up, and be Miss March, and wear long gowns, and look as prim as a China Aster! It\'s bad enough to be a girl, anyway, when I like boy\'s games and work and manners! I can\'t get over my disappointment in not being a boy. And it\'s worse than ever now, for I\'m dying to go and fight with Papa. And I can only stay home and knit, like a poky old woman! </p><p class="littlewomen">And Jo shook the blue army sock till the needles rattled like castanets, and her ball bounded across the room.</p><p class="littlewomen"> Poor Jo! It\'s too bad, but it can\'t be helped. So you must try to be contented with making your name boyish, and playing brother to us girls, said Beth, stroking the rough head with a hand that all the dish washing and dusting in the world could not make ungentle in its touch.</p><p class="littlewomen"> As for you, Amy, continued Meg, you are altogether to particular and prim. Your airs are funny now, but you\'ll grow up an affected little goose, if you don\'t take care. I I like your nice manners and refined ways of speaking, when you don\'t try to be elegant. But your absurd words are as bad as Jo\'s slang. </p><p class="littlewomen"> If Jo is a tomboy and Amy a goose, what am I, please? asked Beth, ready to share the lecture.</p><p class="littlewomen"> You\'re a dear, and nothing else, answered Meg warmly, and no one contradicted her, for the \'Mouse\' was the pet of the family.</p>
353
354 <columns column-count="1" />
355
356
357
358
359
360
361 <!-- LISTS -->
362 <pagebreak />
363 <h3>Lists<bookmark content="Lists" level="1" /><tocentry name="" content="Lists" level="0" /><indexentry content="Lists" /></h3>
364 <div style="background-color:#ddccff; padding:0pt; border: 1px solid #555555;">
365 <ol class="lista">
366 <li>Text here lorem ipsum ibisque totum.</li>
367 <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>
368 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
369 <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>
370 <li>Text here lorem ipsum ibisque totum.</li>
371 <li>Text here lorem ipsum ibisque totum.
372 <ol class="listb">
373 <li>Text here lorem ipsum ibisque totum.</li>
374 <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>
375 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
376 <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>
377 <li>Text here lorem ipsum ibisque totum.</li>
378 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.
379 <ol class="listc">
380 <li>Big text indent 25mm: Text here lorem ipsum ibisque totum.</li>
381 <li>Text here lorem <span style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">ipsum</span> ibisque totum.
382 </li>
383 <li>Text here lorem ipsum ibisque totum.
384 <ol class="listd">
385 <li>Text here lorem ipsum ibisque totum.</li>
386 <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>
387 <li>Text here lorem ipsum ibisque totum.</li>
388 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
389 <li>Text here lorem ipsum ibisque totum.
390 <ol class="liste">
391 <li>Text here lorem ipsum ibisque totum.</li>
392 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
393 <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>
394 <li>Text here lorem ipsum ibisque totum.</li>
395 <li>Text here lorem ipsum ibisque totum.</li>
396 </ol>
397 </li>
398 <li>Text here lorem ipsum ibisque totum.</li>
399 <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>
400 <li>Text here lorem ipsum ibisque totum.</li>
401 <li>Text here lorem ipsum ibisque totum.</li>
402 </ol>
403 </li>
404 <li>Text here lorem ipsum ibisque totum.</li>
405 </ol>
406 </li>
407 <li>Text here lorem ipsum ibisque totum.</li>
408 <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>
409 <li>Text here lorem ipsum ibisque totum.</li>
410 <li>Text here lorem ipsum ibisque totum.</li>
411 </ol>
412 </li>
413 <li>Text here lorem ipsum ibisque totum.</li>
414 <li>Text here lorem ipsum ibisque totum.
415 <ol class="listc">
416 <li>Big text indent 25mm: Text here lorem ipsum ibisque totum.</li>
417 <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>
418 <li>Text here lorem ipsum ibisque totum.
419 <ol class="listd">
420 <li>Text here lorem ipsum ibisque totum.</li>
421 <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>
422 <li>Text here lorem ipsum ibisque totum.</li>
423 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.
424 <ol class="liste">
425 <li>Text here lorem ipsum ibisque totum.</li>
426 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
427 <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>
428 <li>Text here lorem ipsum ibisque totum.</li>
429 <li>Text here lorem ipsum ibisque totum.</li>
430 </ol>
431 </li>
432 <li>Text here lorem ipsum ibisque totum.</li>
433 <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>
434 <li>Text here lorem ipsum ibisque totum.
435 <ol>
436 <li>No class specified. Text here lorem ipsum ibisque totum.</li>
437 <li style="color:red; font-size:9pt; font-family:courier; font-weight: normal; font-style: normal;">Text here lorem ipsum ibisque totum.</li>
438 <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>
439 <li>Text here lorem ipsum ibisque totum.</li>
440 <li>Text here lorem ipsum ibisque totum.</li>
441 </ol>
442 </li>
443 </ol>
444 </li>
445 </ol>
446 </li>
447 <li>Text here lorem ipsum ibisque totum.</li>
448 <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>
449 <li>Text here lorem ipsum ibisque totum.</li>
450 <li>Text here lorem ipsum ibisque totum.</li>
451 <li>Text here lorem ipsum ibisque totum.</li>
452 <li>Text here lorem ipsum ibisque totum.</li>
453 <li>Text here lorem ipsum ibisque totum.</li>
454 </ol>
455 </div>
456
457 <!-- TABLES -->
458 <pagebreak />
459 <h3>Tables<bookmark content="Tables" level="1" /><tocentry name="" content="Tables" level="0" /><tocentry name="Tables" content="Tables - general" level="0" /><indexentry content="Tables" /></h3>
460 <p>mPDF supports all in-line properties inside tables.</p>
461 <table border="1">
462 <tbody><tr><td>Row 1</td><td>This is data</td><td>This is data</td></tr>
463 <tr><td>Row 2</td>
464 <td>
465 <p>This is data p</p>
466 This is data out of p
467 <p style="font-weight:bold; font-size:20pt; background-color:#FFBBFF;">This is bold data p</p>
468 <b>This is bold data out of p</b><br />
469 This is normal data after br
470 <h3>Heading 3 inside a table</h3>
471 Text here lorem <i>ipsum</i> ibisque totum.<sup>32</sup>
472 <div>This is data div</div>
473 This is data out of div
474 <div style="font-weight:bold;">This is data div (bold)</div>
475 This is data out of div
476 </td>
477
478 <td>Also data</td></tr>
479 </tbody></table>
480
481 <p>This table has padding-top and -bottom set to 3mm i.e. padding within the cells. Also background-, border colour and style, font family and size are set by in-line <acronym>CSS</acronym>.</p>
482 <table style="border: 1px solid #880000; background-color: #BBCCDD; font-family: Mono; font-size: 7pt; " class="tallcells">
483 <tbody><tr><td>Row 1</td><td>This is data</td><td>This is data</td></tr>
484 <tr><td>Row 2</td><td><p>This is data p</p></td><td><p>More data</p></td></tr>
485 <tr><td><p>Row 3</p></td><td><p>This is long data</p></td><td>This is data</td></tr>
486 </tbody></table>
487
488
489 <h4>Tables<bookmark content="Table styles" level="2" /><tocentry name="Tables" content="Table styles" level="0" /><indexentry content="Table:styles" /></h4>
490 <p>The style sheet used for these examples shows some of the table styles I use on my website. The property \'topntail\' defined by a border-type definition e.g. "1px solid #880000" puts a border at the top and bottom of the table, and also below a header row (thead) if defined. Note also that &lt;thead&gt; will automatically turn on the header-repeat i.e. reproduce the header row at the top of each page.</p>
491 <p>bpmTopic Class</p>
492 <table class="bpmTopic"><thead></thead><tbody>
493 <tr>
494 <td>Row 1</td>
495 <td>This is data</td>
496 <td>This is data</td>
497 </tr>
498 <tr>
499 <td>Row 2</td>
500 <td>
501 <p>This is data p</p>
502 </td>
503 <td>
504 <p>More data</p>
505 </td>
506 </tr>
507 <tr>
508 <td>
509 <p>Row 3</p>
510 </td>
511 <td>
512 <p>This is long data</p>
513 </td>
514 <td>This is data</td>
515 </tr>
516 <tr>
517 <td>
518 <p>Row 4 &lt;td&gt; cell</p>
519 </td>
520 <td>This is data</td>
521 <td>
522 <p>This is data</p>
523 </td>
524 </tr>
525 <tr>
526 <td>Row 5</td>
527 <td>Also data</td>
528 <td>Also data</td>
529 </tr>
530 <tr>
531 <td>Row 6</td>
532 <td>Also data</td>
533 <td>Also data</td>
534 </tr>
535 <tr>
536 <td>Row 7</td>
537 <td>Also data</td>
538 <td>Also data</td>
539 </tr>
540 <tr>
541 <td>Row 8</td>
542 <td>Also data</td>
543 <td>Also data</td>
544 </tr>
545 </tbody></table>
546
547 <p>&nbsp;</p>
548
549 <p>bpmTopic<b>C</b> Class (centered) Odd and Even rows</p>
550 <table class="bpmTopicC"><thead>
551 <tr class="headerrow"><th>Col/Row Header</th>
552 <td>
553 <p>Second column header p</p>
554 </td>
555 <td>Third column header</td>
556 </tr>
557 </thead><tbody>
558 <tr class="oddrow"><th>Row header 1</th>
559 <td>This is data</td>
560 <td>This is data</td>
561 </tr>
562 <tr class="evenrow"><th>Row header 2</th>
563 <td>
564 <p>This is data p</p>
565 </td>
566 <td>
567 <p>This is data</p>
568 </td>
569 </tr>
570 <tr class="oddrow"><th>
571 <p>Row header 3</p>
572 </th>
573 <td>
574 <p>This is long data</p>
575 </td>
576 <td>This is data</td>
577 </tr>
578 <tr class="evenrow"><th>
579 <p>Row header 4</p>
580 <p>&lt;th&gt; cell acting as header</p>
581 </th>
582 <td>This is data</td>
583 <td>
584 <p>This is data</p>
585 </td>
586 </tr>
587 <tr class="oddrow"><th>Row header 5</th>
588 <td>Also data</td>
589 <td>Also data</td>
590 </tr>
591 <tr class="evenrow"><th>Row header 6</th>
592 <td>Also data</td>
593 <td>Also data</td>
594 </tr>
595 <tr class="oddrow"><th>Row header 7</th>
596 <td>Also data</td>
597 <td>Also data</td>
598 </tr>
599 <tr class="evenrow"><th>Row header 8</th>
600 <td>Also data</td>
601 <td>Also data</td>
602 </tr>
603 </tbody></table>
604
605 <p>&nbsp;</p>
606
607 <p>bpmTopnTail Class </p>
608 <table class="bpmTopnTail"><thead></thead><tbody>
609 <tr>
610 <td>Row 1</td>
611 <td>This is data</td>
612 <td>This is data</td>
613 </tr>
614 <tr>
615 <td>Row 2</td>
616 <td>
617 <p>This is data p</p>
618 </td>
619 <td>
620 <p>This is data</p>
621 </td>
622 </tr>
623 <tr>
624 <td>
625 <p>Row 3</p>
626 </td>
627 <td>
628 <p>This is long data</p>
629 </td>
630 <td>This is data</td>
631 </tr>
632 <tr>
633 <td>
634 <p>Row 4 &lt;td&gt; cell</p>
635 </td>
636 <td>This is data</td>
637 <td>
638 <p>This is data</p>
639 </td>
640 </tr>
641 <tr>
642 <td>Row 5</td>
643 <td>Also data</td>
644 <td>Also data</td>
645 </tr>
646 <tr>
647 <td>Row 6</td>
648 <td>Also data</td>
649 <td>Also data</td>
650 </tr>
651 <tr>
652 <td>Row 7</td>
653 <td>Also data</td>
654 <td>Also data</td>
655 </tr>
656 <tr>
657 <td>Row 8</td>
658 <td>Also data</td>
659 <td>Also data</td>
660 </tr>
661 </tbody></table>
662 <p>&nbsp;</p>
663 <p>bpmTopnTail<b>C</b> Class (centered) Odd and Even rows</p>
664 <table class="bpmTopnTailC"><thead>
665 <tr class="headerrow"><th>Col/Row Header</th>
666 <td>
667 <p>Second column header p</p>
668 </td>
669 <td>Third column header</td>
670 </tr>
671 </thead><tbody>
672 <tr class="oddrow"><th>Row header 1</th>
673 <td>This is data</td>
674 <td>This is data</td>
675 </tr>
676 <tr class="evenrow"><th>Row header 2</th>
677 <td>
678 <p>This is data p</p>
679 </td>
680 <td>
681 <p>This is data</p>
682 </td>
683 </tr>
684 <tr class="oddrow"><th>
685 <p>Row header 3</p>
686 </th>
687 <td>
688 <p>This is long data</p>
689 </td>
690 <td>This is data</td>
691 </tr>
692 <tr class="evenrow"><th>
693 <p>Row header 4</p>
694 <p>&lt;th&gt; cell acting as header</p>
695 </th>
696 <td>This is data</td>
697 <td>
698 <p>This is data</p>
699 </td>
700 </tr>
701 <tr class="oddrow"><th>Row header 5</th>
702 <td>Also data</td>
703 <td>Also data</td>
704 </tr>
705 <tr class="evenrow"><th>Row header 6</th>
706 <td>Also data</td>
707 <td>Also data</td>
708 </tr>
709 <tr class="oddrow"><th>Row header 7</th>
710 <td>Also data</td>
711 <td>Also data</td>
712 </tr>
713 <tr class="evenrow"><th>Row header 8</th>
714 <td>Also data</td>
715 <td>Also data</td>
716 </tr>
717 </tbody></table>
718
719 <p>&nbsp;</p>
720
721 <p>TopnTail Class</p>
722 <table class="bpmTopnTail"><thead>
723 <tr class="headerrow"><th>Col and Row Header</th>
724 <td>
725 <p>Second</p>
726 <p>column</p>
727 </td>
728 <td class="pmhTopRight">Top right align</td>
729 </tr>
730 </thead><tbody>
731 <tr class="oddrow"><th>
732 <p>Row header 1 p</p>
733 </th>
734 <td>This is data</td>
735 <td>This is data</td>
736 </tr>
737 <tr class="evenrow"><th>Row header 2</th>
738 <td class="pmhBottomRight"><b><i>Bottom right align</i></b></td>
739 <td>
740 <p>This is data. Can use</p>
741 <p><b>bold</b> <i>italic </i><sub>sub</sub> or <sup>sup</sup> text</p>
742 </td>
743 </tr>
744 <tr class="oddrow"><th class="pmhBottomRight">
745 <p>Bottom right align</p>
746 </th>
747 <td class="pmhMiddleCenter" style="border: #000000 1px solid">
748 <p>This is data. This cell</p>
749 <p>uses Cell Styles to set</p>
750 <p>the borders.</p>
751 <p>All borders are collapsible</p>
752 <p>in mPDF.</p>
753 </td>
754 <td>This is data</td>
755 </tr>
756 <tr class="evenrow"><th>Row header 4</th>
757 <td>
758 <p>This is data p</p>
759 </td>
760 <td>More data</td>
761 </tr>
762 <tr class="oddrow"><th>Row header 5</th>
763 <td colspan="2" class="pmhTopCenter">Also data merged and centered</td>
764 </tr>
765 </tbody></table>
766
767 <p>&nbsp;</p>
768
769 <h4>Lists in a Table<bookmark content="Lists in a table" level="2" /><tocentry name="Tables" content="Lists in a table" level="0" /><indexentry content="Table:lists inside" /></h4>
770 <table class="bpmTopnTail"><thead>
771 <tr class="headerrow"><th>Col and Row Header</th>
772 <td>
773 <p>Second</p>
774 <p>column</p>
775 </td>
776 <td class="pmhTopRight">Top right align</td>
777 </tr>
778 </thead><tbody>
779 <tr class="oddrow"><th>
780 <p>Row header 1 p</p>
781 </th>
782 <td>This is data</td>
783 <td>This is data</td>
784 </tr>
785 <tr class="evenrow"><th>Row header 2</th>
786 <td>
787 <ol>
788 <li>Item 1</li>
789 <li>Item 2
790 <ol type="a">
791 <li>Subitem of ordered list</li>
792 <li>Subitem 2
793 <ol type="i">
794 <li>Level 3 subitem</li>
795 <li>Level 3 subitem</li>
796 </ol>
797 </li>
798 </ol>
799 </li>
800 <li>Item 3</li>
801 <li>Another Item</li>
802 <li>Subitem
803 <ol>
804 <li>Level 3 subitem</li>
805 </ol>
806 </li>
807 <li>Another Item</li>
808 </ol>
809 </td>
810 <td>
811 Unordered list:
812 <ul>
813 <li>Item 1</li>
814 <li>Item 2
815 <ul>
816 <li>Subitem of unordered list</li>
817 <li>Subitem 2
818 <ul>
819 <li>Level 3 subitem</li>
820 <li>Level 3 subitem</li>
821 <li>Level 3 subitem</li>
822 </ul>
823 </li>
824 </ul>
825 </li>
826 <li>Item 3</li>
827 </ul>
828 </td>
829 </tr>
830 </tbody></table>
831 <p>&nbsp;</p>
832
833
834 <h4>Automatic Column Width<bookmark content="Automatic Column Width" level="2" /><tocentry name="Tables" content="Automatic column width" level="0" /><indexentry content="Table:automatic column width" /></h4>
835 <table class="bpmTopnTail"><tbody>
836 <tr>
837 <td>Causes</td>
838 <td>Nulla felis erat, imperdiet eu, ullamcorper non, nonummy quis, elit. <br />
839 Ut a eros at ligula vehicula pretium; maecenas feugiat pede vel risus.<br />
840 Suspendisse potenti</td>
841 </tr>
842 <tr>
843 <td>Mechanisms</td>
844 <td>Ut magna ipsum, tempus in, condimentum at, rutrum et, nisl. Vestibulum interdum luctus sapien. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Maecenas consectetuer eros quis massa. Mauris semper velit vehicula purus. Duis lacus. Aenean pretium consectetuer mauris. Ut purus sem, consequat ut, fermentum sit amet, ornare sit amet, ipsum. Donec non nunc. Maecenas fringilla. Curabitur libero. In dui massa, malesuada sit amet, hendrerit vitae, viverra nec, tortor. Donec varius. Ut ut dolor et tellus adipiscing adipiscing.</td>
845 </tr>
846 </tbody></table>
847
848
849 <h4>Column span<bookmark content="Column span" level="2" /><tocentry name="Tables" content="Column span" level="0" /><indexentry content="Table:column span" /></h4>
850 <table class="bpmTopnTail"><tbody>
851 <tr>
852 <td>Causes</td>
853 <td colspan="2">Nulla felis erat, imperdiet eu, ullamcorper non, nonummy quis, elit. <br />
854 Ut a eros at ligula vehicula pretium; maecenas feugiat pede vel risus.<br />
855 Suspendisse potenti</td>
856 </tr>
857 <tr>
858 <td>Mechanisms</td>
859 <td>Fusce eleifend neque sit amet erat.<br />
860 Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus.</td>
861 <td>Mauris ante pede, auctor ac, suscipit quis, malesuada sed, nulla.<br />
862 Phasellus feugiat, lectus ac aliquam molestie, leo lacus tincidunt turpis, vel aliquam quam odio et sapien.</td>
863 </tr>
864 </tbody></table>
865
866
867
868 <h4>Header & Footer Rows<bookmark content="Header Rows" level="2" /><tocentry name="Tables" content="Header rows" level="0" /><indexentry content="Table:header rows" /></h4>
869 <p>A table using a header or footer row should repeat the header/footer row across pages:</p>
870 <p>bpmTopic<b>C</b> Class</p>
871 <table class="bpmTopicC">
872 <thead>
873 <tr class="headerrow"><th>Col and Row Header</th>
874 <td>
875 <p>Second column header</p>
876 </td>
877 <td>Third column header</td>
878 </tr>
879 </thead>
880 <tfoot>
881 <tr class="headerrow"><th>Col and Row Footer</th>
882 <td>
883 <p>Second column footer</p>
884 </td>
885 <td>Third column footer</td>
886 </tr>
887 </tfoot>
888 <tbody>
889 <tr><th>Row header 1</th>
890 <td>This is data</td>
891 <td>This is data</td>
892 </tr>
893 <tr><th>Row header 2</th>
894 <td>This is data</td>
895 <td>
896 <p>This is data</p>
897 </td>
898 </tr>
899 <tr><th>
900 <p>Row header 3</p>
901 </th>
902 <td>
903 <p>This is data</p>
904 </td>
905 <td>This is data</td>
906 </tr>
907 <tr><th>Row header 4</th>
908 <td>This is data</td>
909 <td>
910 <p>This is data</p>
911 </td>
912 </tr>
913 <tr><th>Row header 5</th>
914 <td>Also data</td>
915 <td>Also data</td>
916 </tr>
917 <tr><th>Row header 6</th>
918 <td>Also data</td>
919 <td>Also data</td>
920 </tr>
921 <tr><th>Row header 7</th>
922 <td>Also data</td>
923 <td>Also data</td>
924 </tr>
925 <tr><th>Row header 8</th>
926 <td>Also data</td>
927 <td>Also data</td>
928 </tr>
929 <tr><th>Row header 9</th>
930 <td>Also data</td>
931 <td>Also data</td>
932 </tr>
933 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
934 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
935 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
936 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
937 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
938 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
939 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
940 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
941 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
942 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
943 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
944 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
945 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
946 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
947 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
948 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
949 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
950 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
951 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
952 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
953 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
954 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
955 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
956 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
957 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
958 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
959 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
960 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
961 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
962 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
963 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
964 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
965 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
966 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
967 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
968 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
969 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
970 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
971 <tr><th>Another Row header</th><td>Also data</td><td>Also data</td></tr>
972 </tbody></table>
973 <p>&nbsp;</p>
974
975 <h4>Autosizing Tables<bookmark content="Autosizing Tables" level="2" /><tocentry name="Tables" content="Autosizing tables" level="0" /><indexentry content="Table:autosizing" /></h4>
976 <p>Periodic Table of elements. Tables are set by default to reduce font size if complete words will not fit inside each cell, to a maximum of 1/1.4 * the set font-size. This value can be changed by setting $mpdf->shrink_tables_to_fit=1.8 or using html attribute &lt;table autosize="1.8"&gt;.</p>
977
978 <h5>Periodic Table</h5>
979
980 <table style="border:1px solid #000000;" cellPadding="14"><thead>
981 <tr><th>1A</th><th>2A</th><th>3B</th><th>4B</th><th>5B</th><th>6B</th><th>7B</th><th>8B</th><th>8B</th><th>8B</th><th>1B</th><th>2B</th><th>3A</th><th>4A</th><th>5A</th><th>6A</th><th>7A</th><th>8A</th></tr></thead><tbody>
982 <tr>
983 <td colspan="18"></td>
984 </tr>
985 <tr>
986 <td>H </td><td colspan="16"></td><td>He </td>
987 </tr>
988 <tr>
989 <td>Li </td><td>Be </td><td colspan="10"></td><td>B </td><td>C </td><td>N </td><td>O </td><td>F </td><td>Ne </td>
990 </tr>
991 <tr>
992 <td>Na </td><td>Mg </td><td colspan="10"></td><td>Al </td><td>Si </td><td>P </td><td>S </td><td>Cl </td><td>Ar </td>
993 </tr>
994 <tr>
995 <td>K </td><td>Ca </td><td>Sc </td><td>Ti </td><td>V </td><td>Cr </td><td>Mn </td><td>Fe </td><td>Co </td><td>Ni </td>
996 <td>Cu </td><td>Zn </td><td>Ga </td><td>Ge </td><td>As </td><td>Se </td><td>Br </td><td>Kr </td>
997 </tr>
998 <tr>
999 <td>Rb </td><td>Sr </td><td>Y </td><td>Zr </td><td>Nb </td><td>Mo </td><td>Tc </td><td>Ru </td><td>Rh </td><td>Pd </td><td>Ag </td><td>Cd </td>
1000 <td>In </td><td>Sn </td><td>Sb </td><td>Te </td><td>I </td><td>Xe </td>
1001 </tr>
1002 <tr>
1003 <td>Cs </td><td>Ba </td><td>La </td><td>Hf </td><td>Ta </td><td>W </td><td>Re </td><td>Os </td><td>Ir </td><td>Pt </td><td>Au </td>
1004 <td>Hg </td><td>Tl </td><td>Pb </td><td>Bi </td><td>Po </td><td>At </td><td>Rn </td>
1005 </tr>
1006 <tr>
1007 <td>Fr </td><td>Ra </td><td>Ac </td><td colspan="15"></td>
1008 </tr>
1009 <tr>
1010 <td colspan="18"></td></tr>
1011 <tr>
1012 <td colspan="3"></td><td>Ce </td><td>Pr </td><td>Nd </td><td>Pm </td><td>Sm </td><td>Eu </td><td>Gd </td><td>Tb </td>
1013 <td>Dy </td><td>Ho </td><td>Er </td><td>Tm </td><td>Yb </td><td>Lu </td><td></td>
1014 </tr>
1015 <tr>
1016 <td colspan="3"></td><td>Th </td><td>Pa </td><td>U </td><td>Np </td><td>Pu </td><td>Am </td><td>Cm </td><td>Bk </td><td>Cf </td>
1017 <td>Es </td><td>Fm </td><td>Md </td><td>No </td><td>Lr </td><td></td>
1018 </tr>
1019 </tbody></table>
1020
1021 <pagebreak />
1022
1023 <h4>Rotated Tables<bookmark content="Rotated Tables" level="2" /><tocentry name="Tables" content="Rotated table" level="0" /><indexentry content="Table:rotated" /></h4>
1024 <p>This is set to rotate -90 degrees (counterclockwise).</p>
1025
1026 <h5>Periodic Table</h5>
1027 <p>
1028 <table rotate="-90" class="bpmClearC"><thead>
1029 <tr><th>1A</th><th>2A</th><th>3B</th><th>4B</th><th>5B</th><th>6B</th><th>7B</th><th>8B</th><th>8B</th><th>8B</th><th>1B</th><th>2B</th><th>3A</th><th>4A</th><th>5A</th><th>6A</th><th>7A</th><th>8A</th></tr></thead><tbody>
1030 <tr>
1031 <td></td>
1032 <td colspan="18"></td>
1033 </tr>
1034 <tr>
1035 <td>H </td><td colspan="15"></td><td></td><td>He </td>
1036 </tr>
1037 <tr>
1038 <td>Li </td><td>Be </td><td colspan="10"></td><td>B </td><td>C </td><td>N </td><td>O </td><td>F </td><td>Ne </td>
1039 </tr>
1040 <tr>
1041 <td>Na </td><td>Mg </td><td colspan="10"></td><td>Al </td><td>Si </td><td>P </td><td>S </td><td>Cl </td><td>Ar </td>
1042 </tr>
1043 <tr>
1044 <td>K </td><td>Ca </td><td>Sc </td><td>Ti </td><td>V </td><td>Cr </td><td>Mn </td><td>Fe </td><td>Co </td><td>Ni </td><td>Cu </td>
1045 <td>Zn </td><td>Ga </td><td>Ge </td><td>As </td><td>Se </td><td>Br </td><td>Kr </td>
1046 </tr>
1047 <tr>
1048 <td>Rb </td><td>Sr </td><td>Y </td><td>Zr </td><td>Nb </td><td>Mo </td><td>Tc </td><td>Ru </td><td>Rh </td><td>Pd </td>
1049 <td>Ag </td><td>Cd </td><td>In </td><td>Sn </td><td>Sb </td><td>Te </td><td>I </td><td>Xe </td>
1050 </tr>
1051 <tr>
1052 <td>Cs </td><td>Ba </td><td>La </td><td>Hf </td><td>Ta </td><td>W </td><td>Re </td><td>Os </td><td>Ir </td><td>Pt </td><td>Au </td>
1053 <td>Hg </td><td>Tl </td><td>Pb </td><td>Bi </td><td>Po </td><td>At </td><td>Rn </td>
1054 </tr>
1055 <tr>
1056 <td>Fr </td><td>Ra </td><td>Ac </td>
1057 </tr>
1058 <tr>
1059 <td></td>
1060 <td colspan="18"></td>
1061 </tr>
1062 <tr>
1063 <td colspan="3"></td><td>Ce </td><td>Pr </td><td>Nd </td><td>Pm </td><td>Sm </td><td>Eu </td><td>Gd </td><td>Tb </td><td>Dy </td>
1064 <td>Ho </td><td>Er </td><td>Tm </td><td>Yb </td><td>Lu </td><td></td>
1065 </tr>
1066 <tr>
1067 <td colspan="3"></td><td>Th </td><td>Pa </td><td>U </td><td>Np </td><td>Pu </td><td>Am </td><td>Cm </td><td>Bk </td>
1068 <td>Cf </td><td>Es </td><td>Fm </td><td>Md </td><td>No </td><td>Lr </td><td></td>
1069 </tr>
1070 </tbody></table>
1071 <p>&nbsp;</p>
1072
1073 <pagebreak />
1074 <h4>Rotated text in Tables<bookmark content="Rotated text in Tables" level="2" /><tocentry name="Tables" content="Rotated text in table" level="0" /><indexentry content="Table:rotated text" /></h4>
1075
1076 <h5>Periodic Table</h5>
1077 <table>
1078 <thead>
1079 <tr text-rotate="45">
1080 <th><p>Element type 1A</p><p>Second line</p><th><p>Element type longer 2A</p></th>
1081 <th>Element type 3B</th><th>Element type 4B</th><th>Element type 5B</th><th>Element type 6B</th><th>7B</th><th>8B</th>
1082 <th>Element type 8B R</th><th>8B</th><th>Element <span>type</span> 1B</th><th>2B</th>
1083 <th>Element type 3A</th><th>Element type 4A</th><th>Element type 5A</th><th>Element type 6A</th><th>7A</th><th>Element type 8A</th>
1084 </tr>
1085 </thead>
1086
1087 <tbody>
1088 <tr>
1089 <td>H</td><td colspan="15"></td><td></td><td>He </td>
1090 </tr>
1091 <tr>
1092 <td>Li </td><td>Be </td><td colspan="10"></td><td>B </td><td>C </td><td>N </td><td>O </td><td>F </td><td>Ne </td>
1093 </tr>
1094 <tr>
1095 <td>Na </td><td>Mg </td><td colspan="10"></td><td>Al </td><td>Si </td><td>P </td><td>S </td><td>Cl </td><td>Ar </td>
1096 </tr>
1097 <tr style="text-rotate: 45">
1098 <td>K </td><td>Ca </td><td>Sc </td><td>Ti</td><td>Va</td><td>Cr</td><td>Mn</td><td>Fe</td><td>Co</td><td>Ni </td>
1099 <td>Cu </td><td>Zn </td><td>Ga </td><td>Ge </td><td>As </td><td>Se </td><td>Br </td><td>Kr </td>
1100 </tr>
1101 <tr>
1102 <td>Rb </td><td>Sr </td><td>Y </td><td>Zr </td><td>Nb </td><td>Mo </td><td>Tc </td><td>Ru </td>
1103 <td style="text-align:right; ">Rh</td><td>Pd </td><td>Ag </td><td>Cd </td><td>In </td><td>Sn </td>
1104 <td>Sb </td><td>Te </td><td>I </td><td>Xe </td>
1105 </tr>
1106 <tr>
1107 <td>Cs </td><td>Ba </td><td>La </td><td>Hf </td><td>Ta </td><td>W </td><td>Re </td><td>Os </td><td>Ir </td>
1108 <td>Pt </td><td>Au </td><td>Hg </td><td>Tl </td><td>Pb </td><td>Bi </td><td>Po </td><td>At </td><td>Rn </td>
1109 </tr>
1110 <tr>
1111 <td>Fr </td><td>Ra </td><td colspan="16">Ac </td>
1112 </tr>
1113 <tr>
1114 <td colspan="3"></td>
1115 <td>Ce </td><td>Pr </td><td>Nd </td><td>Pm </td><td>Sm </td><td>Eu </td><td>Gd </td><td>Tb </td><td>Dy </td>
1116 <td>Ho </td><td>Er </td><td>Tm </td><td>Yb </td><td>Lu </td><td></td>
1117 </tr>
1118 <tr>
1119 <td colspan="3"></td>
1120 <td>Th </td><td>Pa </td><td>U </td><td>Np </td><td>Pu </td><td>Am </td><td>Cm </td><td>Bk </td><td>Cf </td><td>Es </td>
1121 <td>Fm </td><td>Md </td><td>No </td><td>Lr </td><td></td>
1122 </tr>
1123 </tbody></table>
1124
1125
1126 <pagebreak />
1127
1128
1129
1130 <h4>Nested Tables<bookmark content="Nested Tables" level="2" /><tocentry name="Tables" content="Nested tables" level="0" /><indexentry content="Table:nested" /></h4>
1131
1132 <div style="border: 2px solid #000088; background-color: #DDDDFF; padding: 2mm;">
1133 Text before table
1134
1135 <div style="border: 2px solid #008888; background-color: #DCAFCF; padding: 2mm;">
1136
1137 <table cellSpacing="2" rotate="-90" align="center" autosize="1.5" class="nested" style="page-break-inside: avoid; ">
1138 <tbody>
1139 <tr>
1140 <td>This is data</td>
1141 <td>This is data</td>
1142 <td>
1143 <table cellSpacing="2" class="nested">
1144 <tbody>
1145 <tr>
1146 <td>Row A</td>
1147 <td>A2</td>
1148 <td>A3</td>
1149 <td>A4</td>
1150 </tr>
1151 <tr>
1152 <td>Row B</td>
1153 <td>B2</td>
1154 <td>B3</td>
1155 <td>B4</td>
1156 </tr>
1157 <tr>
1158 <td>Row C</td>
1159 <td>C2</td>
1160 <td>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 <a href="http://www.dummy.com">euismod auctor</a>, 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. </td>
1161 <td>C4</td>
1162 </tr>
1163 <tr>
1164 <td>Row D</td>
1165 <td>D2</td>
1166 <td>D3</td>
1167 <td>D4</td>
1168 </tr>
1169 </tbody></table>
1170 </td>
1171 <td>This is data</td>
1172 </tr>
1173 <tr>
1174 <td>This is data</td>
1175 <td>This is data</td>
1176 <td>
1177 <table cellSpacing="2" class="nested">
1178 <tbody>
1179 <tr>
1180 <td>Row A</td>
1181 <td>A2</td>
1182 <td>A3</td>
1183 <td>A4</td>
1184 </tr>
1185 <tr>
1186 <td>Row B</td>
1187 <td>B2</td>
1188 <td>B3</td>
1189 <td>B4</td>
1190 </tr>
1191 <tr>
1192 <td>Row C</td>
1193 <td>C2</td>
1194 <td>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. </td>
1195 <td>C4</td>
1196 </tr>
1197 <tr>
1198 <td>Row D</td>
1199 <td>D2</td>
1200 <td>D3</td>
1201 <td>D4</td>
1202 </tr>
1203 </tbody></table>
1204 </td>
1205 <td>This is data</td>
1206 </tr>
1207 <tr>
1208 <td>This is data</td>
1209 <td>This is data</td>
1210 <td>
1211 <table cellSpacing="2" class="nested">
1212 <tbody>
1213 <tr>
1214 <td>Row A</td>
1215 <td>A2</td>
1216 <td>A3</td>
1217 <td>A4</td>
1218 </tr>
1219 <tr>
1220 <td>Row B</td>
1221 <td>B2</td>
1222 <td>B3</td>
1223 <td>B4</td>
1224 </tr>
1225 <tr>
1226 <td>Row C</td>
1227 <td>C2</td>
1228 <td>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. </td>
1229 <td>C4</td>
1230 </tr>
1231 <tr>
1232 <td>Row D</td>
1233 <td>D2</td>
1234 <td>D3</td>
1235 <td>D4</td>
1236 </tr>
1237 </tbody></table>
1238 </td>
1239 <td>This is data</td>
1240 </tr>
1241 <tr>
1242 <td>This is data</td>
1243 <td>This is data</td>
1244 <td>
1245 <table cellSpacing="2" class="nested">
1246 <tbody>
1247 <tr>
1248 <td>Row A</td>
1249 <td>A2</td>
1250 <td>A3</td>
1251 <td>A4</td>
1252 </tr>
1253 <tr>
1254 <td>Row B</td>
1255 <td>B2</td>
1256 <td>B3</td>
1257 <td>B4</td>
1258 </tr>
1259 <tr>
1260 <td>Row C</td>
1261 <td>C2</td>
1262 <td>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. </td>
1263 <td>C4</td>
1264 </tr>
1265 <tr>
1266 <td>Row D</td>
1267 <td>D2</td>
1268 <td>D3</td>
1269 <td>D4</td>
1270 </tr>
1271 </tbody></table>
1272 </td>
1273 <td>This is data</td>
1274 </tr>
1275 <tr>
1276 <td>This is data</td>
1277 <td>This is data</td>
1278 <td>This is data</td>
1279 <td>This is data</td>
1280 </tr>
1281 <tr>
1282 <td>This is data</td>
1283 <td></td>
1284 <td>This is data</td>
1285 <td>This is data</td>
1286 </tr>
1287 <tr>
1288 <td>This is data</td>
1289 <td>This is data</td>
1290 <td>This is data</td>
1291 <td>This is data</td>
1292 </tr>
1293 </tbody></table>
1294
1295 </div>
1296
1297
1298
1299 <p>Text before table</p>
1300
1301 <table cellSpacing="2" class="outer2" autosize="3" style="page-break-inside:avoid">
1302 <tbody>
1303 <tr>
1304 <td>Row 1</td>
1305 <td>This is data</td>
1306 <td style="text-align: right;">
1307 Text before table
1308 <table cellSpacing="2" class="inner" width="80%">
1309 <tbody>
1310 <tr>
1311 <td>Row A</td>
1312 <td>A2</td>
1313 <td>A3</td>
1314 <td>A4</td>
1315 </tr>
1316 <tr>
1317 <td>Row B</td>
1318 <td>B2</td>
1319 <td>B3</td>
1320 <td>B4</td>
1321 </tr>
1322 <tr>
1323 <td>Row C</td>
1324 <td>C2</td>
1325 <td>C3</td>
1326 <td>C4</td>
1327 </tr>
1328 <tr>
1329 <td>Row D</td>
1330 <td>D2</td>
1331 <td>D3</td>
1332 <td>D4</td>
1333 </tr>
1334 </tbody></table>
1335 <p>Text after table</p>
1336 </td>
1337 <td>This is data</td>
1338 </tr>
1339 <tr>
1340 <td>Row 2</td>
1341 <td>This is data</td>
1342 <td>This is data</td>
1343 <td>This is data</td>
1344 </tr>
1345 <tr>
1346 <td>Row 3</td>
1347 <td style="text-align: center; vertical-align: middle;">
1348 <table cellSpacing="2" class="inner" width="80%">
1349 <tbody>
1350 <tr>
1351 <td>Row A</td>
1352 <td>A2</td>
1353 <td>A3</td>
1354 <td>A4</td>
1355 </tr>
1356 <tr>
1357 <td>Row B</td>
1358 <td>B2</td>
1359 <td style="text-align:center;"><img src="sunset.jpg" width="84" style="border:3px solid #44FF44; vertical-align:top; " /></td>
1360 <td>B4</td>
1361 </tr>
1362 <tr>
1363 <td>Row C</td>
1364 <td>C2</td>
1365 <td>
1366 <table cellSpacing="2">
1367 <tbody>
1368 <tr>
1369 <td>F1</td>
1370 <td>F2</td>
1371 </tr>
1372 <tr>
1373 <td>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 et nulla. Sed quis orci.</td>
1374 <td>G2</td>
1375 </tr>
1376 </tbody></table>
1377 </td>
1378 <td>C4</td>
1379 </tr>
1380 <tr>
1381 <td>Row D</td>
1382 <td>D2</td>
1383 <td>D3</td>
1384 <td>D4</td>
1385 </tr>
1386 </tbody></table>
1387 </td>
1388 <td style="vertical-align: bottom; ">
1389 <table cellSpacing="2" class="inner" align="right">
1390 <tbody>
1391 <tr>
1392 <td>Row A</td>
1393 <td>A2</td>
1394 <td>A3</td>
1395 <td>A4</td>
1396 </tr>
1397 <tr>
1398 <td>Row B</td>
1399 <td>B2</td>
1400 <td>B3</td>
1401 <td>B4</td>
1402 </tr>
1403 <tr>
1404 <td>Row C</td>
1405 <td>C2</td>
1406 <td>C3</td>
1407 <td>C4</td>
1408 </tr>
1409 <tr>
1410 <td>Row D</td>
1411 <td>D2</td>
1412 <td>D3</td>
1413 <td>D4</td>
1414 </tr>
1415 </tbody></table>
1416 </td>
1417 <td>This is data</td>
1418 </tr>
1419 <tr>
1420 <td>Row 4</td>
1421 <td>This is data</td>
1422 <td><table cellSpacing="2" class="inner">
1423 <tbody>
1424 <tr>
1425 <td>Row A</td>
1426 <td>A2</td>
1427 <td>A3</td>
1428 <td>A4</td>
1429 </tr>
1430 <tr>
1431 <td>Row B</td>
1432 <td>B2</td>
1433 <td style="text-align:center;"><img src="sunset.jpg" width="84" style="border:3px solid #44FF44; vertical-align:top; " /></td>
1434 <td>B4</td>
1435 </tr>
1436 <tr>
1437 <td>Row C</td>
1438 <td>C2</td>
1439 <td>
1440 <table cellSpacing="2">
1441 <tbody>
1442 <tr>
1443 <td>F1</td>
1444 <td>F2</td>
1445 </tr>
1446 <tr>
1447 <td>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 et nulla. Sed quis orci.</td>
1448 <td>G2</td>
1449 </tr>
1450 </tbody></table>
1451 </td>
1452 <td>C4</td>
1453 </tr>
1454 <tr>
1455 <td>Row D</td>
1456 <td>D2</td>
1457 <td>D3</td>
1458 <td>D4</td>
1459 </tr>
1460 </tbody></table>
1461 </td>
1462 <td>This is data</td>
1463 </tr>
1464 </tbody></table>
1465
1466
1467 </div>
1468
1469
1470 <!-- FORMS -->
1471 <pagebreak />
1472 <h3>Forms<bookmark content="Forms" level="1" /><tocentry name="" content="Forms" level="0" /><indexentry content="Forms" /></h3>
1473 <form>
1474 <b>Textarea</b>
1475 <textarea name="authors" rows="5" cols="80" wrap="virtual">Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra.
1476 Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. Quisque viverra. Etiam id libero at magna pellentesque aliquet. Nulla sit amet ipsum id enim tempus dictum. </textarea>
1477 <br /><br />
1478 <b>Select</b>
1479 <select size="1" name="status"><option value="A">Active</option><option value="W" >New item from auto_manager: pending validation</option><option value="I" selected="selected">Incomplete record - pending</option><option value="X" >Flagged for Deletion</option> </select> followed by text
1480 <br /><br />
1481 <b>Input Radio</b>
1482 <input type="radio" name="recommended" value="0" > No &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="recommended" value="1" > Keep &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="recommended" value="2" checked="checked" > Choice
1483 <br /><br />
1484 <b>Input Text</b>
1485 <input type="text" size="190" name="doi" value="10.1258/jrsm.100.5.211">
1486 <br /><br />
1487 <b>Input Password</b>
1488 <input type="password" size="40" name="password" value="secret">
1489 <br /><br />
1490 <input type="checkbox" name="QPC" value="ON" > Checkboxes<br>
1491 <input type="checkbox" name="QPA" value="ON" > Not selected<br>
1492 <input type="checkbox" name="QPA" value="ON" disabled="disabled"> Disabled<br>
1493 <input type="checkbox" name="QLY" value="ON" checked="checked" > Selected
1494 <br /><br />
1495 <input type="submit" name="submit" value="Submit" />
1496 <input type="image" name="submit" src="goto.gif" />
1497 <input type="button" name="submit" value="Button" />
1498 <input type="reset" name="submit" value="Reset" />
1499 <br /><br />
1500 </form>
1501
1502
1503 <!-- ANNOTATIONS -->
1504 <pagebreak />
1505 <h3>Annotations<bookmark content="Annotations" level="1" /><tocentry name="" content="Annotations" level="0" /><indexentry content="Annotations" /></h3>
1506 <p>Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate.<annotation content="This is an annotation'."\n".'in the middle of the text" subject="My Subject" icon="Comment" color="#FE88EF" author="Ian Back" /> Donec luctus. Cras euismod tellus vel leo. Cras tellus. Fusce aliquet. Curabitur tincidunt viverra ligula. Fusce eget erat. Donec pede. Vestibulum id felis. Phasellus tincidunt ligula non pede. Morbi turpis. In vitae dui non erat placerat malesuada. Mauris adipiscing congue ante. Proin at erat. Aliquam mattis. </p>
1507 <p>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. <i>Fusce</i><annotation content="Fusce is a funny word!" subject="Idle Comments" icon="Note" author="Ian Back" pos-x="198" /> 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>
1508
1509
1510 <!-- GRAPH -->
1511 <pagebreak />
1512 <h3>Graphs<bookmark content="Graphs" level="1" /><tocentry name="" content="Graphs" level="0" /><indexentry content="Graphs" /></h3>
1513 <table id="tbl_1" class="sub"><tbody><tr><td></td><td align="right"><b>Female</b></td><td align="right"><b>Male</b></td></tr><tr><td>35 - 44</td><td align="right"><b>4</b></td><td align="right"><b>2</b></td></tr><tr><td>45 - 54</td><td align="right"><b>5</b></td><td align="right"><b>7</b></td></tr><tr><td>55 - 64</td><td align="right"><b>21</b></td><td align="right"><b>18</b></td></tr><tr><td>65 - 74</td><td align="right"><b>11</b></td><td align="right"><b>14</b></td></tr><tr><td>75 - 84</td><td align="right"><b>10</b></td><td align="right"><b>10</b></td></tr><tr><td>85 - 94</td><td align="right"><b>2</b></td><td align="right"><b>1</b></td></tr><tr><td>95 - 104</td><td align="right"><b>1</b></td><td align="right"><b></b></td></tr>
1514 <tr><td>TOTAL</td><td align="right">54</td><td align="right">52</td></tr>
1515 </tbody></table>
1516
1517 <h5>Subscriptions for 2008-09<tocentry name="Figures" content="Graph: Subscriptions for 2008-09" /></h5>
1518 <jpgraph table="tbl_1" type="bar" stacked="0" dpi="300" title="New subscriptions" splines="1" bandw="0" antialias="1" label-y="% patients" label-x="Age group" axis-x="text" axis-y="lin" percent="0" series="cols" data-col-begin="2" data-row-begin="2" data-col-end="0" data-row-end="-1" show-values="1" width="600" legend-overlap="1" hide-grid="1" hide-y-axis="1" />
1519
1520
1521
1522 <!-- FULL IMAGES & BARCODE -->
1523 <pagebreak />
1524 <h3>Full Images & Barcode<bookmark content="Full Images &amp; Barcode" level="1" /><tocentry name="Figures" content="Full size image & Barcode" level="0" /><indexentry content="Image:full-size" /><tocentry name="" content="Barcode" level="0" /><indexentry content="Barcode" /></h3>
1525 <p>On the first and last page of this document, an image is reproduced full page size by placing it inside a DIV element with CSS "position:absolute". In all other situations, images are constrained to the width and height of the printable page (i.e. inside the margins). The image on the back page has CSS "opacity:0.5".</p>
1526
1527
1528 <!-- EXAMPLE PHP CODE -->
1529 <div class="phpcode">'. nl2br(htmlspecialchars('/* ALTERNATIVE PHP METHOD */
1530 $mpdf->SetAlpha(0.5);
1531 $mpdf->Image(\'clematis.jpg\',0,0,210,297,\'jpg\',\'\',true, false);
1532 // the last "false" allows a full page picture
1533 $mpdf->SetAlpha(1);
1534 ')) .'</div>
1535 <!-- END EXAMPLE PHP CODE -->
1536
1537 <p>The back cover also has an ISBN barcode</p>
1538
1539 <!-- EXAMPLE PHP CODE -->
1540 <div class="phpcode">'. nl2br(htmlspecialchars('/* ALTERNATIVE PHP METHOD */
1541 $mpdf->writeBarcode(\'978-0-9542246-0-8\', 1, 130, 230, 1,0, 3,3,4,4);
1542 ')) .'</div>
1543 <!-- END EXAMPLE PHP CODE -->
1544
1545 <p>But next is inserted the Index, which can also be done like this:</p>
1546
1547 <!-- EXAMPLE PHP CODE -->
1548 <div class="phpcode">'. nl2br(htmlspecialchars('/* ALTERNATIVE PHP METHOD */
1549 $mpdf->AddPage(\'\',NEXT-ODD\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',\'\',-1,-1,-1,-1);
1550 $mpdf->WriteHTML(\'<h2>Index<bookmark content="Index" /></h2>\');
1551 $mpdf->WriteHTML(\'<indexinsert cols="2" font="serif" div-font="sans-serif" links="on" />\');
1552 ')) .'</div>
1553 <!-- END EXAMPLE PHP CODE -->
1554
1555
1556
1557 <!-- INDEX -->
1558 <pagebreak type="NEXT-ODD" odd-header-value="-1" even-header-value="-1" odd-footer-value="-1" even-footer-value="-1" />
1559 <h2>Index<bookmark content="Index" /></h2>
1560 <indexinsert cols="2" font="serif" div-font="sans-serif" links="on" />
1561
1562
1563
1564 <!-- BACK COVER & BARCODE -->
1565 <pagebreak type="NEXT-EVEN" />
1566 <div style="position: absolute; left:0; right: 0; top: 0; bottom: 0;">
1567 <img src="clematis.jpg" style="width: 210mm; height: 297mm; margin: 0; opacity: 0.5;" />
1568 </div>
1569
1570 <div style="position: absolute; right: 35mm; bottom: 35mm; ">
1571 <barcode code="978-0-9542246-0" type="ISBN" style="padding: 2.5mm; border: 0.1mm solid #000000;" height="0.66" text="1" />
1572 </div>
1573
1574
1575
1576 </body></html>';
1577
1578 //==============================================================
1579 //==============================================================
1580 //==============================================================
1581
1582 include("../mpdf.php");
1583
1584 $mpdf=new mPDF('s','A4','','',25,15,21,22,10,10);
1585 $mpdf->progbar_altHTML = '<html><body>
1586 <div style="margin-top: 5em; text-align: center; font-family: Verdana; font-size: 12px;"><img style="vertical-align: middle" src="loading.gif" /> Creating PDF file. Please wait...</div>';
1587 $mpdf->StartProgressBarOutput();
1588
1589 $mpdf->mirrorMargins = 1;
1590 $mpdf->SetDisplayMode('fullpage','two');
1591 $mpdf->useGraphs = true;
1592 $mpdf->list_number_suffix = ')';
1593 $mpdf->hyphenate = true;
1594
1595 $mpdf->debug = true;
1596
1597 $mpdf->WriteHTML($html);
1598
1599 $mpdf->Output();
1600
1601 exit;
1602 //==============================================================
1603 //==============================================================
1604 //==============================================================
1605 //==============================================================
1606 //==============================================================
1607
1608
1609 ?>