Powerpoint manipulation - Add a slide at an index OR delete a slide

走远了吗. 提交于 2019-12-11 15:56:09

问题


I've been bouncing between two packages for my needs. We make quite a few powerpoints at work, and I've been trying to automate the template, so all that's left to do is populate the template with data. We are pretty data heavy, and the actual content changes pretty drastically, so I'm just trying to create the template to start.

I've created a master template already, which has every possible slide that I would use. Then using either officer or reporteRs, I'm deleting/editing/creating slides based on the original template.

Basically, my master slide ppt has somewhere around 130 slides, and the real final ppt will have somewhere around 40 or 50 slides, depending on how many slides must be used.

So here's my question/issue -

If I'm using officer - Is there a way to create a slide at a specific index? I can find this functionality in reporteRs, but not in officer.

If I'm using reporteRs - Is there a way to delete a slide? I can find this functionality in officer, but not in reporteRs.

I only need one of these to work for my issue to be solved, I just can't find either. If both of the packages could be used simultaneously, that would work just fine but that won't quite work for me either.

Thanks in advance,

Cody

来源:https://stackoverflow.com/questions/50842445/powerpoint-manipulation-add-a-slide-at-an-index-or-delete-a-slide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!