@@ -39,9 +39,12 @@ the following lines to your ``composer.json``.
39
39
* [ Section settings] ( #section-settings )
40
40
* [ Section page numbering] ( #section-page-numbering )
41
41
3 . [ Texts] ( #texts )
42
- 4 . [ Tables] ( #tables )
42
+ 4 . [ Paragraph Style] ( #paragraph-style )
43
+ * [ Attributes] ( #paragraph-style-attributes )
44
+ 5 . [ Tables] ( #tables )
43
45
* [ Cell Style] ( #tables-cell-style )
44
- 5 . [ Images] ( #images )
46
+ 6 . [ Images] ( #images )
47
+ * [ Attributes] ( #images-attributes )
45
48
46
49
<a name =" basic-usage " ></a >
47
50
#### Basic usage
@@ -176,10 +179,24 @@ $section->addText('I am simple paragraph', $fontStyle, $paragraphStyle);
176
179
177
180
``` php
178
181
$textrun = $section->createTextRun();
179
- $textrun->addText('I am bold', array('bold' => true));
182
+ $textrun->addText('I am bold', array('bold' => true));
180
183
$textrun->addText('I am italic, array('italic' => true));
181
184
$textrun->addText('I am colored, array('color' => 'AACC00'));
182
185
```
186
+
187
+ <a name =" paragraph-style " ></a >
188
+ #### Paragraph Style
189
+
190
+ <a name =" paragraph-style-attributes " ></a >
191
+ ##### Attributes
192
+
193
+ * `` line-height `` text line height, e.g. _ 1.0_ , _ 1.5_ , ect...
194
+ * `` align `` paragraph alignment, _ left_ , _ right_ or _ center_
195
+ * `` spaceBefore `` space before Paragraph
196
+ * `` spaceAfter `` space after Paragraph
197
+ * `` tabs `` set of Custom Tab Stops
198
+ * `` indent `` indent by how much
199
+
183
200
<a name =" tables " ></a >
184
201
#### Tables
185
202
@@ -213,15 +230,17 @@ $section = $PHPWord->createSection();
213
230
$section->addImage('mars.jpg');
214
231
```
215
232
216
- Images settings include:
233
+ <a name =" images-attributes " ></a >
234
+ ##### Attributes
235
+
217
236
* `` width `` width in pixels
218
237
* `` height `` height in pixels
219
238
* `` align `` image alignment, _ left_ , _ right_ or _ center_
220
239
* `` marginTop `` top margin in inches, can be negative
221
240
* `` marginLeft `` left margin in inches, can be negative
222
241
* `` wrappingStyle `` can be _ inline_ , _ square_ , _ tight_ , _ behind_ , _ infront_
223
242
224
- To add an image with settings , consider the following example.
243
+ To add an image with attributes , consider the following example.
225
244
226
245
``` php
227
246
$section->addImage(
@@ -234,4 +253,4 @@ $section->addImage(
234
253
'wrappingStyle' => 'behind'
235
254
)
236
255
);
237
- ```
256
+ ```
0 commit comments