-
Notifications
You must be signed in to change notification settings - Fork 546
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
Can't preview presentation in gmail #131
Comments
We need a substantially more complete description before we can act on this one. |
By the way thanks for your quick answer! |
Hmm, that's interesting. Can you open the presentation okay with PowerPoint? Also, what .pptx file did you start off with in python-pptx? Also, what would you expect to appear? Would it just be the first slide or would you be able to page through the slides? |
Well, when I do the same with a pptx generated with ms powerpoint or libre office it allows me to preview all the presentation. I can open the presentation without problems using powerpoint or libre office though. |
Ok, I have an idea what this might be. My hypothesis is that Gmail is looking for a slide count in the Give this a try and see if it works:
document = Document('native.pptx')
document.save('touched-by-python-pptx.pptx') If that works it would support the hypothesis. We can go from there. |
Hi, I did the test, and I can preview the presentation, but, I made a test adding some shapes and then it only showed the first slide in the preview. For the test I used this tutorial on read the docs: https://python-pptx.readthedocs.org/en/latest/user/quickstart.html. Since the presentation that I create in my app is way more complex, I think that's the main reason it does not show any preview on gmail. However I'll keep testing if I see anything else. |
Did you only add shapes or did you actually add a slide as well? |
I added a Slide as well.
|
why don't you try with just adding shapes to an existing slide. If that works, it would point to adding a slide as the triggering event. Then you could add a single blank slide and see if that triggers the break. If you get it narrowed down to that I can give you a few lines of 'repair' code to fix up the slide count figure in app.xml and we'll see if that fixes it. I've got a suspicion it will. |
Hi,
I'm trying to preview a presentation created with python-pptx in gmail but It says that it can't be opened. I'm not sure why is this happening. Is there a way to archive this with python-pptx?
Thanks!
The text was updated successfully, but these errors were encountered: