Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging PowerPoint slides using OpenXML

All I want to do is merge some slides into a master presentation using OpenXML SDK, I don't want to use Introp as it's not ideal in a server environment, I've tried many code samples but the merged presentation always shows me repair message, when I compared the corrupted file with the repaired one I found out that the ids aren't generated correctly.

Is there any open source library or sample code that actually works. I've heard of Aspose but it's a paid library.

like image 240
Ali Avatar asked May 06 '26 01:05

Ali


1 Answers

The Microsoft MSDN article

http://msdn.microsoft.com/en-us/library/office/ee361883(v=office.12).aspx

gives a step by step instruction on how to merge powerpoint presentations together.

It takes care of ensuring the ID's are unique. The only disadvantage is that it also copies the slide masters for each and every slide, making the final powerpoint file larger than expected.

like image 161
Woffy Avatar answered May 08 '26 16:05

Woffy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!