Closed Suniron closed 1 month ago
Hi! I guess you might need slide.number
instead of slide.id
as second argument for presentation.addSlide
.
You could also try to .loadRoot
and .load
the files by using a string to simplify if templateDir
is set properly.
Please let me know if this helps!
Oh thanks, it seems to be better 😅.
Hello,
I can't create a new presentation: I got an error about
Could not find file ppt/slides/slide84225942.xml
.As the example below, I tried two ways to create the .pptx.
In my case, I want to replace texts and images from one template, I haven't found a simpler way to make the replacements in this single source PowerPoint file.
💡 I think wee need a simple example to do this, in the documentation.
Feel free to correct me 😅
My code:
Thanks in advance 🙏