Closed
Description
Hello,
I've noticed that whenever I want to remove an element that has an animation on it, Powerpoint makes me repair the pptx and remove all of the animations in the slide.
Do I do something wrong here? Is there already a workaround for this issue?
Otherwise, would it be possible to reorganize the animations while removing the element?
I have this issue with this code for example:
const title = (pres: Automizer, title?: string, subtitle?: string) => {
pres.addSlide('title.pptx', 1, (slide) => {
if (title)
slide.modifyElement('title', [
modify.replaceText([{ replace: 'title', by: { title } }]),
])
if (subtitle)
slide.modifyElement('subtitle', [
modify.replaceText([{ replace: 'subtitle', by: { subtitle } }]),
])
if (!title) slide.removeElement('title')
if (!subtitle) slide.removeElement('subtitle')
})
}
My temporary solution would be to have a slightly different template for each time I have to remove an element, but it's not handy nor maintainable.