Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createDrawingShape stopped working in 1.1.0 #820

Open
sinnbeck opened this issue Sep 6, 2024 · 1 comment
Open

createDrawingShape stopped working in 1.1.0 #820

sinnbeck opened this issue Sep 6, 2024 · 1 comment

Comments

@sinnbeck
Copy link

sinnbeck commented Sep 6, 2024

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);
@omarjavierr277
Copy link

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

Captura de pantalla 2024-09-25 a la(s) 4 33 47 p  m

code

$imageFile = new File();
$imageFile->setPath($filePath)->setName(time());
$this->activeSlide->addShape($imageFile);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants