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

Saving a presentation is not copying styles or layouts #150

Closed
ziwar opened this issue Nov 25, 2015 · 22 comments
Closed

Saving a presentation is not copying styles or layouts #150

ziwar opened this issue Nov 25, 2015 · 22 comments
Assignees
Milestone

Comments

@ziwar
Copy link

ziwar commented Nov 25, 2015

If you try to load a presentation that was created in powerpoint or exported from keynote and then save it again without even doing anything, the file will lose styles and layouts:

$pptReader = IOFactory::createReader('PowerPoint2007');
$oPHPPresentation = $pptReader->load('Sample.pptx');

$xmlWriter = IOFactory::createWriter($oPHPPresentation, 'PowerPoint2007');
$xmlWriter->save("Sample-copy.pptx");

before:
screen shot 2015-11-25 at 10 38 03 am

after:

screen shot 2015-11-25 at 10 38 25 am

@tsanami69
Copy link

I am having the same issue...

@jmanring
Copy link

jmanring commented Dec 1, 2015

I'm seeing the same thing. Looking at the slide xml from the input file and comparing it with what is on the output you'll see all the layout and theming is gone.

@clubdesarrolladores
Copy link

Same here! please resolve at soon as possible, thanks!

@Progi1984
Copy link
Member

May be the issue #144 and its pull request would help you...

@jmanring
Copy link

Still not working. All my slides keep showing up with Blank layout.

@SoapWater
Copy link

@Progi1984 I also tried it, but still not working. I hope you can fix that soon.

@Progi1984
Copy link
Member

@ziwar Could you give me your Sample.pptx ? Thanks 😄

@jmanring
Copy link

Attached is one presentation I attempted to open and copy a slide to a new presentation.

Companies.pptx

@Progi1984 Progi1984 added this to the 0.7.0 milestone Mar 11, 2016
@Progi1984
Copy link
Member

Hi all, I created a roadmap for managing slide layout : #161 (comment)

@Progi1984
Copy link
Member

@jmanring Could you test the PR #230 ?

@Progi1984
Copy link
Member

@jmanring It's ok for the main style. Shapes not supported like Geometric form (#117) will be supported in 0.8.0

@mhasanshahid
Copy link

@Progi1984 I am still have this problem. Can you please guide me how to fix this?

@mhasanshahid
Copy link

@Progi1984 I am trying to follow this issue, but I am still not sure if its solved or not, because after saving my new pptx file show the same broken layout as images mentioned in this issue.

@Progi1984
Copy link
Member

@mhasanshahid Which problem do you have ? Could you open a new issue, please ?

@olegka311
Copy link

i have the same problem. All styles are lost after
$pptReader = IOFactory::createReader('PowerPoint2007');
$oPHPPresentation = $pptReader->load('Sample.pptx');

$xmlWriter = IOFactory::createWriter($oPHPPresentation, 'PowerPoint2007');
$xmlWriter->save("Sample-copy.pptx");

pptx

@swati-sapnagroup
Copy link

I am also facing the same issue. Any solution on this problem?

@tangzhongzhengReal
Copy link

I am also facing the same issue. Any solution on this problem?

hello, do you find the solution?

@aymeric451
Copy link

+1

@niloyniloy
Copy link

does any one found any solution ?

@ahorany
Copy link

ahorany commented Mar 22, 2021

hello, do you find the solution?

@ahorany
Copy link

ahorany commented Mar 24, 2021

You can use this library it's very fantastic and simple
it will export to PowerPoint, excel, word and another
https://www.tinybutstrong.com/opentbs.php

@niloyniloy
Copy link

@ahorany its nice that you found have that library. Earlier, I struggled to get the solution. But didnt get in that time. Seems repository owner dont mange this project at all.

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

No branches or pull requests