Skip to content

createDrawingShape stopped working in 1.1.0 #820

@sinnbeck

Description

@sinnbeck

I am adding images to a powerpoint and it was working fine in v1.0.

This is the code

foreach ($images as $imagePath) {
    $slide = $presentation->createSlide();
    $shape = $slide->createDrawingShape();
    $shape->setPath($imagePath);
    $shape->setResizeProportional(true);
    $shape->setWidth($width);
    $shape->setOffsetX(0);
    $shape->setOffsetY(0);
    $shape->setName('Content');
    $shape->setDescription('Content');
}

Now after updating I just get an empty page with "Content"
image

It works if I use this, but I want to add them as drawing shapes

$image = new Image();
$image->setPath($imagePath);
$slide->setBackground($image);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions