Comments (5)
@MP70: Could you please provide a test case to this branch and probably some example code with your required parameters?
I would like to write some docs on how to create a new modifier. :)
from pptx-automizer.
Have added a little test. It's only a indicator, there may be a neater way to arrange it, like making the background another type like shape, table etc.
from pptx-automizer.
Currently manually getting the <p:bg> / <p:bgPr> element, then modify like:
bg
.getElementsByTagName('a:solidFill')[0]
.getElementsByTagName('a:schemeClr')[0]
.setAttribute('val', 'accent6'); // Change 'accent6' to your desired color value
from pptx-automizer.
Hi @MP70, please check out modify-master-background-color.test.ts
to see a basic example.
from pptx-automizer.
@MP70: It would be great if you could also test modify-master-background-image.test.ts
with your real world stuff. It turned out that a slightly different approach is required for background images compared to "normal" image elements on a slide.
@creedmangrum: This might be useful for you, too.
I'm happy about feedback on this!
from pptx-automizer.
Related Issues (20)
- Swap element in slide master? HOT 5
- Reorder and delete slide masters? HOT 2
- Not all text replaced: modify.replaceText HOT 2
- Output yields a file as large as my template, however, it should be removing slides, and just a resave yields a fraction of the size. HOT 7
- Copy slide master related background images on autoImportSlideMaster doesn't work HOT 4
- Updating Chart Title and formatCode HOT 4
- Set formatCode for chart datalabels HOT 3
- Bulleted Lists HOT 4
- Support for charts getting data from embedded excel sheets (rather than 'standard' charts) HOT 7
- How to get "custom tag" values for a shape via a relationship? HOT 3
- [Help Needed] Can't copy slideMasters with themeOverride HOT 10
- Can you add video / audio files to powerpoints? HOT 3
- I am having an odd error while essentially following the library HOT 2
- Read files from memory instead of from a directory?
- question: reading/writting ppt with charts HOT 6
- Modifying table with first cell empty HOT 1
- question: Reading/writing slide notes? HOT 1
- question: Slide with two charts HOT 3
- question: chart series colors? HOT 3
- Added slide elements are not translated to match root's template HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pptx-automizer.