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

Allow select override of Master Slide background color/image #7

Closed
stevenljacobsen opened this issue Oct 17, 2016 · 5 comments
Closed
Assignees

Comments

@stevenljacobsen
Copy link

I'd like to set the background color based on a value that is passed from my application. But it doesn't seem possible to pass it through the call to the master slide. Do you have any option for that? I'll need to do the same thing for background images.

@gitbrent gitbrent self-assigned this Oct 19, 2016
@stevenljacobsen
Copy link
Author

I worked around this by adding the image to each slide as I created it. But it seems like there should be a way to pass parameters to the master slide for not just backgrounds but any of the options that you may use in a master.

gitbrent pushed a commit that referenced this issue Oct 25, 2016
Enhancement allowing per-slide override of Master Page background
color/image
@gitbrent
Copy link
Owner

Give the newest check-in a try and let me know what you think.

I even created a new text case for both background color and image on the demo page.

@gitbrent gitbrent changed the title Dynamic background color Allow select override of Master Slide background color/image Oct 25, 2016
gitbrent pushed a commit that referenced this issue Oct 25, 2016
For Issue #7
@stevenljacobsen
Copy link
Author

I just saw this. I'll have to reorganize my code a bit to try it. I'll give it a shot.

@gitbrent gitbrent closed this as completed Dec 8, 2016
@prasademc
Copy link

Any update for this implementation

@gitbrent
Copy link
Owner

gitbrent commented Jan 5, 2018

Hi @prasademc,

No, this feature is not implemented.

Unless you need to change the colors a lot, then creating a few colored masters is super easy:

pptx.defineSlideMaster({ title: 'GREY_MASTER', bkgd: 'F1F1F1' });
pptx.defineSlideMaster({ title: 'RED_MASTER',  bkgd: 'FF0000' });
pptx.defineSlideMaster({ title: 'BLUE_MASTER', bkgd: '0000FF' });

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

No branches or pull requests

3 participants