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

feature: Shape.shadow and ShadowFormat object #130

Open
g2010a opened this issue Nov 11, 2014 · 6 comments
Open

feature: Shape.shadow and ShadowFormat object #130

g2010a opened this issue Nov 11, 2014 · 6 comments
Labels

Comments

@g2010a
Copy link

g2010a commented Nov 11, 2014

Hi, inserted shapes always appear with shadows when I create presentations. Is there a way to remove the shadows? If not, could it please be implemented?

Version: 0.5.1
Code: any of the examples that insert shapes

Cheers

@scanny
Copy link
Owner

scanny commented Nov 11, 2014

The shadows are not added by python-pptx, they are inherited by each shape from the presentation defaults.

If you create your own 'template' presentation file to start off new presentations and change the setting in there to turn shadow off, I think you'll achieve the effect you're after.

Be sure you understand this page in the documentation:
http://python-pptx.readthedocs.org/en/latest/user/presentations.html

@g2010a
Copy link
Author

g2010a commented Nov 13, 2014

Thanks; oddly enough any new shapes added to the template by hand do not have a shadow, but I'll continue testing.

@g2010a
Copy link
Author

g2010a commented Nov 13, 2014

For reference, I did two things to get rid of the shadows: 1) Drew a rectangle (without a shadow) and set it as a default for all shapes; 2) Edited the master master slide and chose "Effects" >> "Office".

Not sure which one took care of the issue.

Cheers.

@scanny scanny changed the title Remove shadows from inserted objects feature: Shape.shadow and ShadowFormat object Dec 17, 2014
@scanny scanny added the shape label Dec 17, 2014
@diwu1989
Copy link

pretty sure its the "set it as default" that applied against all future shapes

@bjorn-bakken
Copy link

@g2010a you just saved me! Both 1) and 2) where necessary to make the shadow go away. Office 365.

@christofferholmstedt
Copy link

Thank you @g2010a and @bjorn-bakken I can confirm that both (1) and (2) was necessary for me with Office 365.

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

No branches or pull requests

5 participants