Skip to content

Reading and writing PPTX leads to "destroyed" layout #837

Open
@deeskayp

Description

@deeskayp

Hey folks. I'm trying to open a .pptx template file, add my data and write it back as .pptx. However, if I just open the file and write it back, the layout is somehow destroyed.

Here's my code:

$reader = IOFactory::createReader('PowerPoint2007');
$presentation = $reader->load('template.pptx');
$writer = IOFactory::createWriter($presentation, 'PowerPoint2007');
$writer->save('result.pptx');

This is how the template looks like:
template

and this is the result:
result

I attached my template file:
template.pptx

This issue might be related to #718

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions