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

useSlideLayout from root #136

Open
jhaase1 opened this issue Dec 18, 2024 · 2 comments
Open

useSlideLayout from root #136

jhaase1 opened this issue Dec 18, 2024 · 2 comments

Comments

@jhaase1
Copy link

jhaase1 commented Dec 18, 2024

I want to useSlideLayout from the root directory rather than the source presentation? I can hardcode the mapping; however, it would be more elegant to address root/Side Banner/Title Slide or root/No Side Banner/Title Only rather than 1 or 8

If this isn't possible I can work around it, just a nice to have

@singerla
Copy link
Owner

Did you try

async useNamedSlideLayout(targetLayoutName: string): Promise<number> {

Please let me know if this already helps or if we should improve this more.

@jhaase1
Copy link
Author

jhaase1 commented Dec 26, 2024

that's close. I was looking to be able to switch between templates. I'll work on generalizing my code and make a PR

https://github.com/jhaase1/presentation_creator/blob/d90595181aec86dd54b6db7c16ed0a47acf1af79/src/main/powerpoint/copySlidesToPPTX.js#L107-L127

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

No branches or pull requests

2 participants