please include a way to insert audio file using open xml #158
aman-gill22
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
Hi. Thank you for your feedback :) Audio? Why not. Will research this. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@aman-gill22, a new v0.24.0 version has been released. Now you can add audio: IPresentation presentation = SCPresentation.Open("helloWorld.pptx", isEditable: true);
IShapeCollection shapes = presentation.Slides[0].Shapes;
using Stream mp3Stream = File.OpenRead("audio.mp3");
IAudioShape addedAudioShape = shapes.AddNewAudio(xPixel: 300, yPixels: 100, mp3Stream);
presentation.Save();
presentation.Close(); Let me know if it does not work correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can't thank u enough brother.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
brother i appreciate the hardwork u have done but i was expecting if u could include a way to insert audio files into ppt
Beta Was this translation helpful? Give feedback.
All reactions