-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Hi,
I have some problems using wrappingStyle in the latest Version of PHPWord. I made a very small example and to me it looks like a problem close to the writer.
$section = $PHPWord->createSection();
$section->addText("some text");
$image = $section->addImage('../path/to/Image.jpg', array('wrappingStyle' => 'square'));
$section->addText("some more text");
$section->addText("Image Wrapping Style:");
$section->addText($image->getStyle()->getWrappingStyle());
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($PHPWord, 'Word2007');The getWrappingStyle method always returns the correct wrappingStyle I set for the image. But the wraping style in the exported document for the image always stays inline.
Thanks in advance and best regards
Florian