Skip to content

Commit 42c712e

Browse files
committed
Refactor new image styles and create Word2007/Style/Image class
1 parent 6898ada commit 42c712e

File tree

5 files changed

+316
-271
lines changed

5 files changed

+316
-271
lines changed

CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ PHPWord license is changed from LGPL 2.1 to LGPL 3 in this release.
88

99
### Features
1010

11-
-
11+
- Image: Ability to define relative and absolute positioning - @basjan GH-217
1212

1313
### Bugfixes
1414

15-
-
16-
17-
### Deprecated
18-
19-
-
15+
- ...
2016

2117
### Miscellaneous
2218

2319
- License: Change the project license from LGPL 2.1 into LGPL 3.0 - GH-211
20+
- Word2007 Writer: New `Style\Image` class - @ivanlanin
2421

2522
## 0.10.0 - 4 May 2014
2623

samples/Sample_13_Images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
foreach ($wrappingStyles as $wrappingStyle) {
2727
$section->addTextBreak(5);
2828
$section->addText('Wrapping style ' . $wrappingStyle);
29-
$section->addImage('resources/_earth.jpg', array('marginTop' => -1, 'marginLeft' => 1,
29+
$section->addImage('resources/_earth.jpg', array('positioning' => 'relative', 'marginTop' => -1, 'marginLeft' => 1,
3030
'width' => 80, 'height' => 80, 'wrappingStyle' => $wrappingStyle));
3131
$section->addText($text);
3232
}

0 commit comments

Comments
 (0)