@@ -67,6 +67,7 @@ Available font styles:
67
67
- ``strikethrough `` Strikethrough, *true * or *false *
68
68
- ``color `` Font color, e.g. *FF0000 *
69
69
- ``fgColor `` Font highlight color, e.g. *yellow *, *green *, *blue *
70
+ - ``bgColor `` Font background color, e.g. *FF0000 *
70
71
71
72
Paragraph style
72
73
^^^^^^^^^^^^^^^
@@ -201,27 +202,28 @@ Table, row, and cell styles
201
202
202
203
Table styles:
203
204
204
- - ``$ width `` Table width in percent
205
- - ``$ bgColor `` Background color, e.g. '9966CC'
206
- - ``$ border(Top|Right|Bottom|Left)Size `` Border size in twips
207
- - ``$ border(Top|Right|Bottom|Left)Color `` Border color, e.g. '9966CC'
208
- - ``$ cellMargin(Top|Right|Bottom|Left) `` Cell margin in twips
205
+ - ``width `` Table width in percent
206
+ - ``bgColor `` Background color, e.g. '9966CC'
207
+ - ``border(Top|Right|Bottom|Left)Size `` Border size in twips
208
+ - ``border(Top|Right|Bottom|Left)Color `` Border color, e.g. '9966CC'
209
+ - ``cellMargin(Top|Right|Bottom|Left) `` Cell margin in twips
209
210
210
211
Row styles:
211
212
212
213
- ``tblHeader `` Repeat table row on every new page, *true * or *false *
213
214
- ``cantSplit `` Table row cannot break across pages, *true * or *false *
215
+ - ``exactHeight `` Row height is exact or at least
214
216
215
217
Cell styles:
216
218
217
- - ``$ width `` Cell width in twips
218
- - ``$ valign `` Vertical alignment, *top *, *center *, *both *, *bottom *
219
- - ``$ textDirection `` Direction of text
220
- - ``$ bgColor `` Background color, e.g. '9966CC'
221
- - ``$ border(Top|Right|Bottom|Left)Size `` Border size in twips
222
- - ``$ border(Top|Right|Bottom|Left)Color `` Border color, e.g. '9966CC'
223
- - ``$ gridSpan `` Number of columns spanned
224
- - ``$ vMerge `` *restart * or *continue *
219
+ - ``width `` Cell width in twips
220
+ - ``valign `` Vertical alignment, *top *, *center *, *both *, *bottom *
221
+ - ``textDirection `` Direction of text
222
+ - ``bgColor `` Background color, e.g. '9966CC'
223
+ - ``border(Top|Right|Bottom|Left)Size `` Border size in twips
224
+ - ``border(Top|Right|Bottom|Left)Color `` Border color, e.g. '9966CC'
225
+ - ``gridSpan `` Number of columns spanned
226
+ - ``vMerge `` *restart * or *continue *
225
227
226
228
Cell span
227
229
~~~~~~~~~
@@ -326,7 +328,8 @@ Footnotes
326
328
---------
327
329
328
330
You can create footnotes in texts or textruns, but it's recommended to
329
- use textrun to have better layout.
331
+ use textrun to have better layout. You can use ``addText ``, ``addLink ``,
332
+ and ``addTextBreak `` on a footnote.
330
333
331
334
On textrun:
332
335
@@ -335,7 +338,11 @@ On textrun:
335
338
$textrun = $section->createTextRun();
336
339
$textrun->addText('Lead text.');
337
340
$footnote = $textrun->createFootnote();
338
- $footnote->addText('Footnote text.');
341
+ $footnote->addText('Footnote text can have ');
342
+ $footnote->addLink('http://test.com', 'links');
343
+ $footnote->addText('.');
344
+ $footnote->addTextBreak();
345
+ $footnote->addText('And text break.');
339
346
$textrun->addText('Trailing text.');
340
347
341
348
On text:
@@ -345,3 +352,23 @@ On text:
345
352
$section->addText('Lead text.');
346
353
$footnote = $section->createFootnote();
347
354
$footnote->addText('Footnote text.');
355
+
356
+ The footnote reference number will be displayed with decimal number starting
357
+ from 1. This number use ``FooterReference `` style which you can redefine by
358
+ ``addFontStyle `` method. Default value for this style is
359
+ ``array('superScript' => true) ``;
360
+
361
+ Checkboxes
362
+ ----------
363
+
364
+ Checkbox elements can be added to sections or table cells by using
365
+ ``addCheckBox ``.
366
+
367
+ .. code-block :: php
368
+
369
+ $section->addCheckBox($name, $text, [$fontStyle], [$paragraphStyle])
370
+
371
+ - ``$name `` Name of the check box.
372
+ - ``$text `` Text following the check box
373
+ - ``$fontStyle `` See "Font style" section.
374
+ - ``$paragraphStyle `` See "Paragraph style" section.
0 commit comments