Skip to content

wrappingStyle not working as expected (docx writer, 0.11.1) #325

@fhaubner

Description

@fhaubner

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions