-
Notifications
You must be signed in to change notification settings - Fork 666
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/slide background #610
Conversation
Hey @gitbrent - any chance this could be reviewed? Would be super handy. |
Given the pull request is against the dist files, rather than the source, this pull request won't be merged. @thomasowow - the project has had a number of changes since this pull request was made, it's not immediately obvious where your code ought to go, but it might be worth opening a new PR? |
Thanks @thomasowow Code is too old to merge, so i've added it manually. Add a background image to any slide now: slide.background = {
path: "https://raw.githubusercontent.com/gitbrent/PptxGenJS/master/demos/common/images/starlabs_bkgd.jpg"
} |
Make sure your version shows var pptx = new PptxGenJS();
var slide = pptx.addSlide();
slide.background = {path:'https://raw.githubusercontent.com/gitbrent/PptxGenJS/master/demos/common/images/starlabs_bkgd.jpg'}
slide.addText('background!', { x:1, y:1, w:'80%', h:1, align:'center', fill:pptx.SchemeColor.background2 });
pptx.writeFile('PptxGenJS-Test'); |
Fixes #533
Adds the feature to add a background image to a slide which is not a master.
Use: